/** * @brief DUALCORE application Init. * @param None * @retval None */ static void DUAL_InitApplication(void) { /* Configure KEY Button */ BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_GPIO); /* Configure Joystick in EXTI mode */ BSP_JOY_Init(JOY_MODE_EXTI); /* Configure the LEDs */ BSP_LED_Init(LED1); BSP_LED_Init(LED2); BSP_LED_Init(LED3); BSP_LED_Init(LED4); /* Initialize the LCD */ BSP_LCD_Init(); /* Initialize the LCD Log module */ LCD_LOG_Init(); LCD_LOG_SetHeader((uint8_t *)" USB OTG DualCore Host"); LCD_UsrLog("USB Host library started.\n"); /* Start DualCore Interface */ USBH_UsrLog("Initializing hardware...."); DUAL_MenuInit(); }
/** * @brief DUALCORE application Init. * @param None * @retval None */ static void DUAL_InitApplication(void) { /* Configure Key Button */ BSP_PB_Init(BUTTON_TAMPER, BUTTON_MODE_GPIO); /* Configure LED1 */ BSP_LED_Init(LED1); /* Initialize the LCD */ BSP_LCD_Init(); /* LCD Layer Initialization */ BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS); /* Selects the LCD Layer */ BSP_LCD_SelectLayer(1); /* Enables the display */ BSP_LCD_DisplayOn(); /* Init the LCD Log module */ LCD_LOG_Init(); LCD_LOG_SetHeader((uint8_t *)" USB OTG DualCore Host"); LCD_UsrLog("USB Host library started.\n"); /* Start DualCore Interface */ USBH_UsrLog("Initializing hardware...."); DUAL_MenuInit(); }