void board_userled_initialize(void) { /* Configure LED gpio as output */ stm32l4_configgpio(GPIO_LED1); stm32l4_configgpio(GPIO_LED2); }
void stm32l4_usbinitialize(void) { /* The OTG FS has an internal soft pull-up. No GPIO configuration is required */ /* Configure the OTG FS VBUS sensing GPIO, Power On, and Over current GPIOs */ #ifdef CONFIG_STM32L4_OTGFS stm32l4_configgpio(GPIO_OTGFS_VBUS); stm32l4_configgpio(GPIO_OTGFS_PWRON); stm32l4_configgpio(GPIO_OTGFS_OVER); #endif }
void board_button_initialize(void) { /* Configure the single button as an input. NOTE that EXTI interrupts are * also configured for the pin. */ stm32l4_configgpio(GPIO_BTN_USER); }
void board_autoled_initialize(void) { /* Configure LD2 GPIO for output */ stm32l4_configgpio(GPIO_LD2); }