Skip to content
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

inconsistent naming of macros accross families #8

Open
maribu opened this issue Mar 20, 2023 · 4 comments
Open

inconsistent naming of macros accross families #8

maribu opened this issue Mar 20, 2023 · 4 comments
Assignees
Labels
cmsis CMSIS-related issue or pull-request. enhancement New feature or request internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system

Comments

@maribu
Copy link

maribu commented Mar 20, 2023

It seems that the GPIO peripheral is largely the same for all but the STM32F1 family. Still, macros that seem to refer to the exact same thing are named inconsistently, e.g.:

  • GPIO_OSPEEDER_OSPEED0: STM32L0
  • GPIO_OSPEEDER_OSPEEDR0: STM32F0, STM32F2, STM32F3, STM32F4, STM32F7, STM32G4, STM32L1, STM32L4
  • GPIO_OSPEEDR_OSPEED0: STM32F2, STM32F4, STM32G0, STM32G4, STM32L4, STM32L5, STM32U5, STM32WB, STM32WL
  • GPIO_OSPEEDR_OSPEEDR0: STM32F0, STM32F7

Are there any plans to at least provide aliases (e.g. #define GPIO_OSPEEDR_OSPEED0 GPIO_OSPEEDER_OSPEEDR0) so that there is one canonical name for each macro that works across families?

@TOUNSTM TOUNSTM self-assigned this Apr 25, 2023
@TOUNSTM TOUNSTM added the cmsis CMSIS-related issue or pull-request. label Apr 25, 2023
@TOUNSTM
Copy link
Contributor

TOUNSTM commented Apr 25, 2023

Hello @maribu,

Thank you for this report. We will get back to you as soon as we analyze it further. This may take some time. Thank you for your comprehension.

With regards,

@ALABSTM ALABSTM added the enhancement New feature or request label Oct 12, 2023
@TOUNSTM
Copy link
Contributor

TOUNSTM commented Apr 18, 2024

ST Internal Reference: 179423

@TOUNSTM TOUNSTM added the internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system label Apr 18, 2024
@TOUNSTM
Copy link
Contributor

TOUNSTM commented Apr 18, 2024

ST Internal Reference: 179424

@TOUNSTM
Copy link
Contributor

TOUNSTM commented Apr 19, 2024

ST Internal Reference: 179452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmsis CMSIS-related issue or pull-request. enhancement New feature or request internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system
Projects
Development

No branches or pull requests

3 participants