fw/icE1usb: Reorganize fields in misc peripheral

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2020-09-15 22:06:00 +02:00
parent c1d117b6de
commit 1ac458f5fa
2 changed files with 9 additions and 5 deletions

View File

@ -17,10 +17,12 @@ struct misc {
uint32_t _rsvd0[3];;
struct {
uint16_t rx;
uint16_t tx;
uint16_t _rsvd1;
} e1_tick[2];
uint32_t _rsvd1;
uint32_t time;
struct {
uint32_t _rsvd2;
uint32_t now;
} time;
} __attribute__((packed,aligned(4)));
static volatile struct misc * const misc_regs = (void*)(MISC_BASE);

View File

@ -21,8 +21,10 @@ struct misc {
uint16_t rx;
uint16_t tx;
} e1_tick[2];
uint32_t gps;
uint32_t time;
struct {
uint32_t pps;
uint32_t now;
} time;
uint32_t pdm[8];
} __attribute__((packed,aligned(4)));