forked from xuos/xiuos
feat support nuvoton-m2354 bsp for Ubiquitous/XiZi kernel
This commit is contained in:
@@ -45,7 +45,7 @@ HardwareDevType ObtainConsole(void)
|
||||
* @param name console device name
|
||||
*
|
||||
*/
|
||||
HardwareDevType InstallConsole(const char *bus_name, const char *drv_name, const char *dev_name)
|
||||
void InstallConsole(const char *bus_name, const char *drv_name, const char *dev_name)
|
||||
{
|
||||
#if defined(KERNEL_CONSOLE)
|
||||
BusType console_bus;
|
||||
@@ -82,8 +82,6 @@ HardwareDevType InstallConsole(const char *bus_name, const char *drv_name, const
|
||||
} else {
|
||||
console = _console;
|
||||
}
|
||||
|
||||
return console;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -104,15 +104,19 @@ struct InitSequenceDesc components_init[] =
|
||||
};
|
||||
struct InitSequenceDesc env_init[] =
|
||||
{
|
||||
|
||||
#ifdef BSP_USING_STM32_USBH
|
||||
{ "STM32USBHostRegister", STM32USBHostRegister },
|
||||
{ "hw usb", Stm32HwUsbInit },
|
||||
#endif
|
||||
#ifdef BSP_USING_NXP_USBH
|
||||
{ "nxp hw usb", Imrt1052HwUsbHostInit },
|
||||
#endif
|
||||
#ifdef MOUNT_SDCARD
|
||||
{ "MountSDCard", MountSDCard },
|
||||
#endif
|
||||
|
||||
#ifdef MOUNT_USB
|
||||
{ "MountUSB", MountUSB },
|
||||
#endif
|
||||
|
||||
#ifdef FS_VFS_MNTTABLE
|
||||
{ "DfsMountTable", DfsMountTable },
|
||||
#endif
|
||||
@@ -123,13 +127,6 @@ struct InitSequenceDesc env_init[] =
|
||||
};
|
||||
struct InitSequenceDesc communication_init[] =
|
||||
{
|
||||
#ifdef BSP_USING_STM32_USBH
|
||||
{ "STM32USBHostRegister", STM32USBHostRegister },
|
||||
{ "hw usb", Stm32HwUsbInit },
|
||||
#endif
|
||||
#ifdef BSP_USING_NXP_USBH
|
||||
{ "nxp hw usb", Imrt1052HwUsbHostInit },
|
||||
#endif
|
||||
{ " NONE ", NONE },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user