Commit 85defd1
committed
Ensure alignment when computing reserved registers
If the routine for computing reserved peripheral memory places at least
one u32 after a u16 register, the compiler could insert an extra u16 of
padding to align the u32 reservation. The extra padding is not
considered by the routine. This can result in incorrect register offsets
for all registers placed after the reservation.
This commit only uses byte arrays for register reservations. Byte
arrays, requiring one byte alignment, are the simplest way to reserve
peripheral memory. This will result in a larger diff when re-generating
the RAL.1 parent d316aaa commit 85defd1
1 file changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | 762 | | |
771 | 763 | | |
772 | 764 | | |
| |||
0 commit comments