summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/fmradio-i2c-as3525.c6
-rw-r--r--firmware/target/arm/as3525/system-as3525.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/fmradio-i2c-as3525.c b/firmware/target/arm/as3525/fmradio-i2c-as3525.c
index 5b629f5ad4..7f6cb8366b 100644
--- a/firmware/target/arm/as3525/fmradio-i2c-as3525.c
+++ b/firmware/target/arm/as3525/fmradio-i2c-as3525.c
@@ -185,6 +185,11 @@ int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
185} 185}
186 186
187#ifdef HAVE_RDS_CAP 187#ifdef HAVE_RDS_CAP
188/* On the Sansa Clip Zip, the tuner interrupt line is routed to the SoC so we
189 * can use to detect when a RDS packet is ready. On the Clip+, we have to
190 * regularly poll. */
191
192#if !(CONFIG_RDS & RDS_CFG_POLL)
188/* Low-level RDS Support */ 193/* Low-level RDS Support */
189static struct semaphore rds_sema; 194static struct semaphore rds_sema;
190static uint32_t rds_stack[DEFAULT_STACK_SIZE/sizeof(uint32_t)]; 195static uint32_t rds_stack[DEFAULT_STACK_SIZE/sizeof(uint32_t)];
@@ -231,4 +236,5 @@ void si4700_rds_init(void)
231 create_thread(rds_thread, rds_stack, sizeof(rds_stack), 0, "rds" 236 create_thread(rds_thread, rds_stack, sizeof(rds_stack), 0, "rds"
232 IF_PRIO(, PRIORITY_REALTIME) IF_COP(, CPU)); 237 IF_PRIO(, PRIORITY_REALTIME) IF_COP(, CPU));
233} 238}
239#endif /* !(CONFIG_RDS & RDS_CFG_POLL) */
234#endif /* HAVE_RDS_CAP */ 240#endif /* HAVE_RDS_CAP */
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 83ccb55f79..0450c8b410 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -180,7 +180,7 @@ void INT_GPIOA(void)
180 void button_gpioa_isr(void); 180 void button_gpioa_isr(void);
181 button_gpioa_isr(); 181 button_gpioa_isr();
182#endif 182#endif
183#ifdef HAVE_RDS_CAP 183#if defined(HAVE_RDS_CAP) && !(CONFIG_RDS & RDS_CFG_POLL)
184 void tuner_isr(void); 184 void tuner_isr(void);
185 tuner_isr(); 185 tuner_isr();
186#endif 186#endif