Skip to main content
Uwe Bonnes
Chief
February 19, 2024
Question

Still senseless casting in recent device headers

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

This topic has been closed for replies.

1 reply

Andrew Neil
Super User
February 19, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.