mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Added first implementations for Arduino
This commit is contained in:
28
include/sta/devices/arduino/delay.hpp
Normal file
28
include/sta/devices/arduino/delay.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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)
|
||||
|
||||
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
|
Reference in New Issue
Block a user