summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-08-08 09:02:41 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-08-08 09:02:41 +0000
commit82a2cdb2adcb26a6c0c61c1f717d8749245a0e54 (patch)
tree71d5f36ce2f1f6942a84ef9263586e17ea78470a /firmware
parentb312283b9c60aec61e222003d031dc9f52b12b48 (diff)
downloadrockbox-82a2cdb2adcb26a6c0c61c1f717d8749245a0e54.tar.gz
rockbox-82a2cdb2adcb26a6c0c61c1f717d8749245a0e54.tar.bz2
rockbox-82a2cdb2adcb26a6c0c61c1f717d8749245a0e54.zip
Various minor fixes for Samsung YH* targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27751 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/filefuncs.c1
-rw-r--r--firmware/drivers/rtc/rtc_e8564.c2
-rw-r--r--firmware/target/arm/samsung/yh820/backlight-yh820.c1
-rw-r--r--firmware/target/arm/samsung/yh920/backlight-yh920.c1
-rw-r--r--firmware/target/arm/samsung/yh925/backlight-yh925.c1
5 files changed, 6 insertions, 0 deletions
diff --git a/firmware/common/filefuncs.c b/firmware/common/filefuncs.c
index c058267094..9fe07d69bb 100644
--- a/firmware/common/filefuncs.c
+++ b/firmware/common/filefuncs.c
@@ -23,6 +23,7 @@
#include "stdlib.h"
#include "string.h"
#include "debug.h"
+#include "filefuncs.h"
#ifdef HAVE_MULTIVOLUME
/* returns on which volume this is, and copies the reduced name
diff --git a/firmware/drivers/rtc/rtc_e8564.c b/firmware/drivers/rtc/rtc_e8564.c
index 54e663424b..7a02ec6cdc 100644
--- a/firmware/drivers/rtc/rtc_e8564.c
+++ b/firmware/drivers/rtc/rtc_e8564.c
@@ -109,6 +109,7 @@ int rtc_write_datetime(const struct tm *tm)
return 1;
}
+#ifdef HAVE_RTC_ALARM
void rtc_set_alarm(int h, int m)
{
unsigned char buf[4] = {0};
@@ -222,4 +223,5 @@ bool rtc_check_alarm_flag(void)
return (tmp & RTC_AF);
}
+#endif /* HAVE_RTC_ALARM */
diff --git a/firmware/target/arm/samsung/yh820/backlight-yh820.c b/firmware/target/arm/samsung/yh820/backlight-yh820.c
index 5e2cf81e08..0bbdb4f7d4 100644
--- a/firmware/target/arm/samsung/yh820/backlight-yh820.c
+++ b/firmware/target/arm/samsung/yh820/backlight-yh820.c
@@ -22,6 +22,7 @@
#include "cpu.h"
#include "system.h"
#include "backlight.h"
+#include "backlight-target.h"
#include "lcd.h"
void _backlight_on(void)
diff --git a/firmware/target/arm/samsung/yh920/backlight-yh920.c b/firmware/target/arm/samsung/yh920/backlight-yh920.c
index 5e2cf81e08..0bbdb4f7d4 100644
--- a/firmware/target/arm/samsung/yh920/backlight-yh920.c
+++ b/firmware/target/arm/samsung/yh920/backlight-yh920.c
@@ -22,6 +22,7 @@
#include "cpu.h"
#include "system.h"
#include "backlight.h"
+#include "backlight-target.h"
#include "lcd.h"
void _backlight_on(void)
diff --git a/firmware/target/arm/samsung/yh925/backlight-yh925.c b/firmware/target/arm/samsung/yh925/backlight-yh925.c
index 2dac1d7a81..5f29f9f770 100644
--- a/firmware/target/arm/samsung/yh925/backlight-yh925.c
+++ b/firmware/target/arm/samsung/yh925/backlight-yh925.c
@@ -22,6 +22,7 @@
#include "cpu.h"
#include "system.h"
#include "backlight.h"
+#include "backlight-target.h"
#include "lcd.h"
void _backlight_on(void)