summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/pcf50606.c2
-rw-r--r--firmware/drivers/rtc/rtc_tcc77x.c12
2 files changed, 10 insertions, 4 deletions
diff --git a/firmware/drivers/pcf50606.c b/firmware/drivers/pcf50606.c
index d44718c58b..fb89c827e5 100644
--- a/firmware/drivers/pcf50606.c
+++ b/firmware/drivers/pcf50606.c
@@ -72,12 +72,14 @@ void pcf50606_init(void)
72#endif 72#endif
73} 73}
74 74
75#if (defined(IAUDIO_X5) || defined(IAUDIO_M5) || defined(COWON_D2)) && !defined (SIMULATOR)
75void pcf50606_reset_timeout(void) 76void pcf50606_reset_timeout(void)
76{ 77{
77 int level = disable_irq_save(); 78 int level = disable_irq_save();
78 pcf50606_write(PCF5060X_OOCC1, pcf50606_read(PCF5060X_OOCC1) | TOTRST); 79 pcf50606_write(PCF5060X_OOCC1, pcf50606_read(PCF5060X_OOCC1) | TOTRST);
79 restore_irq(level); 80 restore_irq(level);
80} 81}
82#endif
81 83
82void pcf50606_read_adc(int adc, short* res1, short* res2) 84void pcf50606_read_adc(int adc, short* res1, short* res2)
83{ 85{
diff --git a/firmware/drivers/rtc/rtc_tcc77x.c b/firmware/drivers/rtc/rtc_tcc77x.c
index 0ae4059f8a..a85c93d65a 100644
--- a/firmware/drivers/rtc/rtc_tcc77x.c
+++ b/firmware/drivers/rtc/rtc_tcc77x.c
@@ -27,22 +27,24 @@ void rtc_init(void)
27{ 27{
28} 28}
29 29
30int rtc_read_datetime(unsigned char* buf) 30int rtc_read_datetime(struct tm *tm)
31{ 31{
32 32 (void)tm;
33 return 0;
33} 34}
34 35
35int rtc_write_datetime(unsigned char* buf) 36int rtc_write_datetime(const struct tm *tm)
36{ 37{
38 (void)tm;
37 return 1; 39 return 1;
38} 40}
39 41
42#ifdef HAVE_RTC_ALARM
40/** 43/**
41 * Checks to see if an alarm interrupt has triggered since last we checked. 44 * Checks to see if an alarm interrupt has triggered since last we checked.
42 */ 45 */
43bool rtc_check_alarm_flag(void) 46bool rtc_check_alarm_flag(void)
44{ 47{
45
46} 48}
47 49
48/** 50/**
@@ -74,4 +76,6 @@ void rtc_get_alarm(int *h, int *m)
74// *m = ((buf[0] >> 4) & 0x7)*10 + (buf[0] & 0x0f); 76// *m = ((buf[0] >> 4) & 0x7)*10 + (buf[0] & 0x0f);
75// *h = ((buf[1] >> 4) & 0x3)*10 + (buf[1] & 0x0f); 77// *h = ((buf[1] >> 4) & 0x3)*10 + (buf[1] & 0x0f);
76} 78}
79#endif /* HAVE_RTC_ALARM */
80
77 81