2023-05-11 10:25:21 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Email: opensource_embedded@phytium.com.cn
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2022-11-10 liqiaozhong first commit
|
|
|
|
* 2023-03-08 liqiaozhong support 4 spis and qspi working together
|
|
|
|
*/
|
|
|
|
#ifndef __DRV_SPI_H__
|
|
|
|
#define __DRV_SPI_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
2023-12-08 17:57:55 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
2023-05-11 10:25:21 +08:00
|
|
|
{
|
2023-12-08 17:57:55 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
int rt_hw_spi_init(void);
|
2023-05-11 10:25:21 +08:00
|
|
|
|
2023-12-08 17:57:55 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2023-11-21 17:42:23 +08:00
|
|
|
#endif
|
2023-05-11 10:25:21 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|