Skip to content

Commit

Permalink
fixed HIFI
Browse files Browse the repository at this point in the history
  • Loading branch information
sensorium committed Apr 4, 2017
1 parent 5766d9d commit bcc0c4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MozziGuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,12 @@ static void backupMozziTimer2()
}


// audio output interrupt on timer 2 (or 4 on ATMEGA32U4 cpu), sets the pwm levels of timer 1
// audio output interrupt on timer 2 (or 4 on ATMEGA32U4 cpu), sets the pwm levels of timer 2
static void setupTimer2()
{
backupPreMozziTimer2(); // to reset while pausing
unsigned long period = 16000000UL/AUDIO_RATE;
period *= clockCyclesPerMicrosecond();
FrequencyTimer2::setPeriodMicroSeconds(period);
FrequencyTimer2::setPeriodCPUCycles(period);
FrequencyTimer2::setOnOverflow(dummy);
FrequencyTimer2::enable();

Expand Down
4 changes: 4 additions & 0 deletions extras/NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ NEWS
get the latest version from https://sensorium.github.io/Mozzi/


release v1.0.3rc6
-MozziGuts.cpp line 444: changed setPeriodMicroSeconds setPeriodCPUCycles so HIFI actually works this time...


release v1.0.3rc5
-MozziGuts.cpp line 444: changed setPeriod to setPeriodMicroSeconds to match Mozzi's modified FrequencyTimer2

Expand Down

0 comments on commit bcc0c4e

Please sign in to comment.