summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-fmrecorder.h2
-rw-r--r--firmware/export/config-h120.h2
-rw-r--r--firmware/export/config-ipod3g.h1
-rw-r--r--firmware/export/config-ipod4g.h1
-rw-r--r--firmware/export/config-ipodcolor.h1
-rw-r--r--firmware/export/config-ipodmini.h1
-rw-r--r--firmware/export/config-ipodmini2g.h1
-rw-r--r--firmware/export/config-ipodnano.h1
-rw-r--r--firmware/export/config-ipodvideo.h1
-rw-r--r--firmware/export/config-recorderv2.h2
-rw-r--r--firmware/export/rtc.h4
11 files changed, 12 insertions, 5 deletions
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index da2f7fbb87..1b7bd190d6 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -97,7 +97,7 @@
97#define FIRMWARE_OFFSET_FILE_DATA 24 97#define FIRMWARE_OFFSET_FILE_DATA 24
98 98
99/* FM recorders can wake up from RTC alarm */ 99/* FM recorders can wake up from RTC alarm */
100#define HAVE_ALARM_MOD 100#define HAVE_RTC_ALARM
101 101
102/* How to detect USB */ 102/* How to detect USB */
103#define USB_FMRECORDERSTYLE 1 103#define USB_FMRECORDERSTYLE 1
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index 9dccf22d0e..e899cd4c5a 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -48,7 +48,7 @@
48#ifndef SIMULATOR 48#ifndef SIMULATOR
49/* RTC is autodetected on target only */ 49/* RTC is autodetected on target only */
50#define CONFIG_RTC RTC_DS1339_DS3231 50#define CONFIG_RTC RTC_DS1339_DS3231
51#define HAVE_ALARM_MOD 51#define HAVE_RTC_ALARM
52#endif 52#endif
53 53
54 /* Define this if you have an remote lcd */ 54 /* Define this if you have an remote lcd */
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h
index d97b5ac886..4c9b61267f 100644
--- a/firmware/export/config-ipod3g.h
+++ b/firmware/export/config-ipod3g.h
@@ -48,6 +48,7 @@
48/* define this if you have a real-time clock */ 48/* define this if you have a real-time clock */
49#ifndef BOOTLOADER 49#ifndef BOOTLOADER
50#define CONFIG_RTC RTC_PCF50605 50#define CONFIG_RTC RTC_PCF50605
51#define HAVE_RTC_ALARM
51#endif 52#endif
52 53
53/* Define this if you have a software controlled poweroff */ 54/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h
index 504de0f471..3790500063 100644
--- a/firmware/export/config-ipod4g.h
+++ b/firmware/export/config-ipod4g.h
@@ -54,6 +54,7 @@
54/* define this if you have a real-time clock */ 54/* define this if you have a real-time clock */
55#ifndef BOOTLOADER 55#ifndef BOOTLOADER
56#define CONFIG_RTC RTC_PCF50605 56#define CONFIG_RTC RTC_PCF50605
57#define HAVE_RTC_ALARM
57#endif 58#endif
58 59
59/* Define this if you have a software controlled poweroff */ 60/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index 97b4301ce6..efe49fb6a7 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -45,6 +45,7 @@
45/* define this if you have a real-time clock */ 45/* define this if you have a real-time clock */
46#ifndef BOOTLOADER 46#ifndef BOOTLOADER
47#define CONFIG_RTC RTC_PCF50605 47#define CONFIG_RTC RTC_PCF50605
48#define HAVE_RTC_ALARM
48#endif 49#endif
49 50
50/* Define this if you have a software controlled poweroff */ 51/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h
index df5da35f4c..4a6c6a5dcf 100644
--- a/firmware/export/config-ipodmini.h
+++ b/firmware/export/config-ipodmini.h
@@ -48,6 +48,7 @@
48/* define this if you have a real-time clock */ 48/* define this if you have a real-time clock */
49#ifndef BOOTLOADER 49#ifndef BOOTLOADER
50#define CONFIG_RTC RTC_PCF50605 50#define CONFIG_RTC RTC_PCF50605
51#define HAVE_RTC_ALARM
51#endif 52#endif
52 53
53/* Define this if you have a software controlled poweroff */ 54/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h
index aa5bef2df0..a8033b1574 100644
--- a/firmware/export/config-ipodmini2g.h
+++ b/firmware/export/config-ipodmini2g.h
@@ -48,6 +48,7 @@
48/* define this if you have a real-time clock */ 48/* define this if you have a real-time clock */
49#ifndef BOOTLOADER 49#ifndef BOOTLOADER
50#define CONFIG_RTC RTC_PCF50605 50#define CONFIG_RTC RTC_PCF50605
51#define HAVE_RTC_ALARM
51#endif 52#endif
52 53
53/* Define this if you have a software controlled poweroff */ 54/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 52bdbe2890..2e727e463b 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -45,6 +45,7 @@
45/* define this if you have a real-time clock */ 45/* define this if you have a real-time clock */
46#ifndef BOOTLOADER 46#ifndef BOOTLOADER
47#define CONFIG_RTC RTC_PCF50605 47#define CONFIG_RTC RTC_PCF50605
48#define HAVE_RTC_ALARM
48#endif 49#endif
49 50
50/* Define this if you have a software controlled poweroff */ 51/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 6f68f1e756..765c33b2a4 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -45,6 +45,7 @@
45/* define this if you have a real-time clock */ 45/* define this if you have a real-time clock */
46#ifndef BOOTLOADER 46#ifndef BOOTLOADER
47#define CONFIG_RTC RTC_PCF50605 47#define CONFIG_RTC RTC_PCF50605
48#define HAVE_RTC_ALARM
48#endif 49#endif
49 50
50/* Define this if you have a software controlled poweroff */ 51/* Define this if you have a software controlled poweroff */
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h
index f035f2dab0..0568879066 100644
--- a/firmware/export/config-recorderv2.h
+++ b/firmware/export/config-recorderv2.h
@@ -94,7 +94,7 @@
94#define FIRMWARE_OFFSET_FILE_DATA 24 94#define FIRMWARE_OFFSET_FILE_DATA 24
95 95
96/* FM recorders can wake up from RTC alarm */ 96/* FM recorders can wake up from RTC alarm */
97#define HAVE_ALARM_MOD 97#define HAVE_RTC_ALARM
98 98
99/* Define this if you have an FM Radio */ 99/* Define this if you have an FM Radio */
100#define CONFIG_TUNER S1A0903X01 100#define CONFIG_TUNER S1A0903X01
diff --git a/firmware/export/rtc.h b/firmware/export/rtc.h
index 2f13cbb578..1b0d215371 100644
--- a/firmware/export/rtc.h
+++ b/firmware/export/rtc.h
@@ -47,13 +47,13 @@ int rtc_write(unsigned char address, unsigned char value);
47 47
48#endif /* RTC_M41ST84W */ 48#endif /* RTC_M41ST84W */
49 49
50#ifdef HAVE_ALARM_MOD 50#ifdef HAVE_RTC_ALARM
51void rtc_set_alarm(int h, int m); 51void rtc_set_alarm(int h, int m);
52void rtc_get_alarm(int *h, int *m); 52void rtc_get_alarm(int *h, int *m);
53bool rtc_enable_alarm(bool enable); 53bool rtc_enable_alarm(bool enable);
54bool rtc_check_alarm_started(bool release_alarm); 54bool rtc_check_alarm_started(bool release_alarm);
55bool rtc_check_alarm_flag(void); 55bool rtc_check_alarm_flag(void);
56#endif /* HAVE_ALARM_MOD */ 56#endif /* HAVE_RTC_ALARM */
57 57
58#endif /* CONFIG_RTC */ 58#endif /* CONFIG_RTC */
59 59