diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-09-20 19:37:17 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-09-20 19:37:17 +0000 |
commit | c0edce8f5c51508ccaef9bb8460205b0ea2c9438 (patch) | |
tree | e1355b54824407f3c93e1bc7ba75b4206efe0fbb /firmware | |
parent | 855346a9480c5b923be2ee577f5451c4bac8374c (diff) | |
download | rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.gz 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.c | 4 | ||||
-rw-r--r-- | firmware/export/iap.h | 2 | ||||
-rw-r--r-- | firmware/export/ipod_remote_tuner.h | 4 |
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) | |||
57 | tuner_signal_power = (int)(value); | 57 | tuner_signal_power = (int)(value); |
58 | } | 58 | } |
59 | 59 | ||
60 | void rmt_tuner_freq(void) | 60 | void rmt_tuner_freq(const unsigned char *serbuf) |
61 | { | 61 | { |
62 | char tempdata[4]; | 62 | char tempdata[4]; |
63 | tempdata[0] = serbuf[6]; | 63 | tempdata[0] = serbuf[6]; |
@@ -285,7 +285,7 @@ static bool reply_timeout(void) | |||
285 | return (timeout >= TIMEOUT_VALUE); | 285 | return (timeout >= TIMEOUT_VALUE); |
286 | } | 286 | } |
287 | 287 | ||
288 | void rmt_tuner_rds_data(void) | 288 | void rmt_tuner_rds_data(const unsigned char *serbuf) |
289 | { | 289 | { |
290 | if (serbuf[3] == 0x1E) | 290 | if (serbuf[3] == 0x1E) |
291 | { | 291 | { |
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); | |||
29 | extern void iap_periodic(void); | 29 | extern void iap_periodic(void); |
30 | extern void iap_handlepkt(void); | 30 | extern void iap_handlepkt(void); |
31 | extern void iap_send_pkt(const unsigned char * data, int len); | 31 | extern void iap_send_pkt(const unsigned char * data, int len); |
32 | extern unsigned char serbuf[RX_BUFLEN]; | 32 | const unsigned char *iap_get_serbuf(void); |
33 | 33 | ||
34 | #endif | 34 | #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 @@ | |||
28 | 28 | ||
29 | extern int radio_present; | 29 | extern int radio_present; |
30 | 30 | ||
31 | extern void rmt_tuner_freq(void); | 31 | extern void rmt_tuner_freq(const unsigned char *serbuf); |
32 | extern void rmt_tuner_rds_data(void); | 32 | extern void rmt_tuner_rds_data(const unsigned char *serbuf); |
33 | 33 | ||
34 | int ipod_rmt_tuner_set(int setting, int value); | 34 | int ipod_rmt_tuner_set(int setting, int value); |
35 | int ipod_rmt_tuner_get(int setting); | 35 | int ipod_rmt_tuner_get(int setting); |