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,6 +1,10 @@
#ifndef STA_SYSTEM_EVENT_HPP
#define STA_SYSTEM_EVENT_HPP
#include <sta/config.hpp>
#ifdef STA_SYSTEM_EVENT_ENABLE
#include <stdint.h>
@ -42,4 +46,6 @@ namespace sta
} // namespace sta
#endif // STA_SYSTEM_EVENT_ENABLE
#endif // STA_SYSTEM_EVENT_HPP

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