softspi driver and its app test
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef CONNECT_TF_H
|
||||
#define CONNECT_TF_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int HwSoftSPIInit(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -78,6 +78,19 @@ enum HS_GPIO_CONFIG
|
||||
#define BSP_CH438_INT_PIN 35
|
||||
#endif
|
||||
|
||||
#define BSP_USING_SOFT_SPI
|
||||
#ifdef BSP_USING_SOFT_SPI
|
||||
#define FPIOA_SOFT_SPI_SCK 26
|
||||
#define FPIOA_SOFT_SPI_MIOS 25
|
||||
#define FPIOA_SOFT_SPI_MSOI 27
|
||||
#define FPIOA_SOFT_SPI_NCS 28
|
||||
|
||||
#define BSP_SOFT_SPI_SCK_PIN 26
|
||||
#define BSP_SOFT_SPI_MIOS_PIN 25
|
||||
#define BSP_SOFT_SPI_MSOI_PIN 27
|
||||
#define BSP_SOFT_SPI_NCS_PIN 28
|
||||
#endif
|
||||
|
||||
extern int IoConfigInit(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user