Some fixes for UART receiving with interrupts for SPATZ

This commit is contained in:
dario
2024-08-16 21:49:45 +02:00
parent ac1344747b
commit f57212bf6d
3 changed files with 20 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
#include <sta/mutex.hpp>
#include <sta/signal.hpp>
#include <sta/event.hpp>
#include <sta/config.hpp>
#ifdef STA_SPATZ_ENABLED
@@ -21,7 +22,7 @@ namespace sta
*
* @param mutex A mutex used to make SPATZ thread-safe.
*/
void init(Mutex * mutex, Signal * signal);
void init(Mutex * mutex, Event * signal);
/**
* @brief Request bytes for a specific sensor id via the printable.
@@ -49,6 +50,8 @@ namespace sta
* @param length The number of doubles to request.
*/
void request(uint8_t id, double * buffer, size_t length);
void notify(uint8_t id);
} // namespace spatz
} // namespace sta