Rant: Why do G4 headers still use uint32_t in #define?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-25 5:11 AM
Hello,
I have reported several time about the miss-use of uint32_t in #define. With G4, STM coders had the chance to get things right from the start. However they did not use the chance. Must every device group at STM make its own errors and does not learn from other groups?
Please remove uint32_t from #define.
And have a look at trailing whitespace. All headers are sprankled with trailing whitespace...
- Labels:
-
STM32Cube MCU Packages
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-03 9:14 AM
Hello @Uwe Bonnes​ ,
>> And have a look at trailing whitespace. All headers are sprankled with trailing whitespace...
Can you please provide more details, or example regarding this feedback.
Regards,
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-03 1:21 PM
There are lot of definitions like
> stm32g484xx.h:#define SYSCFG_SWPR_PAGE31_Msk (uint32_t)(0x1UL << SYSCFG_SWPR_PAGE31_Pos)
The (uint32_t) cast is superfluous. A defintion like
/stm32g484xx.h:#define SYSCFG_SWPR_PAGE31_Msk (0x1UL << SYSCFG_SWPR_PAGE31_Pos)
is enough. The superfluous cast also inhibits some constructs like
#If (bla) < SYSCFG_SWPR_PAGE31_Msk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-03 1:36 PM
Probably I miss-interpreted the DOS Line-endings (CR + LF) that triggered git log --check warnings. I do not see any real trailing whitesspace any more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 1:02 AM
Thanks @Uwe Bonnes​ for this clarification.
Your feedback is reported internally to fix in the coming release.
Regards,
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-04 9:12 AM
STMicroelectronics ST-LINK GDB server. Version 5.3.2 now understands the -a option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-04 9:13 AM
Sorry, please disregard, wrong thread.
