MPM proto scan: use RTOS timers instead of polling for timeout

This commit is contained in:
Raphael Coeffic
2022-08-11 12:15:46 +02:00
committed by Raphael Coeffic
parent c413790892
commit 8f85097c90
3 changed files with 68 additions and 11 deletions
+10
View File
@@ -27,6 +27,12 @@
#include <vector>
#include <map>
#if !defined(SIMU)
// Forward declare FreeRTOS timer
struct tmrTimerControl;
typedef struct tmrTimerControl * TimerHandle_t;
#endif
class MultiRfProtocols
{
static MultiRfProtocols* _instance[NUM_MODULES];
@@ -45,6 +51,10 @@ class MultiRfProtocols
MultiRfProtocols(unsigned int moduleIdx);
void fillBuiltinProtos();
#if !defined(SIMU)
static void timerCb(TimerHandle_t xTimer);
#endif
public:
struct RfProto {