int nsh_archinitialize(void) { int ret; /* Initialize SPI-based microSD */ ret = nsh_sdinitialize(); if (ret == OK) { /* Initialize USB host */ ret = nsh_usbhostinitialize(); } return ret; }
int nsh_archinitialize(void) { int ret; /* Initialize SPI-based microSD */ ret = nsh_sdinitialize(); if (ret == OK) { /* Initialize USB host */ ret = nsh_usbhostinitialize(); if (ret == OK) { message("USB host successfuly initialized!\n"); } } return ret; }
int nsh_archinitialize(void) { int ret; /* Initialize the LCD1602 and register the device as /dev/lcd1602 */ #ifdef CONFIG_LCD_LCD1602 ret = up_lcd1602_initialize(); if (ret == OK) #endif { /* Initialize SPI-based microSD */ ret = nsh_sdinitialize(); } if (ret == OK) { /* Initialize USB host */ ret = nsh_usbhostinitialize(); } if (ret == OK) { /* Initialize USB device */ ret = nsh_usbdevinitialize(); } #ifdef NSH_HAVE_USBMONITOR if (ret == OK) { /* Start the USB Monitor */ ret = usbmonitor_start(0, NULL); } #endif return ret; }
int board_app_initialize(uintptr_t arg) { int ret; /* Initialize SPI-based microSD */ ret = nsh_sdinitialize(); if (ret == OK) { /* Initialize USB host */ ret = nsh_usbhostinitialize(); } if (ret == OK) { /* Initialize USB device */ ret = nsh_usbdevinitialize(); } return ret; }