-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathrtc.h
More file actions
25 lines (21 loc) · 647 Bytes
/
rtc.h
File metadata and controls
25 lines (21 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
struct rtc_msm_data
{
uae_u8 clock_control_d;
uae_u8 clock_control_e;
uae_u8 clock_control_f;
int delayed_write;
bool yearmode;
};
#define RF5C01A_RAM_SIZE 16
struct rtc_ricoh_data
{
uae_u8 clock_control_d;
uae_u8 clock_control_e;
uae_u8 clock_control_f;
uae_u8 rtc_memory[RF5C01A_RAM_SIZE], rtc_alarm[RF5C01A_RAM_SIZE];
int delayed_write;
};
uae_u8 get_clock_msm(struct rtc_msm_data *data, int addr, struct tm *ct);
bool put_clock_msm(struct rtc_msm_data *data, int addr, uae_u8 v);
uae_u8 get_clock_ricoh(struct rtc_ricoh_data *data, int addr, struct tm *ct);
void put_clock_ricoh(struct rtc_ricoh_data *data, int addr, uae_u8 v);