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
+4 -15
View File
@@ -30,17 +30,11 @@
#include <stddef.h>
#include <errno.h>
// #undef min
// #undef max
extern uint8_t * eeprom;
#define __disable_irq()
#define __enable_irq()
extern char * main_thread_error;
uint64_t simuTimerMicros(void);
uint8_t simuSleep(uint32_t ms); // returns true if thread shutdown requested
@@ -57,21 +51,16 @@ void startEepromThread(const char * filename = "eeprom.bin");
void stopEepromThread();
#if defined(SIMU_AUDIO)
void startAudioThread(int volumeGain = 10);
void stopAudioThread(void);
int startAudio(int volumeGain = 10);
void stopAudio();
#else
#define startAudioThread(dummy)
#define stopAudioThread()
#define startAudio(dummy) (-1)
#define stopAudio()
#endif
#endif
void simuMain();
// inline void delay_01us(uint32_t dummy) { }
#define configure_pins(...)
#if !defined(SKIP_FATFS_DECLARATION) && !defined(SIMU_DISKIO)
#define SIMU_USE_SDCARD
#endif