summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-05-03 21:33:00 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-05-03 21:33:00 +0000
commit19425909c3e19b3733b13fefc2a2aa88fb9f1d61 (patch)
treeb027f3545b048ab9ec18ad65b0a71c53434e449f /firmware/target/coldfire
parente243db65b41c967ae8e7ef4cd946a2cdf7c6a19e (diff)
Another round of making local functions static and making sure that source files are in sync with their header files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17337 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r--firmware/target/coldfire/ata-target.h1
-rw-r--r--firmware/target/coldfire/iaudio/m3/ata-m3.c1
-rw-r--r--firmware/target/coldfire/iaudio/m3/button-m3.c1
-rw-r--r--firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c1
-rw-r--r--firmware/target/coldfire/iaudio/m3/lcd-m3.c1
-rw-r--r--firmware/target/coldfire/iaudio/m3/usb-m3.c1
-rw-r--r--firmware/target/coldfire/pcm-coldfire.c4
-rw-r--r--firmware/target/coldfire/usb-target.h2
8 files changed, 9 insertions, 3 deletions
diff --git a/firmware/target/coldfire/ata-target.h b/firmware/target/coldfire/ata-target.h
index e246dc7af1..d7dc80cf37 100644
--- a/firmware/target/coldfire/ata-target.h
+++ b/firmware/target/coldfire/ata-target.h
@@ -62,6 +62,7 @@
#define SET_16BITREG(reg,val) reg = (val)
void ata_reset(void);
+void ata_enable(bool on);
void ata_device_init(void);
bool ata_is_coldstart(void);
diff --git a/firmware/target/coldfire/iaudio/m3/ata-m3.c b/firmware/target/coldfire/iaudio/m3/ata-m3.c
index 3a0a28b618..c71510d833 100644
--- a/firmware/target/coldfire/iaudio/m3/ata-m3.c
+++ b/firmware/target/coldfire/iaudio/m3/ata-m3.c
@@ -23,6 +23,7 @@
#include "kernel.h"
#include "system.h"
#include "power.h"
+#include "ata-target.h"
void ata_reset(void)
{
diff --git a/firmware/target/coldfire/iaudio/m3/button-m3.c b/firmware/target/coldfire/iaudio/m3/button-m3.c
index ecea221a4c..5de2779c37 100644
--- a/firmware/target/coldfire/iaudio/m3/button-m3.c
+++ b/firmware/target/coldfire/iaudio/m3/button-m3.c
@@ -22,6 +22,7 @@
#include "button.h"
#include "backlight.h"
#include "adc.h"
+#include "lcd-remote-target.h"
static bool hold_button = false;
static bool remote_hold_button = false;
diff --git a/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c b/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
index dcd945d813..620f1030ea 100644
--- a/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
+++ b/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
@@ -22,6 +22,7 @@
#if (CONFIG_TUNER & TEA5767)
#include "i2c-coldfire.h"
+#include "fmradio_i2c.h"
int fmradio_i2c_write(unsigned char address, const unsigned char* buf,
int count)
diff --git a/firmware/target/coldfire/iaudio/m3/lcd-m3.c b/firmware/target/coldfire/iaudio/m3/lcd-m3.c
index 81f19bd73f..9bb72b087a 100644
--- a/firmware/target/coldfire/iaudio/m3/lcd-m3.c
+++ b/firmware/target/coldfire/iaudio/m3/lcd-m3.c
@@ -22,6 +22,7 @@
#include "file.h"
#include "lcd.h"
#include "scroll_engine.h"
+#include "lcd-remote-target.h"
/* The LCD in the iAudio M3/M5/X5 remote control is a Tomato LSI 0350 */
diff --git a/firmware/target/coldfire/iaudio/m3/usb-m3.c b/firmware/target/coldfire/iaudio/m3/usb-m3.c
index f37c69574c..6f6718af24 100644
--- a/firmware/target/coldfire/iaudio/m3/usb-m3.c
+++ b/firmware/target/coldfire/iaudio/m3/usb-m3.c
@@ -22,6 +22,7 @@
#include "cpu.h"
#include "system.h"
#include "usb.h"
+#include "usb-target.h"
void usb_init_device(void)
{
diff --git a/firmware/target/coldfire/pcm-coldfire.c b/firmware/target/coldfire/pcm-coldfire.c
index 2614946543..fbab046b70 100644
--- a/firmware/target/coldfire/pcm-coldfire.c
+++ b/firmware/target/coldfire/pcm-coldfire.c
@@ -119,7 +119,7 @@ void pcm_set_frequency(unsigned int frequency)
} /* pcm_set_frequency */
/* apply audio settings */
-bool _pcm_apply_settings(bool clear_reset)
+static bool _pcm_apply_settings(bool clear_reset)
{
bool did_reset = false;
unsigned long iis_play_defparm = IIS_PLAY_DEFPARM;
@@ -154,7 +154,7 @@ bool _pcm_apply_settings(bool clear_reset)
} /* _pcm_apply_settings */
/* apply audio setting with all DMA interrupts disabled */
-void _pcm_apply_settings_irq_lock(bool clear_reset)
+static void _pcm_apply_settings_irq_lock(bool clear_reset)
{
int level = set_irq_level(DMA_IRQ_LEVEL);
_pcm_apply_settings(clear_reset);
diff --git a/firmware/target/coldfire/usb-target.h b/firmware/target/coldfire/usb-target.h
index ab8cac6f99..8908dc69e8 100644
--- a/firmware/target/coldfire/usb-target.h
+++ b/firmware/target/coldfire/usb-target.h
@@ -19,6 +19,6 @@
#ifndef USB_TARGET_H
#define USB_TARGET_H
-bool usb_init_device(void);
+void usb_init_device(void);
#endif