2021-05-21 18:43:59 +08:00
|
|
|
|
/*
|
|
|
|
|
* @ : Copyright (c) 2021 Phytium Information Technology, Inc.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
|
|
|
*
|
|
|
|
|
* @Date: 2021-04-25 14:01:39
|
|
|
|
|
* @LastEditTime: 2021-04-29 09:40:13
|
|
|
|
|
* @Description: This files is for
|
|
|
|
|
*
|
|
|
|
|
* @Modify History:
|
|
|
|
|
* Ver Who Date Changes
|
|
|
|
|
* ----- ------ -------- --------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef FT_DRIVERS_RTT_SPI_H
|
|
|
|
|
#define FT_DRIVERS_RTT_SPI_H
|
|
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
|
|
#define SPI_BUS_NAME "spi0"
|
|
|
|
|
#define SPI_DEV_NAME "S25FS256"
|
|
|
|
|
|
2021-10-13 11:02:01 +08:00
|
|
|
|
rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_uint16_t cs_gpio_pin);
|
2021-05-21 18:43:59 +08:00
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C"
|
|
|
|
|
{
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|