Move interfaces to subdir

This commit is contained in:
Henrik Stickann 2022-05-02 13:37:03 +02:00
parent f8666b69c8
commit 01312ef97d
11 changed files with 15 additions and 12 deletions

View File

@ -8,7 +8,7 @@
namespace sta namespace sta
{ {
/** /**
* @brief GPIO pin state * @brief GPIO pin state.
*/ */
enum class GpioPinState enum class GpioPinState
{ {

View File

@ -14,11 +14,11 @@ namespace sta
{ {
public: public:
/** /**
* @brief Block until mutex has been acquired * @brief Block until mutex has been acquired.
*/ */
virtual void acquire() = 0; virtual void acquire() = 0;
/** /**
* @brief Release mutex * @brief Release mutex.
*/ */
virtual void release() = 0; virtual void release() = 0;

View File

@ -4,10 +4,10 @@
#ifndef STA_SPI_DEVICE_HPP #ifndef STA_SPI_DEVICE_HPP
#define STA_SPI_DEVICE_HPP #define STA_SPI_DEVICE_HPP
#include <sta/spi_interface.hpp> #include <sta/intf/spi_interface.hpp>
#include <cstdint>
#include <cstddef> #include <cstddef>
#include <cstdint>
namespace sta namespace sta

View File

@ -4,11 +4,11 @@
#ifndef STA_SPI_INTERFACE_HPP #ifndef STA_SPI_INTERFACE_HPP
#define STA_SPI_INTERFACE_HPP #define STA_SPI_INTERFACE_HPP
#include <sta/mutex.hpp> #include <sta/intf/mutex.hpp>
#include <sta/spi_settings.hpp> #include <sta/spi_settings.hpp>
#include <cstdint>
#include <cstddef> #include <cstddef>
#include <cstdint>
namespace sta namespace sta

View File

@ -1,3 +1,6 @@
/**
* @brief Signatures for time related functions.
*/
#ifndef STA_TIME_HPP #ifndef STA_TIME_HPP
#define STA_TIME_HPP #define STA_TIME_HPP

View File

@ -1,4 +1,4 @@
#include <sta/mutex.hpp> #include <sta/intf/mutex.hpp>
namespace sta namespace sta

View File

@ -1,4 +1,4 @@
#include <sta/spi_device.hpp> #include <sta/intf/spi_device.hpp>
#include <sta/assert.hpp> #include <sta/assert.hpp>

View File

@ -1,4 +1,4 @@
#include <sta/spi_interface.hpp> #include <sta/intf/spi_interface.hpp>
namespace sta namespace sta

View File

@ -1,9 +1,9 @@
#include <sta/uart.hpp> #include <sta/intf/uart.hpp>
#include <sta/printf.hpp> #include <sta/printf.hpp>
#include <cstring>
#include <cinttypes> #include <cinttypes>
#include <cstring>