Some fixes to ensure compatibility of arduino branch with stm32 features

This commit is contained in:
dario
2024-06-03 23:36:14 +02:00
parent dcc4bd2720
commit e811292ffc
3 changed files with 8 additions and 31 deletions

View File

@@ -1,16 +1,17 @@
#include <sta/devices/arduino/time.hpp>
#include <sta/time.hpp>
#include <sta/config.hpp>
#ifdef STA_PLATFORM_ARDUINO
#include <sta/devices/arduino/hal.hpp>
namespace sta
{
uint32_t now()
uint32_t timeMs()
{
return millis();
}
uint32_t nowUs()
uint32_t timeUs()
{
return micros();
}