-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description
Issue request type
[ ] Question
[X] Enhancement
[ ] Bug
targets: STM32xxx based configs
Hello.
Have you any plans to add pin speed control to STM_PIN_DEFINE, STM_PIN_DEFINE_EXT or add new macro. Also need something like
uint32_t speed = STM_PIN_SPEED(data);
in pin_function
and using speed code for call LL_GPIO_SetPinSpeed
with user-selected speed code;
Existing
#if defined (LL_GPIO_SPEED_FREQ_VERY_HIGH)
LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH);
#else
LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_HIGH);
#endif
may be used in ‘default’ case of selected speed for backward compatibility.
Sample of modified files shown in https://forums.mbed.com/t/pin-speed-control/5528