-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin speed control #11362
Comments
cc @ARMmbed/team-st-mcd |
What is the final objective that you want to achieve ? Rather than adding defines at TARGET_STM level, shouldn't we add a new pin control interface similar to the pull-up/down control one here: |
Reasons for adding defines at TARGET_STM level: Please do not add ten-level grade with unpredictable (and version-dependent) mapping. Initially, this enhancement born after silent changes default speed from LL_GPIO_SPEED_FREQ_HIGH to LL_GPIO_SPEED_FREQ_VERY_HIGH - and fail EMC test. |
Ok, thanks for the details, I wasn't even aware this would impact on EMC tests. We were using the highest freq by default. Modifying the PeripheralPins.c seems like a huge effort to deploy it widely. An alternative is to revert the change that caused you regression and EMC issue and switch back to default LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_HIGH); Would that help in short term ? |
Yes, this method already used, Already existing |
I just had a quick look at your sample code - would you mind sharing it as a Pull request which would make it easier to review and might be accepted quicker. |
Yes, backward compatibility guarantied.
|
You'd need to create a fork of mbed-os repo to your ua1arn github account (fork button in github), add this new repo as a remote to your local development repo (git remote add myfork https://github.com/ua1arn /mbed-os.git) then push to "myfork" repo. From there you'll trig a pull request to mbed-os as described here: |
Modified files atrtached. |
Pull requests really makes review easier and will keep your name on the changes :-) |
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1695 |
This comment has been minimized.
This comment has been minimized.
Hi |
Description
Issue request type
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);
inpin_function
and using speed code for callLL_GPIO_SetPinSpeed
with user-selected speed code;Existing
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
The text was updated successfully, but these errors were encountered: