Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_STM/pinmap.c
- Revision:
- 167:e84263d55307
- Parent:
- 160:d5399cc887bb
--- a/targets/TARGET_STM/pinmap.c Thu Jun 08 15:02:37 2017 +0100 +++ b/targets/TARGET_STM/pinmap.c Wed Jun 21 17:46:44 2017 +0100 @@ -72,14 +72,17 @@ GPIO_TypeDef *gpio = Set_GPIO_Clock(port); /* Set default speed to high. - * This is done before other settings on purpose: * For most families there are dedicated registers so it is * not so important, register can be set at any time. - * But for families like F1, speed only applies to output. so we set - * it here, and then if input is selected, this setting might be - * overriden by the input one. + * But for families like F1, speed only applies to output. */ +#if defined (TARGET_STM32F1) +if (mode == STM_PIN_OUTPUT) { +#endif LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_HIGH); +#if defined (TARGET_STM32F1) +} +#endif switch (mode) { case STM_PIN_INPUT: