2024-02-09 14:30:51 +01:00

30 lines
561 B
C++

#ifndef STA_CORE_ARDUINO_DELAY_HPP
#define STA_CORE_ARDUINO_DELAY_HPP
// Only enable module on Arduino platform
#include <sta/config.hpp>
#if defined(STA_PLATFORM_ARDUINO) || defined(DOXYGEN)
#include <stdint.h>
namespace sta
{
/**
* @brief Millisecond delay.
*
* @param ms Milliseconds
*/
void delayMs(uint32_t ms);
/**
* @brief Microsecond delay.
*
* @param us Microseconds
*/
void delayUs(uint32_t us);
} // namespace sta
#endif // STA_PLATFORM_ARDUINO
#endif // STA_CORE_ARDUINO_DELAY_HPP