From 1d21e54fc4f586bbdfb765c90c9a64c060eeecc4 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 10 May 2012 18:29:43 +0200 Subject: fuze+: add RDS support I successfully identified the STC/RDS pin as B2P27. Strangely the OF uses polling instead of interrupts but since they routed it, let's use it! On the fuze+ the fmradio i2c uses bit toggling so we can't read the RDS data in the interrupt context. Instead we defer the work to a thread. Change-Id: Iedfa425320e6c91b4351b72e97c732696bdb2b73 Reviewed-on: http://gerrit.rockbox.org/236 Reviewed-by: Bertrik Sikken Reviewed-by: Amaury Pouly --- firmware/export/config/sansafuzeplus.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index 9d7b9bf756..810cc1d6a1 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h @@ -77,6 +77,7 @@ #define HAVE_IMX233_CODEC #define CONFIG_TUNER SI4700 +#define HAVE_RDS_CAP /* There is no hardware tone control */ #define HAVE_SW_TONE_CONTROLS @@ -129,8 +130,8 @@ #define NUM_DRIVES 2 #define HAVE_HOTSWAP -/* Extra threads: touchpad */ -#define TARGET_EXTRA_THREADS 1 +/* Extra threads: touchpad and rds */ +#define TARGET_EXTRA_THREADS 2 /* todo */ #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ -- cgit v1.2.3