add can and flash driver for hc32f4a0 in XiZi_IIoT

This commit is contained in:
wuzheng
2023-02-22 09:38:41 +08:00
parent 002325c1d8
commit 73fbeea117
16 changed files with 486 additions and 2 deletions
+7 -1
View File
@@ -66,9 +66,12 @@ Modification:
#include <connect_hwtimer.h>
#endif
#ifdef BSP_USING_CAN
#include <connect_can.h>
#endif
extern void entry(void);
extern int HwUsartInit();
extern int HwWdtInit();
/* Peripheral register WE/WP selection */
#define LL_PERIPH_SEL (LL_PERIPH_GPIO | LL_PERIPH_FCG | LL_PERIPH_PWC_CLK_RMU | \
@@ -189,6 +192,9 @@ struct InitSequenceDesc _board_init[] =
#endif
#ifdef BSP_USING_TIMER
{ "tmr", HwTimerInit },
#endif
#ifdef BSP_USING_CAN
{ "can", HwCanInit },
#endif
{ " NONE ", NONE },
};