Added I2C support for raspi & first rework of debugging

This commit is contained in:
Dario
2023-06-23 15:50:54 +01:00
parent 3cf2173433
commit 6b4acfd27b
70 changed files with 985 additions and 772 deletions

View File

@@ -0,0 +1,43 @@
/**
* @file delay.hpp
* @author <your name> (<you>@<your_domain>.com)
* @brief
* @version 0.1
* @date 2023-06-13
*
* @copyright Copyright (c) 2023
*
* How to modify this file:
* - Ctrl + F and replace "YOUR_DEVICE" with the appropriate name.
*/
#ifndef STA_CORE_YOUR_DEVICE_DELAY_HPP
#define STA_CORE_YOUR_DEVICE_DELAY_HPP
// Only enable module on YOUR_DEVICE platform
#include <sta/config.hpp>
#if defined(STA_PLATFORM_YOUR_DEVICE) || defined(DOXYGEN)
#include <cstdint>
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_YOUR_DEVICE
#endif // STA_CORE_YOUR_DEVICE_DELAY_HPP