diff --git a/platform/drivers/tones/toneGenerator_MDx.c b/platform/drivers/tones/toneGenerator_MDx.c index eecbb3be..2930b992 100644 --- a/platform/drivers/tones/toneGenerator_MDx.c +++ b/platform/drivers/tones/toneGenerator_MDx.c @@ -21,6 +21,7 @@ #include "toneGenerator_MDx.h" #include #include +#include /* * Sine table for PWM-based sinewave generation, containing 256 samples over one @@ -62,6 +63,7 @@ uint32_t beepTimerCount = 0; /* Downcounter for timed "beep" */ void __attribute__((used)) TIM3_IRQHandler() { + OSIntEnter(); toneTableIndex += toneTableIncr; beepTableIndex += beepTableIncr; @@ -83,6 +85,7 @@ void __attribute__((used)) TIM3_IRQHandler() { TIM3->CR1 &= ~TIM_CR1_CEN; } + OSIntExit(); } void toneGen_init()