summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h1
-rw-r--r--firmware/export/config/sansaclipplus.h6
-rw-r--r--firmware/export/si4700.h8
3 files changed, 14 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index e887796acc..52f647f2fa 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -718,6 +718,7 @@ Lyre prototype 1 */
718#define RDS_CFG_ISR 0x1 /* uses ISR to process packets */ 718#define RDS_CFG_ISR 0x1 /* uses ISR to process packets */
719#define RDS_CFG_PROCESS 0x2 /* uses raw packet processing */ 719#define RDS_CFG_PROCESS 0x2 /* uses raw packet processing */
720#define RDS_CFG_PUSH 0x4 /* pushes processed information */ 720#define RDS_CFG_PUSH 0x4 /* pushes processed information */
721#define RDS_CFG_POLL 0x8 /* tuner driver provides a polling function */
721#ifndef CONFIG_RDS 722#ifndef CONFIG_RDS
722#define CONFIG_RDS RDS_CFG_PROCESS /* thread processing+raw processing */ 723#define CONFIG_RDS RDS_CFG_PROCESS /* thread processing+raw processing */
723#endif /* CONFIG_RDS */ 724#endif /* CONFIG_RDS */
diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h
index 3108bace61..e0df0c28c3 100644
--- a/firmware/export/config/sansaclipplus.h
+++ b/firmware/export/config/sansaclipplus.h
@@ -17,6 +17,9 @@
17 17
18#ifndef BOOTLOADER 18#ifndef BOOTLOADER
19#define HAVE_HOTSWAP 19#define HAVE_HOTSWAP
20#define HAVE_RDS_CAP
21#define CONFIG_RDS (RDS_CFG_POLL | RDS_CFG_PROCESS)
22#define CONFIG_RDS_POLL_TICKS 4
20#endif 23#endif
21 24
22#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96 25#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96
@@ -146,6 +149,9 @@
146/* define this if the flash memory uses the SecureDigital Memory Card protocol */ 149/* define this if the flash memory uses the SecureDigital Memory Card protocol */
147#define CONFIG_STORAGE STORAGE_SD 150#define CONFIG_STORAGE STORAGE_SD
148 151
152/* Define this if target has an additional number of threads specific to it */
153#define TARGET_EXTRA_THREADS 1 /* RDS thread */
154
149#define BATTERY_CAPACITY_DEFAULT 290 /* default battery capacity */ 155#define BATTERY_CAPACITY_DEFAULT 290 /* default battery capacity */
150#define BATTERY_CAPACITY_MIN 290 /* min. capacity selectable */ 156#define BATTERY_CAPACITY_MIN 290 /* min. capacity selectable */
151#define BATTERY_CAPACITY_MAX 290 /* max. capacity selectable */ 157#define BATTERY_CAPACITY_MAX 290 /* max. capacity selectable */
diff --git a/firmware/export/si4700.h b/firmware/export/si4700.h
index bd75bf0817..033b435f2a 100644
--- a/firmware/export/si4700.h
+++ b/firmware/export/si4700.h
@@ -55,7 +55,13 @@ void si4700_rds_read_raw_async(unsigned char *buf, int count); /* implemented by
55void si4700_rds_interrupt(void); 55void si4700_rds_interrupt(void);
56#endif /* (CONFIG_RDS & RDS_CFG_ISR) */ 56#endif /* (CONFIG_RDS & RDS_CFG_ISR) */
57 57
58/* Read raw RDS info for processing */ 58/* Read raw RDS info for processing.
59 * - If RDS_CFG_ISR is set, the tuner driver will call si4700_rds_read_raw_async() which should
60 * perform an asynchronous read and call this function when the data has been read.
61 * - If RDS_CFG_POLL is set, this function will read status and RDS data and process it if a new
62 * packet is available.
63 * - Otherwise this function will read a RDS packet and process it under the assumption that it is
64 * new. */
59void si4700_rds_process(void); 65void si4700_rds_process(void);
60 66
61#endif /* HAVE_RDS_CAP */ 67#endif /* HAVE_RDS_CAP */