[BSP][STM32]增加GPIO驱动对GPIOK时钟初始化

This commit is contained in:
ZYH 2019-02-18 10:08:12 +08:00 committed by Bernard Xiong
parent 23e61b03cc
commit 6a150c0963
1 changed files with 4 additions and 0 deletions

View File

@ -770,6 +770,10 @@ int rt_hw_pin_init(void)
__HAL_RCC_GPIOJ_CLK_ENABLE();
#endif
#if defined(__HAL_RCC_GPIOK_CLK_ENABLE)
__HAL_RCC_GPIOK_CLK_ENABLE();
#endif
return rt_device_pin_register("pin", &_stm32_pin_ops, RT_NULL);
}