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
stm32: GPIO driver implementation uses magic numbers #4880
Comments
That looks like a task for @A-Paul :-) ??? |
@PeterKietzmann, do you want me to be assigned to this issue? |
@A-Paul no matter about the assignment. IIRC you once wanted to start an offensive to eliminate all magic numbers :-) |
@PeterKietzmann, in my opinion the use of numeric literals leads to some problems and should be avoided. Although I'm not feeling to be in charge of cleaning them up... ;) |
This issue has been announced in #4862 as a reminder for @haukepetersen. Are you going to address this? |
I'm gonna regret this... But I think I know fix the magic numbers using the STM32 header files... Only for STM ofcourse =) |
I am not going to address this anytime soon, as I personally don't have that strong opinions against magic numbers at certain places... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
This is still an issue and could be fixed with new CMSIS headers. I think all STM32 cpu uses the new CMSIS versions now. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Example:
RIOT/cpu/stm32f0/periph/gpio.c
Line 119 in df99604
These can lead to hard to find bugs and should be changed to preprocessor constants.
The text was updated successfully, but these errors were encountered: