diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2021-11-15 20:46:28 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-11-18 16:44:21 -0500 |
commit | de0346065b415e03efad5746ffdee99d607a0d3c (patch) | |
tree | 87397e0435d5e9dcf03af7ef81c80a777e2f6fd1 /firmware/export/config | |
parent | 701d4ba77e61984a71ddbf552193e5567be4e3af (diff) | |
download | rockbox-de0346065b415e03efad5746ffdee99d607a0d3c.tar.gz rockbox-de0346065b415e03efad5746ffdee99d607a0d3c.zip |
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
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/sansaclipplus.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |