ST, please maintain style in the CMSIS-mandated headers
In [CubeH7]\Drivers\CMSIS\Device\ST\STM32H7xx\Include\stm32h743xx.h I see:
#define RCC_PLLCFGR_PLL1RGE_0 (0x0UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000000 */
#define RCC_PLLCFGR_PLL1RGE_1 (0x1UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000004 */
#define RCC_PLLCFGR_PLL1RGE_2 (0x2UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000008 */
#define RCC_PLLCFGR_PLL1RGE_3 (0x3UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */The _0, _1 etc. suffix is used across all headers and all registers to denote *individual bits* of a non-single-bit bitfield in the SFRs. Here, it confusingly denotes *values*.
ST, please stop being innovative and stick to established style.
Please, make up clear policies regarding the CMSIS-mandated headers, and STICK TO THEM rigorously.
Also, whle I applaud adding values for non-single-bit bitfields, please do this for ALL such bitfields in headers for ALL STM32 devices. Please don't shift them to the position as it prevents the reuse for bitfields of the same meaning at other positions; and please do it in a uniform style, making clear the intention (there's no point making numeral symbols for plainly enumerated values, the symbol has to be explanatory); and, as said above, use a style clearly distinct from the style used to denote individual bits.
Please note, that symbols defined haphazardly in the "libraries" (SPL, Cuben) are of no relevance for developers who don't intend to use these "libraries".
JW
