Implemented SPI for Arduino and a few fixes

This commit is contained in:
dario
2024-02-09 16:11:48 +01:00
parent 53335281d7
commit ec83b7026e
10 changed files with 80 additions and 23 deletions

View File

@@ -31,8 +31,8 @@ namespace sta
*/
enum class SPIClkPolarity
{
LOW, /**< Low idle clock */
HIGH /**< High idle clock */
SPI_LOW, /**< Low idle clock */
SPI_HIGH /**< High idle clock */
};
/**

View File

@@ -8,7 +8,7 @@
namespace sta
{
extern BasePrintable * Debug;
extern Printable * Debug;
} // namespace sta

View File

@@ -6,7 +6,7 @@
namespace sta
{
class PrintableSerial: public sta::BasePrintable
class PrintableSerial: public Printable
{
public:
/**

View File

@@ -25,7 +25,7 @@ namespace sta
*
* @ingroup sta_core
*/
class PrintableUART : public BasePrintable
class PrintableUART : public Printable
{
public:
/**

View File

@@ -1,9 +1,9 @@
#ifndef STA_CORE_ARDUINO_HAL_HPP
#define STA_CORE_ARDUINO_HAL_HPP
#include<Arduino.h>
#include<Wire.h>
#include<SPI.h>
#include <Arduino.h>
#include <Wire.h>
#include <SPI.h>
/**
* @defgroup sta_core_arduino Arduino
@@ -11,4 +11,10 @@
* @brief Modules implemented for the Arduino platform.
*/
namespace hal
{
using SPISettings = SPISettings;
} // namespace hal
#endif // STA_CORE_ARDUINO_HAL_HPP