summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-11-20 00:33:43 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-11-20 00:33:43 +0000
commitaaa99e70ba738cd29f9d1b627d8bf47de1160d3b (patch)
tree0762ce59af3ee7e5cc27f9c93249701d2e1420e6 /apps/settings.c
parent577e571958ab43afb9ffd2526811053731e8d7c1 (diff)
downloadrockbox-aaa99e70ba738cd29f9d1b627d8bf47de1160d3b.zip
rockbox-aaa99e70ba738cd29f9d1b627d8bf47de1160d3b.tar.gz
rockbox-aaa99e70ba738cd29f9d1b627d8bf47de1160d3b.tar.bz2
rockbox-aaa99e70ba738cd29f9d1b627d8bf47de1160d3b.tar.xz
Recording in FM screen, USB mode possible in FM and recording screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4046 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 1f3382f..68e382a 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1988,3 +1988,29 @@ bool set_time(char* string, int timedate[])
return false;
}
#endif
+
+#ifdef HAVE_MAS3587F
+/* This array holds the record timer interval lengths, in seconds */
+static unsigned long rec_timer_seconds[] =
+{
+ 24*60*60, /* OFF really means 24 hours, to avoid >2Gbyte files */
+ 5*60, /* 00:05 */
+ 10*60, /* 00:10 */
+ 15*60, /* 00:15 */
+ 30*60, /* 00:30 */
+ 60*60, /* 01:00 */
+ 2*60*60, /* 02:00 */
+ 4*60*60, /* 04:00 */
+ 6*60*60, /* 06:00 */
+ 8*60*60, /* 08:00 */
+ 10*60*60, /* 10:00 */
+ 12*60*60, /* 12:00 */
+ 18*60*60, /* 18:00 */
+ 24*60*60 /* 24:00 */
+};
+
+unsigned int rec_timesplit_seconds(void)
+{
+ return rec_timer_seconds[global_settings.rec_timesplit];
+}
+#endif