Skip to content

Commit 03c9e77

Browse files
#if 0 RTC interrupt defines
1 parent 79e0d25 commit 03c9e77

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

CEdev/include/lib/ce/tice.h

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,9 @@
1919
#define RTC_UNFREEZE (1<<7)
2020
#define RTC_FREEZE (0<<7)
2121
#define RTC_LOAD (1<<6)
22-
#define RTC_ALARM_INT_SOURCE (1<<5)
23-
#define RTC_DAY_INT_SOURCE (1<<4)
24-
#define RTC_HR_INT_SOURCE (1<<3)
25-
#define RTC_MIN_INT_SOURCE (1<<2)
26-
#define RTC_SEC_INT_SOURCE (1<<1)
2722
#define RTC_ENABLE (1<<0)|RTC_UNFREEZE
2823
#define RTC_DISABLE (0<<0)
2924

30-
#define RTC_LOAD_INT (1<<5)
31-
#define RTC_ALARM_INT (1<<4)
32-
#define RTC_DAY_INT (1<<3)
33-
#define RTC_HR_INT (1<<2)
34-
#define RTC_MIN_INT (1<<1)
35-
#define RTC_SEC_INT (1<<0)
36-
3725
#define rtc_Seconds (*(volatile uint8_t*)0xF30000)
3826
#define rtc_Minutes (*(volatile uint8_t*)0xF30004)
3927
#define rtc_Hours (*(volatile uint8_t*)0xF30008)
@@ -46,10 +34,30 @@
4634
#define rtc_LoadMinutes (*(uint8_t*)0xF30028)
4735
#define rtc_LoadHours (*(uint8_t*)0xF3002C)
4836
#define rtc_LoadDays (*(uint16_t*)0xF30030)
49-
#define rtc_IntStatus (*(volatile uint8_t*)0xF30037)
50-
#define rtc_IntAcknowledge (*(volatile uint8_t*)0xF30034)
5137
#define rtc_IsBusy() (rtc_Control & RTC_LOAD)
5238

39+
/**
40+
* The RTC does not appear to handle interrupt status correctly as of yet
41+
* However, this may just require more testing. These will hopefully be updated
42+
* in the near future
43+
*/
44+
#if 0
45+
#define RTC_ALARM_INT_SOURCE (1<<5)
46+
#define RTC_DAY_INT_SOURCE (1<<4)
47+
#define RTC_HR_INT_SOURCE (1<<3)
48+
#define RTC_MIN_INT_SOURCE (1<<2)
49+
#define RTC_SEC_INT_SOURCE (1<<1)
50+
51+
#define RTC_LOAD_INT (1<<5)
52+
#define RTC_ALARM_INT (1<<4)
53+
#define RTC_DAY_INT (1<<3)
54+
#define RTC_HR_INT (1<<2)
55+
#define RTC_MIN_INT (1<<1)
56+
#define RTC_SEC_INT (1<<0)
57+
#define rtc_IntStatus (*(volatile uint8_t*)0xF30034)
58+
#define rtc_IntAcknowledge (*(volatile uint8_t*)0xF30034)
59+
#endif
60+
5361
/**
5462
* Resets the RTC back to its original values
5563
* If enable is true, the RTC will be enabled during this function

0 commit comments

Comments
 (0)