modify usb init position into board.c from init.c

This commit is contained in:
Liu_Weichao
2022-11-08 11:27:06 +08:00
parent 5f4922866e
commit 636f803b7b
9 changed files with 46 additions and 10 deletions
@@ -51,6 +51,8 @@ extern int HwSramInit(void);
extern int Stm32HwAdcInit(void);
extern int Stm32HwDacInit(void);
extern int Stm32HwLcdInit(void);
extern int STM32USBHostRegister(void);
extern int Stm32HwUsbInit(void);
static void ClockConfiguration()
{
@@ -147,6 +149,12 @@ struct InitSequenceDesc _board_init[] =
#ifdef BSP_USING_SDIO
{"hw sdcard init",HwSdioInit},
#endif
#ifdef BSP_USING_USB
#ifdef BSP_USING_STM32_USBH
{ "STM32USBHostRegister", STM32USBHostRegister },
{ "hw usb", Stm32HwUsbInit },
#endif
#endif
#ifdef BSP_USING_EXTMEM
{ "hw extern sram", HwSramInit },
#endif