mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-13 01:55:59 +00:00
Fixed printable uart and removed obsolete printf file
This commit is contained in:
parent
3be8893849
commit
713e7b0da9
@ -1,31 +0,0 @@
|
|||||||
/**
|
|
||||||
* @file
|
|
||||||
* @brief Compatibility layer for different printf implementations.
|
|
||||||
*
|
|
||||||
* Configuration:
|
|
||||||
* * STA_PRINTF_USE_STDLIB: Use printf implementation from standard library
|
|
||||||
* * STA_PRINTF_USE_MPALAND: Use printf implementation from Marco Paland
|
|
||||||
*/
|
|
||||||
#ifndef STA_CORE_PRINTF_HPP
|
|
||||||
#define STA_CORE_PRINTF_HPP
|
|
||||||
|
|
||||||
#include <sta/config.hpp>
|
|
||||||
|
|
||||||
#if !defined(STA_PRINTF_USE_STDLIB) && !defined(STA_PRINTF_USE_MPALAND)
|
|
||||||
# error "No printf implementation chosen!"
|
|
||||||
#endif // !STA_PRINTF_USE_STDLIB && !STA_PRINTF_USE_MPALAND
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_PRINTF_USE_STDLIB
|
|
||||||
# ifdef STA_PLATFORM_ARDUINO
|
|
||||||
# include <stdio.h>
|
|
||||||
# else
|
|
||||||
# include <cstdio>
|
|
||||||
# endif // STA_PLATFORM_ARDUINO
|
|
||||||
#endif // STA_PRINTF_USE_STDLIB
|
|
||||||
#ifdef STA_PRINTF_USE_MPALAND
|
|
||||||
# include <printf.h>
|
|
||||||
#endif // STA_PRINTF_USE_MPALAND
|
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_CORE_PRINTF_HPP
|
|
@ -1,7 +1,6 @@
|
|||||||
#include <sta/debug/printing/printable_uart.hpp>
|
#include <sta/debug/printing/printable_uart.hpp>
|
||||||
|
|
||||||
#include <sta/debug/assert.hpp>
|
#include <sta/debug/assert.hpp>
|
||||||
#include <sta/printf.hpp>
|
|
||||||
|
|
||||||
#ifdef STA_PLATFORM_ARDUINO
|
#ifdef STA_PLATFORM_ARDUINO
|
||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <sta/debug/printing/printable_serial.hpp>
|
#include <sta/devices/arduino/printable_serial.hpp>
|
||||||
|
|
||||||
#ifdef STA_PLATFORM_ARDUINO
|
#ifdef STA_PLATFORM_ARDUINO
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user