Added SPATZ tick feature

This commit is contained in:
dario
2024-10-05 23:18:24 +02:00
parent 21dd8c1b99
commit b79279dcbc
2 changed files with 27 additions and 9 deletions

View File

@@ -24,6 +24,11 @@ namespace sta
*/
void init(Mutex * mutex, Event * signal);
/**
* @brief Notify SPATZ that a new tick has happened.
*/
void tick();
/**
* @brief Request bytes for a specific sensor id via the printable.
*
@@ -59,13 +64,15 @@ namespace sta
#define STA_SPATZ_INIT(mutex, signal) sta::spatz::init(mutex, signal)
#define STA_SPATZ_TICK() sta::spatz::tick();
#else
namespace sta
{
namespace spatz
{
void init(Mutex * mutex);
void init(Mutex * mutex, Event * signal);
} // namespace spatz
} // namespace sta