Infineon / mtb-xmclib-cat3

The XMC Peripheral Library (XMCLib) consists of low-level drivers for the XMC product family peripherals.
Other
13 stars 6 forks source link

XMC_RTC Structures not portable #3

Open nachtsnochlicht opened 5 months ago

nachtsnochlicht commented 5 months ago

The order of bit-fields within an allocation unit is not defined in any C-Standard. This results in non portable code in case of RTC Data Structures!

Reference: https://github.com/Infineon/mtb-xmclib-cat3/blob/9bee66a1dd3d31dad5d04465924125f226c819c7/XMCLib/inc/xmc_rtc.h#L206

In case of hardware access this can lead to unexpected behaviour.