aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gaudio
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-06-23 17:46:15 +0200
committerJoel Bodenmann <joel@unormal.org>2014-06-23 17:46:15 +0200
commit7481e82dfc63c5f60533405268246d5d7d6450f2 (patch)
tree59240bc28fde5b3dbd02231b4adfe3120b45e017 /drivers/gaudio
parent16fba41d5079aec39d299dbf5481758320443dab (diff)
downloaduGFX-7481e82dfc63c5f60533405268246d5d7d6450f2.tar.gz
uGFX-7481e82dfc63c5f60533405268246d5d7d6450f2.tar.bz2
uGFX-7481e82dfc63c5f60533405268246d5d7d6450f2.zip
VS1053 poll rate is now an overridable value
Diffstat (limited to 'drivers/gaudio')
-rw-r--r--drivers/gaudio/vs1053/gaudio_play_lld.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gaudio/vs1053/gaudio_play_lld.c b/drivers/gaudio/vs1053/gaudio_play_lld.c
index e6c66043..b9b32b6e 100644
--- a/drivers/gaudio/vs1053/gaudio_play_lld.c
+++ b/drivers/gaudio/vs1053/gaudio_play_lld.c
@@ -25,6 +25,9 @@
#ifndef VS1053_FIRMWARE_PATCH
#define VS1053_FIRMWARE_PATCH FALSE
#endif
+#ifndef VS1053_POLL_RATE
+ #define VS1053_POLL_RATAE 5
+#endif
// Load the patch file if desired. New format patches only.
#if VS1053_FIRMWARE_PATCH
@@ -299,7 +302,7 @@ void gaudio_play_lld_start(void) {
// Start the playing by starting the timer and executing FeedData immediately just to get things started
// We really should set the timer to be equivalent to half the available data but that is just too hard to calculate.
- gtimerStart(&playTimer, FeedData, 0, TRUE, 5);
+ gtimerStart(&playTimer, FeedData, 0, TRUE, VS1053_POLL_RATE);
FeedData(0);
}