Merge of the 2 sound_5ms() and audio.heartbeat() functions. Perhaps will be reverted, depending on what Mike thinks of it...

This commit is contained in:
bsongis
2012-05-03 17:28:22 +00:00
parent 6e201bc4b6
commit 523f988b16
5 changed files with 108 additions and 153 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ extern "C" void TC2_IRQHandler()
dummy = TC0->TC_CHANNEL[2].TC_SR;
(void) dummy ; // Discard value - prevents compiler warning
sound_5ms() ;
AUDIO_HEARTBEAT();
if ( ++pre_scale >= 2 ) {
Tenms |= 1 ; // 10 mS has passed