This commit is contained in:
Ken Van Hoeylandt 2026-02-01 22:05:38 +01:00
parent 0521462ffc
commit 5eb7285b38

View File

@ -17,6 +17,10 @@
#include <time.h> #include <time.h>
#endif #endif
#ifdef __cplusplus
extern "C" {
#endif
// Projects that include this header must align with Tactility's frequency (e.g. apps) // Projects that include this header must align with Tactility's frequency (e.g. apps)
static_assert(configTICK_RATE_HZ == 1000); static_assert(configTICK_RATE_HZ == 1000);
@ -77,3 +81,7 @@ static inline TickType_t millis_to_ticks(uint32_t milliSeconds) {
return static_cast<TickType_t>(((float)configTICK_RATE_HZ) / 1000.0f * (float)milliSeconds); return static_cast<TickType_t>(((float)configTICK_RATE_HZ) / 1000.0f * (float)milliSeconds);
#endif #endif
} }
#ifdef __cplusplus
}
#endif