summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-09-20 19:37:17 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-09-20 19:37:17 +0000
commitc0edce8f5c51508ccaef9bb8460205b0ea2c9438 (patch)
treee1355b54824407f3c93e1bc7ba75b4206efe0fbb /firmware
parent855346a9480c5b923be2ee577f5451c4bac8374c (diff)
downloadrockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.gz
rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.bz2
rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.zip
iap: make variable serbuf non-global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/tuner/ipod_remote_tuner.c4
-rw-r--r--firmware/export/iap.h2
-rw-r--r--firmware/export/ipod_remote_tuner.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c
index a20735402e..92fcd902ab 100644
--- a/firmware/drivers/tuner/ipod_remote_tuner.c
+++ b/firmware/drivers/tuner/ipod_remote_tuner.c
@@ -57,7 +57,7 @@ static void rmt_tuner_signal_power(unsigned char value)
tuner_signal_power = (int)(value);
}
-void rmt_tuner_freq(void)
+void rmt_tuner_freq(const unsigned char *serbuf)
{
char tempdata[4];
tempdata[0] = serbuf[6];
@@ -285,7 +285,7 @@ static bool reply_timeout(void)
return (timeout >= TIMEOUT_VALUE);
}
-void rmt_tuner_rds_data(void)
+void rmt_tuner_rds_data(const unsigned char *serbuf)
{
if (serbuf[3] == 0x1E)
{
diff --git a/firmware/export/iap.h b/firmware/export/iap.h
index b6d6e64d68..fab218cf05 100644
--- a/firmware/export/iap.h
+++ b/firmware/export/iap.h
@@ -29,6 +29,6 @@ extern void iap_bitrate_set(int ratenum);
extern void iap_periodic(void);
extern void iap_handlepkt(void);
extern void iap_send_pkt(const unsigned char * data, int len);
-extern unsigned char serbuf[RX_BUFLEN];
+const unsigned char *iap_get_serbuf(void);
#endif
diff --git a/firmware/export/ipod_remote_tuner.h b/firmware/export/ipod_remote_tuner.h
index c22978b0e4..e87b967193 100644
--- a/firmware/export/ipod_remote_tuner.h
+++ b/firmware/export/ipod_remote_tuner.h
@@ -28,8 +28,8 @@
extern int radio_present;
-extern void rmt_tuner_freq(void);
-extern void rmt_tuner_rds_data(void);
+extern void rmt_tuner_freq(const unsigned char *serbuf);
+extern void rmt_tuner_rds_data(const unsigned char *serbuf);
int ipod_rmt_tuner_set(int setting, int value);
int ipod_rmt_tuner_get(int setting);