mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 02:27:33 +00:00
Renamed some variables because Arduino.h is terrible as always
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <sta/devices/arduino/mcu/common.hpp>
|
||||
|
||||
#define STA_PRINTF_USE_STDLIB
|
||||
#define STA_STDLIB_DISABLE
|
||||
#define STA_STDLIB_DISABLE
|
||||
#define STA_DEBUGGING_ENABLED
|
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
extern Printable * Debug;
|
||||
extern BasePrintable * Debug;
|
||||
} // namespace sta
|
||||
|
||||
|
||||
|
@@ -23,12 +23,16 @@ namespace sta
|
||||
*/
|
||||
enum class IntegerBase
|
||||
{
|
||||
DEC, /**< Decimal */
|
||||
BIN, /**< Binary */
|
||||
HEX /**< Hexadecimal */
|
||||
BASE_DEC, /**< Decimal */
|
||||
BASE_BIN, /**< Binary */
|
||||
BASE_HEX /**< Hexadecimal */
|
||||
};
|
||||
|
||||
class Printable
|
||||
/**
|
||||
* @brief Base class for printable. Renamed to "BasePrintable" from "Printable" because the Arduino dev are dickheads.
|
||||
*
|
||||
*/
|
||||
class BasePrintable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
@@ -64,7 +68,7 @@ namespace sta
|
||||
* @param num 8-bit unsigned integer
|
||||
* @param base Integer base
|
||||
*/
|
||||
void print(uint8_t num, IntegerBase base = IntegerBase::DEC);
|
||||
void print(uint8_t num, IntegerBase base = IntegerBase::BASE_DEC);
|
||||
|
||||
/**
|
||||
* @brief Print integer in selected base.
|
||||
@@ -72,7 +76,7 @@ namespace sta
|
||||
* @param num 16-bit unsigned integer
|
||||
* @param base Integer base
|
||||
*/
|
||||
void print(uint16_t num, IntegerBase base = IntegerBase::DEC);
|
||||
void print(uint16_t num, IntegerBase base = IntegerBase::BASE_DEC);
|
||||
|
||||
/**
|
||||
* @brief Print integer in selected base.
|
||||
@@ -80,7 +84,7 @@ namespace sta
|
||||
* @param num 32-bit unsigned integer
|
||||
* @param base Integer base
|
||||
*/
|
||||
void print(uint32_t num, IntegerBase base = IntegerBase::DEC);
|
||||
void print(uint32_t num, IntegerBase base = IntegerBase::BASE_DEC);
|
||||
|
||||
/**
|
||||
* @brief Print c-string.
|
||||
@@ -129,7 +133,7 @@ namespace sta
|
||||
* @param num 8-bit unsigned integer
|
||||
* @param base Integer base
|
||||
*/
|
||||
void println(uint8_t num, IntegerBase base = IntegerBase::DEC);
|
||||
void println(uint8_t num, IntegerBase base = IntegerBase::BASE_DEC);
|
||||
|
||||
/**
|
||||
* @brief Print integer in selected base followed by a new-line.
|
||||
@@ -137,7 +141,7 @@ namespace sta
|
||||
* @param num 16-bit unsigned integer
|
||||
* @param base Integer base
|
||||
*/
|
||||
void println(uint16_t num, IntegerBase base = IntegerBase::DEC);
|
||||
void println(uint16_t num, IntegerBase base = IntegerBase::BASE_DEC);
|
||||
|
||||
/**
|
||||
* @brief Print integer in selected base followed by a new-line.
|
||||
@@ -145,7 +149,7 @@ namespace sta
|
||||
* @param num 32-bit unsigned integer
|
||||
* @param base Integer base
|
||||
*/
|
||||
void println(uint32_t num, IntegerBase base = IntegerBase::DEC);
|
||||
void println(uint32_t num, IntegerBase base = IntegerBase::BASE_DEC);
|
||||
|
||||
/**
|
||||
* @brief Print c-string followed by a new-line.
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
class PrintablePrintf : public Printable
|
||||
class PrintablePrintf : public BasePrintable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
@@ -25,7 +25,7 @@ namespace sta
|
||||
*
|
||||
* @ingroup sta_core
|
||||
*/
|
||||
class PrintableUART : public Printable
|
||||
class PrintableUART : public BasePrintable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
Reference in New Issue
Block a user