Skip to content

Commit

Permalink
Corrected important type for STM32 (Maple core)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcombriat authored and tfry-git committed Jan 3, 2024
1 parent aa32d00 commit da0b028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MozziGuts_impl_STM32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void setupFastAnalogRead(int8_t speed) {


//// BEGIN AUDIO OUTPUT code ///////
#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXERNAL_TIMED)
#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED)
HardwareTimer audio_update_timer(MOZZI_AUDIO_UPDATE_TIMER);
#elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM)
HardwareTimer audio_update_timer(MOZZI_AUDIO_UPDATE_TIMER);
Expand All @@ -83,7 +83,7 @@ inline void audioOutput(const AudioOutput f) {
#endif

static void startAudio() {
#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXERNAL_TIMED)
#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXTERNAL_TIMED)
audio_update_timer.pause();
//audio_update_timer.setPeriod(1000000UL / AUDIO_RATE);
// Manually calculate prescaler and overflow instead of using setPeriod, to avoid rounding errors
Expand Down Expand Up @@ -132,7 +132,7 @@ static void startAudio() {
}

void stopMozzi() {
#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXERNAL_TIMED)
#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXTERNAL_TIMED)
audio_update_timer.pause();
#endif
}
Expand Down

0 comments on commit da0b028

Please sign in to comment.