SOMO-14D work for the gruvin9x board

This commit is contained in:
bsongis
2012-06-06 10:06:36 +00:00
parent 214332fbb9
commit 82fe7c61b1
21 changed files with 470 additions and 57 deletions
+6 -1
View File
@@ -150,9 +150,14 @@ ISR(TIMER4_COMPA_vect) //Every 0.5ms
return BUSY;
}
void somoPushPrompt(uint16_t prompt)
void pushPrompt(uint16_t prompt)
{
somo14playlist[somo14WIdx] = prompt;
somo14WIdx = (somo14WIdx + 1) % QUEUE_LENGTH;
TIMSK4 |= (1<<OCIE4A);
}
bool isPlaying()
{
return TIMSK4 & (1<<OCIE4A);
}
+5 -1
View File
@@ -31,4 +31,8 @@
*
*/
extern void somoPushPrompt(uint16_t prompt);
#define PROMPT_CUSTOM_BASE 100
extern void pushPrompt(uint16_t prompt);
extern bool isPlaying();