Still senseless casting in recent device headers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-02-19 2:38 AM
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
Labels:
- Labels:
-
STM32U5 series
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-02-19 2:43 AM
Another one for the Coding Standard!
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.
A complex system designed from scratch never works and cannot be patched up to make it work.
