summaryrefslogtreecommitdiff
path: root/bsp/ft2004/drivers/drv_spi.h
blob: 22eaaa4030929bf9695332b828def7798567feca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * @ : 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"

rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_uint16_t cs_gpio_pin);

#ifdef __cplusplus
extern "C"
{
#endif

#endif