mbed library sources. Supersedes mbed-src. Add PORTG support for STM32L476JG (SensorTile kit)
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32L4/pinmap.c
- Revision:
- 154:1375a99fb16d
- Parent:
- 149:156823d33999
--- a/targets/TARGET_STM/TARGET_STM32L4/pinmap.c Tue Dec 20 17:27:56 2016 +0000 +++ b/targets/TARGET_STM/TARGET_STM32L4/pinmap.c Mon Jan 02 15:52:04 2017 +0000 @@ -80,6 +80,15 @@ __HAL_RCC_GPIOE_CLK_ENABLE(); break; #endif +#if defined(GPIOG_BASE) + case PortG: + gpio_add = GPIOG_BASE; + __HAL_RCC_SYSCFG_CLK_ENABLE(); + __HAL_RCC_PWR_CLK_ENABLE(); + __HAL_RCC_GPIOG_CLK_ENABLE(); + HAL_PWREx_EnableVddIO2(); + break; +#endif case PortH: gpio_add = GPIOH_BASE; __HAL_RCC_GPIOH_CLK_ENABLE();