test framework

This commit is contained in:
wuzheng
2022-11-09 20:45:44 +08:00
parent d3836f1a6f
commit b8cf052d49
9 changed files with 73 additions and 12 deletions

View File

@@ -97,12 +97,22 @@ static struct io_config
IOCONFIG(BSP_CH438_D6_PIN, HS_GPIO(FPIOA_CH438_D6)),
IOCONFIG(BSP_CH438_D7_PIN, HS_GPIO(FPIOA_CH438_D7)),
#endif
#ifdef BSP_USING_SOFT_SPI
IOCONFIG(BSP_SOFT_SPI_SCK_PIN, HS_GPIO(FPIOA_SOFT_SPI_SCK)),
IOCONFIG(BSP_SOFT_SPI_MIOS_PIN, HS_GPIO(FPIOA_SOFT_SPI_MIOS)),
IOCONFIG(BSP_SOFT_SPI_MSOI_PIN, HS_GPIO(FPIOA_SOFT_SPI_MSOI)),
IOCONFIG(BSP_SOFT_SPI_NCS_PIN, HS_GPIO(FPIOA_SOFT_SPI_NCS)),
#endif
#ifdef BSP_USING_LED
IOCONFIG(BSP_LED_PIN,FUNC_GPIO5);
#endif
#ifdef BSP_USING_KEY
IOCONFIG(BSP_KEY_PIN,FUNC_GPIO6);
#endif
};
static int PrintIoConfig()

View File

@@ -38,10 +38,6 @@ if BSP_USING_SOFT_SPI
config SOFT_SPI_CLK_DELAY
int "clk in microsecond"
default 0
config SOFT_SPI_READ_DELAY
int "read after millisecond"
default 1
endif