feat(radio): OS compatibility layer (#5840)

This commit is contained in:
Raphael Coeffic
2025-05-03 19:07:49 +10:00
committed by GitHub
parent c996612b0a
commit ab2a19e153
92 changed files with 1740 additions and 896 deletions
@@ -22,6 +22,7 @@
#include "hal/gpio.h"
#include "hal/audio_driver.h"
#include "os/sleep.h"
#include "stm32_gpio.h"
#include "stm32_timer.h"
#include "stm32_dma.h"
@@ -162,7 +163,7 @@ void audioUnmute()
if (get_mute_pin()) {
// ..un-mute
set_mute_pin(false);
RTOS_WAIT_MS(AUDIO_UNMUTE_DELAY);
sleep_ms(AUDIO_UNMUTE_DELAY);
}
// reset the mute delay
audioQueue.lastAudioPlayTime = 0;