mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix RTC bincompat with 0.1
This commit is contained in:
parent
073dbd6b8d
commit
d36c0ec7df
|
@ -54,7 +54,7 @@ enum GPIODirection {
|
||||||
GPIO_READ_WRITE = 1
|
GPIO_READ_WRITE = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
DECL_BITFIELD(RTCControl, uint8_t);
|
DECL_BITFIELD(RTCControl, uint32_t);
|
||||||
DECL_BIT(RTCControl, MinIRQ, 3);
|
DECL_BIT(RTCControl, MinIRQ, 3);
|
||||||
DECL_BIT(RTCControl, Hour24, 6);
|
DECL_BIT(RTCControl, Hour24, 6);
|
||||||
DECL_BIT(RTCControl, Poweroff, 7);
|
DECL_BIT(RTCControl, Poweroff, 7);
|
||||||
|
@ -67,7 +67,7 @@ enum RTCCommand {
|
||||||
RTC_TIME = 6
|
RTC_TIME = 6
|
||||||
};
|
};
|
||||||
|
|
||||||
DECL_BITFIELD(RTCCommandData, uint8_t);
|
DECL_BITFIELD(RTCCommandData, uint32_t);
|
||||||
DECL_BITS(RTCCommandData, Magic, 0, 4);
|
DECL_BITS(RTCCommandData, Magic, 0, 4);
|
||||||
DECL_BITS(RTCCommandData, Command, 4, 3);
|
DECL_BITS(RTCCommandData, Command, 4, 3);
|
||||||
DECL_BIT(RTCCommandData, Reading, 7);
|
DECL_BIT(RTCCommandData, Reading, 7);
|
||||||
|
|
Loading…
Reference in New Issue