softspi driver and its app test

This commit is contained in:
wuzheng
2022-11-09 19:23:12 +08:00
parent 094986ac76
commit d3836f1a6f
20 changed files with 590 additions and 26 deletions
@@ -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