Open nachtsnochlicht opened 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.
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.