cancel
Showing results for 
Search instead for 
Did you mean: 

Still senseless casting in recent device headers

Uwe Bonnes
Principal II

Hello,

even the STM32Cube_FW_U5_V1.4.0 devices headers contain senseless casting like:

#define SDMMC_IDMABASER_IDMABASER ((uint32_t)0xFFFFFFFF) /*!< Memory base address register */

 

Header files should use a designator at the end of the number, like

#define SRAM1_SIZE (0x30000UL) /*!< SRAM1=192k */

used in most other places. Maybe a supervisory check of the header before publishing is  missing...

 

Regards

1 REPLY 1