Skip to content

Commit db1d8fd

Browse files
authored
Merge pull request #9602 from jeromecoutant/PR_VERYHIGH
STM32 GPIO: use maximum speed
2 parents e1d891b + ae47617 commit db1d8fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

targets/TARGET_STM/pinmap.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ void pin_function(PinName pin, int data)
7979
#if defined (TARGET_STM32F1)
8080
if (mode == STM_PIN_OUTPUT) {
8181
#endif
82+
83+
#if defined (LL_GPIO_SPEED_FREQ_VERY_HIGH)
84+
LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH);
85+
#else
8286
LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_HIGH);
87+
#endif
88+
8389
#if defined (TARGET_STM32F1)
8490
}
8591
#endif

0 commit comments

Comments
 (0)