feat add third_party_driver/spi for hc32f4a0 board, write and read function OK

This commit is contained in:
Liu_Weichao
2022-10-31 15:11:39 +08:00
parent 7a8766a74d
commit 2d7d5d121d
4 changed files with 102 additions and 10 deletions
@@ -38,6 +38,10 @@ Modification:
#include <connect_sdio.h>
#endif
#ifdef BSP_USING_SPI
#include <connect_spi.h>
#endif
extern void entry(void);
extern int HwUsartInit();
@@ -125,6 +129,9 @@ struct InitSequenceDesc _board_init[] =
{
#ifdef BSP_USING_SDIO
{ "sdio", HwSdioInit },
#endif
#ifdef BSP_USING_SPI
{ "spi", HwSpiInit },
#endif
{ " NONE ", NONE },
};