From de0346065b415e03efad5746ffdee99d607a0d3c Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Mon, 15 Nov 2021 20:46:28 +0100 Subject: Sansa Clip+: add RDS support Based on a patch by Amaury Pouly which was based on a patch from Ryan Hitchman. I mainly moved the code for polling into the tuner driver so it can be reused by other targets. I added the CONFIG parameter for the polling frequency (in ticks) to save energy. Also, I did some minor cleanups. Change-Id: I95a62e7e1e42c62dbf47ecb27a3b312a42be62aa --- firmware/export/config/sansaclipplus.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/export/config') 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 @@ #ifndef BOOTLOADER #define HAVE_HOTSWAP +#define HAVE_RDS_CAP +#define CONFIG_RDS (RDS_CFG_POLL | RDS_CFG_PROCESS) +#define CONFIG_RDS_POLL_TICKS 4 #endif #define HW_SAMPR_CAPS SAMPR_CAP_ALL_96 @@ -146,6 +149,9 @@ /* define this if the flash memory uses the SecureDigital Memory Card protocol */ #define CONFIG_STORAGE STORAGE_SD +/* Define this if target has an additional number of threads specific to it */ +#define TARGET_EXTRA_THREADS 1 /* RDS thread */ + #define BATTERY_CAPACITY_DEFAULT 290 /* default battery capacity */ #define BATTERY_CAPACITY_MIN 290 /* min. capacity selectable */ #define BATTERY_CAPACITY_MAX 290 /* max. capacity selectable */ -- cgit v1.2.3