mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-01 13:12:32 +00:00
Merge pull request #3210 from martijnvdwoude/fix/stm32l4-gpiod-conditional
Fix STM32L4 GPIOD clock enable for variants without GPIOD
This commit is contained in:
@ -59,7 +59,9 @@ void board_init(void) {
|
||||
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||
#if defined(GPIOD)
|
||||
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||
#endif
|
||||
#if defined(GPIOE)
|
||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user