crozone / ipodloader2

Bootloader for classic iPods. Supports Rockbox, iPod Linux, and stock iPod OS.
44 stars 1 forks source link

Fix GPIO access size, ipodhw cleanup #9

Closed crozone closed 5 months ago

crozone commented 5 months ago

This changes read/write accesses to the GPIO registers to be 8 bits wide instead of 32 bits wide.

This is more correct, since the actual register widths are 8 bits. While real hardware doesn't seem to mind 32 bit read/writes anyway, the wider accesses causes an assert on the Clicky emulator.

This PR also moves many of the GPIO memory address magic numbers into constants within ipodhw.h. It also includes some cleanup of the RTC definition.

Should fix https://github.com/crozone/ipodloader2/issues/8