summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-12-29 12:02:49 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-12-29 12:02:49 +0000
commit7b596416bf2cf533a514b4d1f7b95c6de6efa7d5 (patch)
treee1a0031a93591424eacdf943796680880077a3a4 /firmware/export
parent20d81d979a22403c16c1f1c576de63af07b2ea99 (diff)
downloadrockbox-7b596416bf2cf533a514b4d1f7b95c6de6efa7d5.tar.gz
rockbox-7b596416bf2cf533a514b4d1f7b95c6de6efa7d5.zip
Gigabeat S: Update RDS processing to use asynchronous I2C rather than thread.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31462 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/gigabeats.h3
-rw-r--r--firmware/export/si4700.h12
2 files changed, 12 insertions, 3 deletions
diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h
index 04e7b156b6..9a34791ab1 100644
--- a/firmware/export/config/gigabeats.h
+++ b/firmware/export/config/gigabeats.h
@@ -90,6 +90,7 @@
90#define CONFIG_TUNER SI4700 90#define CONFIG_TUNER SI4700
91 91
92#define HAVE_RDS_CAP 92#define HAVE_RDS_CAP
93#define SI4700_RDS_ASYNC
93 94
94/* Define this if you have the WM8978 audio codec */ 95/* Define this if you have the WM8978 audio codec */
95#define HAVE_WM8978 96#define HAVE_WM8978
@@ -163,7 +164,7 @@
163#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) 164#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
164 165
165/* Define this if target has an additional number of threads specific to it */ 166/* Define this if target has an additional number of threads specific to it */
166#define TARGET_EXTRA_THREADS 3 167#define TARGET_EXTRA_THREADS 2
167 168
168/* Type of mobile power - check this out */ 169/* Type of mobile power - check this out */
169#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ 170#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
diff --git a/firmware/export/si4700.h b/firmware/export/si4700.h
index 761ad1ca24..fe55dd3853 100644
--- a/firmware/export/si4700.h
+++ b/firmware/export/si4700.h
@@ -44,10 +44,18 @@ bool si4700_st(void);
44 44
45/** RDS support **/ 45/** RDS support **/
46void si4700_rds_init(void); 46void si4700_rds_init(void);
47/* Read raw RDS info for processing */
48bool si4700_rds_read_raw(uint16_t data[4]);
49/* Radio is fully powered up or about to be powered down */ 47/* Radio is fully powered up or about to be powered down */
50void si4700_rds_powerup(bool on); 48void si4700_rds_powerup(bool on);
49#ifdef SI4700_RDS_ASYNC
50/* Read raw RDS info for processing - asynchronously */
51void si4700_read_raw_async(int count);
52void si4700_rds_read_raw_async(void);
53void si4700_rds_read_raw_async_complete(unsigned char *regbuf,
54 uint16_t data[4]);
55#else
56/* Read raw RDS info for processing */
57bool si4700_rds_read_raw(uint16_t data[4]);
58#endif
51/* Obtain specified string */ 59/* Obtain specified string */
52char* si4700_get_rds_info(int setting); 60char* si4700_get_rds_info(int setting);
53/* Set the event flag */ 61/* Set the event flag */