summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod')
-rw-r--r--firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c2
-rw-r--r--firmware/target/arm/ipod/1g2g/adc-target.h1
-rw-r--r--firmware/target/arm/ipod/1g2g/backlight-1g2g.c3
-rw-r--r--firmware/target/arm/ipod/3g/backlight-3g.c1
-rw-r--r--firmware/target/arm/ipod/backlight-4g_color.c1
-rw-r--r--firmware/target/arm/ipod/backlight-mini1g_mini2g.c1
-rw-r--r--firmware/target/arm/ipod/backlight-nano_video.c1
-rw-r--r--firmware/target/arm/ipod/button-target.h1
-rw-r--r--firmware/target/arm/ipod/lcd-gray.c2
-rw-r--r--firmware/target/arm/ipod/power-ipod.c2
10 files changed, 14 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c b/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
index 1a5379be89..cfeb78d198 100644
--- a/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
+++ b/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
@@ -23,6 +23,8 @@
#include "cpu.h"
#include "hwcompat.h"
#include "kernel.h"
+#include "adc.h"
+#include "adc-target.h"
static struct mutex adc_mtx SHAREDBSS_ATTR;
diff --git a/firmware/target/arm/ipod/1g2g/adc-target.h b/firmware/target/arm/ipod/1g2g/adc-target.h
index c9e9417614..5b0ce4b4ae 100644
--- a/firmware/target/arm/ipod/1g2g/adc-target.h
+++ b/firmware/target/arm/ipod/1g2g/adc-target.h
@@ -29,6 +29,7 @@
/* Force a scan now */
unsigned short adc_scan(int channel);
+void ipod_2g_adc_int(void);
static inline unsigned short adc_read(int channel)
{
return adc_scan(channel);
diff --git a/firmware/target/arm/ipod/1g2g/backlight-1g2g.c b/firmware/target/arm/ipod/1g2g/backlight-1g2g.c
index 0e208b2312..b7797813ec 100644
--- a/firmware/target/arm/ipod/1g2g/backlight-1g2g.c
+++ b/firmware/target/arm/ipod/1g2g/backlight-1g2g.c
@@ -20,8 +20,9 @@
****************************************************************************/
#include "config.h"
#include "system.h"
-#include "backlight.h"
#include "lcd.h"
+#include "backlight.h"
+#include "backlight-target.h"
void _backlight_on(void)
{
diff --git a/firmware/target/arm/ipod/3g/backlight-3g.c b/firmware/target/arm/ipod/3g/backlight-3g.c
index 00070c739b..77088e32ec 100644
--- a/firmware/target/arm/ipod/3g/backlight-3g.c
+++ b/firmware/target/arm/ipod/3g/backlight-3g.c
@@ -21,6 +21,7 @@
#include "config.h"
#include "system.h"
#include "backlight.h"
+#include "backlight-target.h"
void _backlight_on(void)
{
diff --git a/firmware/target/arm/ipod/backlight-4g_color.c b/firmware/target/arm/ipod/backlight-4g_color.c
index 4103e5bb57..656bef0e17 100644
--- a/firmware/target/arm/ipod/backlight-4g_color.c
+++ b/firmware/target/arm/ipod/backlight-4g_color.c
@@ -32,6 +32,7 @@
#include "button.h"
#include "timer.h"
#include "backlight.h"
+#include "backlight-target.h"
void _backlight_on(void)
{
diff --git a/firmware/target/arm/ipod/backlight-mini1g_mini2g.c b/firmware/target/arm/ipod/backlight-mini1g_mini2g.c
index 2c070c14ad..1d57b7742e 100644
--- a/firmware/target/arm/ipod/backlight-mini1g_mini2g.c
+++ b/firmware/target/arm/ipod/backlight-mini1g_mini2g.c
@@ -32,6 +32,7 @@
#include "button.h"
#include "timer.h"
#include "backlight.h"
+#include "backlight-target.h"
void _backlight_hw_on(void)
{
diff --git a/firmware/target/arm/ipod/backlight-nano_video.c b/firmware/target/arm/ipod/backlight-nano_video.c
index a064e4e330..5eb5198b73 100644
--- a/firmware/target/arm/ipod/backlight-nano_video.c
+++ b/firmware/target/arm/ipod/backlight-nano_video.c
@@ -32,6 +32,7 @@
#include "button.h"
#include "timer.h"
#include "backlight.h"
+#include "backlight-target.h"
static int brightness = 1; /* 1 to 32 */
static int current_dim = 16; /* default after enabling the backlight dimmer */
diff --git a/firmware/target/arm/ipod/button-target.h b/firmware/target/arm/ipod/button-target.h
index c42c9fbe93..a0ac372839 100644
--- a/firmware/target/arm/ipod/button-target.h
+++ b/firmware/target/arm/ipod/button-target.h
@@ -31,6 +31,7 @@ void button_init_device(void);
int button_read_device(void);
void ipod_mini_button_int(void);
+void ipod_3g_button_int(void);
void ipod_4g_button_int(void);
/* iPod specific button codes */
diff --git a/firmware/target/arm/ipod/lcd-gray.c b/firmware/target/arm/ipod/lcd-gray.c
index 70355920b6..811e64e96b 100644
--- a/firmware/target/arm/ipod/lcd-gray.c
+++ b/firmware/target/arm/ipod/lcd-gray.c
@@ -239,6 +239,7 @@ void lcd_set_flip(bool yesno)
#endif
}
+#ifdef HAVE_LCD_ENABLE
void lcd_enable(bool on)
{
if (on)
@@ -257,6 +258,7 @@ void lcd_enable(bool on)
/* enter standby mode */
}
}
+#endif /* HAVE_LCD_ENABLE */
/*** update functions ***/
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c
index 76c9fdf5ff..af1ac9fc87 100644
--- a/firmware/target/arm/ipod/power-ipod.c
+++ b/firmware/target/arm/ipod/power-ipod.c
@@ -42,6 +42,7 @@ void power_init(void)
#endif
}
+#if CONFIG_CHARGING
bool charger_inserted(void)
{
#if defined(IPOD_VIDEO)
@@ -60,6 +61,7 @@ bool charger_inserted(void)
bool charging_state(void) {
return (GPIOB_INPUT_VAL & 0x01)?false:true;
}
+#endif /* CONFIG_CHARGING */
void ide_power_enable(bool on)