Question about --testcase parameter in PeakRDL #303
Replies: 2 comments 1 reply
-
|
The testcase validates that the generated C struct accurately represents the intended address offsets. GCC will nearly always pack structs as expected, but in some rare cases this is not possible and GCC may silently insert additional padding into the struct that throws things off. This is avoided by using GCC's packed attribute pragma, but in case folks want to verify, the testcases are for this purpose. The testcases are also used in the PeakRDL tests that are run prior to a release to ensure the exporter is doing what it is supposed to. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the reply! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I came across the --testcase parameter that can be used to generate a C test case for the generated header file. Could someone clarify what exactly the generated test case is intended to check at the moment? Does it do reset value checks for the registers?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions