From 0b60af4044a590c1537db7a22e1a20ffd8cfbee2 Mon Sep 17 00:00:00 2001 From: Jakob Bak Date: Wed, 15 May 2013 09:44:07 +0200 Subject: [PATCH] Changes to Music.h and keywords.txt added support for the miniCFO platform to work with the audio --- software/lib/MMM/Music.h | 36 +++++++++++++++++++++++++++++++---- software/lib/MMM/keywords.txt | 23 +++++++++++----------- 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/software/lib/MMM/Music.h b/software/lib/MMM/Music.h index ddadd1c..44aba7f 100644 --- a/software/lib/MMM/Music.h +++ b/software/lib/MMM/Music.h @@ -338,10 +338,15 @@ ISR(TIMER2_COMPA_vect) { // timer 2 is audio interrupt timer void inline MMusic::synthInterrupt8bit() { + PORTD &= ~(1<<3); // Frame sync low for SPI (making it low here so that we can measure lenght of interrupt with scope) +#ifdef CFO + PORTB &= ~(1<<2); +#else PORTD &= ~(1<<6); +#endif accumulator1 = accumulator1 + period1; index1 = accumulator1 >> 8; @@ -436,8 +441,11 @@ void inline MMusic::synthInterrupt8bit() while (!(SPSR & (1<> 4; @@ -544,8 +556,11 @@ void MMusic::synthInterrupt12bitSine() while (!(SPSR & (1<