mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
First sta-Core rework to work for Arduino
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#include <sta/bus/spi/spi.hpp>
|
||||
|
||||
#include <cstdio>
|
||||
#include <sta/config.hpp>
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
# include <stdio.h>
|
||||
#else
|
||||
# include <cstdio>
|
||||
#endif // STA_PLATFORM_ARDUINO
|
||||
|
||||
|
||||
namespace sta
|
||||
{
|
||||
|
@@ -1,10 +1,16 @@
|
||||
#include <sta/debug/printing/printable.hpp>
|
||||
|
||||
#include <cinttypes>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <cstdint>
|
||||
#include <stdarg.h>
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
# include <inttypes.h>
|
||||
# include <string.h>
|
||||
# include <stdio.h>
|
||||
# include <stdarg.h>
|
||||
#else
|
||||
# include <cinttypes>
|
||||
# include <cstring>
|
||||
# include <cstdio>
|
||||
# include <stdarg.h>
|
||||
#endif // STA_PLATFORM_ARDUINO
|
||||
|
||||
#include <sta/debug/assert.hpp>
|
||||
#include <sta/lang.hpp>
|
||||
|
@@ -1,7 +1,12 @@
|
||||
#include <sta/debug/printing/printable_printf.hpp>
|
||||
#include <sta/debug/assert.hpp>
|
||||
|
||||
#include <cstdio>
|
||||
#include <sta/config.hpp>
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
# include <stdio.h>
|
||||
#else
|
||||
# include <cstdio>
|
||||
#endif // STA_PLATFORM_ARDUINO
|
||||
|
||||
namespace sta
|
||||
{
|
||||
|
@@ -3,8 +3,13 @@
|
||||
#include <sta/debug/assert.hpp>
|
||||
#include <sta/printf.hpp>
|
||||
|
||||
#include <cinttypes>
|
||||
#include <cstring>
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
# include <inttypes.h>
|
||||
# include <string.h>
|
||||
#else
|
||||
# include <cinttypes>
|
||||
# include <cstring>
|
||||
#endif // STA_PLATFORM_ARDUINO
|
||||
|
||||
|
||||
namespace sta
|
||||
|
@@ -1,10 +1,11 @@
|
||||
#include <sta/devices/stm32/bus/i2c.hpp>
|
||||
|
||||
#include <sta/debug/assert.hpp>
|
||||
#include <cstring>
|
||||
|
||||
#ifdef STA_STM32_I2C_ENABLED
|
||||
|
||||
#include <cstring>
|
||||
|
||||
namespace sta
|
||||
{
|
||||
STM32I2C::STM32I2C(I2C_HandleTypeDef * handle, Mutex * mutex)
|
||||
|
Reference in New Issue
Block a user