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
+2 -1
View File
@@ -31,6 +31,7 @@ using std::list;
#include "yaml/yaml_labelslist.h"
#include "yaml/yaml_modelslist.h"
#include "yaml/yaml_parser.h"
#include "os/sleep.h"
#if defined(USBJ_EX)
#include "usb_joystick.h"
@@ -727,7 +728,7 @@ bool ModelMap::renameLabel(const std::string &from, std::string to,
(uint8_t *)modeldata, 0) != NULL);
}
#if defined(SIMU)
if (SIMU_SLEEP_OR_EXIT_MS(100)) break;
sleep_ms(100);
#endif
}
+4 -2
View File
@@ -20,6 +20,7 @@
*/
#include "edgetx.h"
#include "os/sleep.h"
#include "timers_driver.h"
#include "tasks/mixer_task.h"
#include "mixes.h"
@@ -76,8 +77,9 @@ void preModelLoad()
LayoutFactory::deleteCustomScreens(true);
#endif
if (needDelay)
RTOS_WAIT_MS(200);
if (needDelay) {
sleep_ms(200);
}
}
void postRadioSettingsLoad()