Add STA_SYSTEM_EVENT_ENABLE define

This commit is contained in:
Henrik Stickann
2022-03-31 13:53:44 +02:00
parent dde9b83a29
commit 89037e6145
2 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#include <sta/system_event.hpp>
#ifdef STA_SYSTEM_EVENT_ENABLE
#include <cmsis_os2.h>
@@ -30,3 +32,6 @@ namespace sta
waitForSystemEvents(STA_SYSTEM_EVENT_STARTUP, osFlagsWaitAll, osWaitForever);
}
} // namespace sta
#endif // STA_SYSTEM_EVENT_ENABLE