stm32f411 usb work with example

This commit is contained in:
hathach
2019-07-22 18:53:52 +07:00
parent be4eeeb943
commit 1594a9de71
3 changed files with 110 additions and 101 deletions

View File

@@ -68,7 +68,7 @@ void board_init(void)
__HAL_RCC_GPIOE_CLK_ENABLE();
/* -2- Configure PE.8 to PE.15 IOs in output push-pull mode to drive external LEDs */
static GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Pin = LED_PIN;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;