fix: Internal PXX exclusive S.PORT (#3822)

This commit is contained in:
Raphael Coeffic
2023-10-13 09:48:32 +10:00
committed by GitHub
parent c270ec18bf
commit ff2b3ac22a
24 changed files with 435 additions and 186 deletions
+13
View File
@@ -111,6 +111,19 @@ void restartModule(uint8_t module)
mixerTaskStart();
}
void pulsesRestartModuleUnsafe(uint8_t module)
{
if (module >= MAX_MODULES)
return;
auto mod_drv = pulsesGetModuleDriver(module);
if (!mod_drv->drv) return;
auto drv = mod_drv->drv;
drv->deinit(mod_drv->ctx);
mod_drv->ctx = drv->init(module);
}
#if !defined(SIMU)
#include <FreeRTOS/include/FreeRTOS.h>
#include <FreeRTOS/include/timers.h>