summaryrefslogtreecommitdiff
path: root/firmware/drivers/rds.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-12-29 14:55:49 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-12-29 14:55:49 +0000
commit2403f38c1fd8bc35d4d8e4b12047265366fbf1b7 (patch)
treeda021fed131c9c05512ea7632b059b19ff37b0a7 /firmware/drivers/rds.c
parentea55ad07b700307b6f66960e08b52d96828ce789 (diff)
downloadrockbox-2403f38c1fd8bc35d4d8e4b12047265366fbf1b7.tar.gz
rockbox-2403f38c1fd8bc35d4d8e4b12047265366fbf1b7.zip
RDS: Use a define that doesn't imply any particular hardware dependency.
Theoretically, anything with the capability could implement the decoding action in an ISR on any radio chip supporting RDS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31464 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/rds.c')
-rw-r--r--firmware/drivers/rds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/rds.c b/firmware/drivers/rds.c
index 828c28b672..05b17aba12 100644
--- a/firmware/drivers/rds.c
+++ b/firmware/drivers/rds.c
@@ -36,7 +36,7 @@ static char rt_copy[65];
36static int rt_segment; 36static int rt_segment;
37static int rt_abflag; 37static int rt_abflag;
38 38
39#ifdef SI4700_RDS_ASYNC 39#ifdef RDS_ISR_PROCESSING
40/* Functions are called in ISR context */ 40/* Functions are called in ISR context */
41#define rds_disable_irq_save() disable_irq_save() 41#define rds_disable_irq_save() disable_irq_save()
42#define rds_restore_irq(old) restore_irq(old) 42#define rds_restore_irq(old) restore_irq(old)
@@ -57,12 +57,12 @@ static inline char * get_rt(void)
57 rds_restore_irq(oldlevel); 57 rds_restore_irq(oldlevel);
58 return rt_out; 58 return rt_out;
59} 59}
60#else /* ndef SI4700_RDS_ASYNC */ 60#else /* ndef RDS_ISR_PROCESSING */
61#define rds_disable_irq_save() 0 61#define rds_disable_irq_save() 0
62#define rds_restore_irq(old) ((void)(old)) 62#define rds_restore_irq(old) ((void)(old))
63static inline char * get_ps(void) { return ps_copy; } 63static inline char * get_ps(void) { return ps_copy; }
64static inline char * get_rt(void) { return rt_copy; } 64static inline char * get_rt(void) { return rt_copy; }
65#endif /* SI4700_RDS_ASYNC */ 65#endif /* RDS_ISR_PROCESSING */
66 66
67/* resets the rds parser */ 67/* resets the rds parser */
68void rds_reset(void) 68void rds_reset(void)