Use #if defined TARGET_STM32L4

pull/3930/head
Pierre-Marie Ancele 2017-02-23 09:32:12 +01:00 committed by Anna Bridge
parent c57bce96b6
commit 44c60b55a6
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ GPIO_TypeDef *Set_GPIO_Clock(uint32_t port_idx) {
#endif #endif
#if defined GPIOG_BASE #if defined GPIOG_BASE
case PortG: case PortG:
#if defined STM32L4 #if defined TARGET_STM32L4
__HAL_RCC_PWR_CLK_ENABLE(); __HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2(); HAL_PWREx_EnableVddIO2();
#endif #endif