cmsis_device_f4 icon indicating copy to clipboard operation
cmsis_device_f4 copied to clipboard

inconsistent naming of macros accross families

Open maribu opened this issue 2 years ago • 4 comments

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?

maribu avatar Mar 20 '23 11:03 maribu

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,

TOUNSTM avatar Apr 25 '23 13:04 TOUNSTM

ST Internal Reference: 179423

TOUNSTM avatar Apr 18 '24 17:04 TOUNSTM

ST Internal Reference: 179424

TOUNSTM avatar Apr 18 '24 18:04 TOUNSTM

ST Internal Reference: 179452

TOUNSTM avatar Apr 19 '24 07:04 TOUNSTM