mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Fixed printable uart and removed obsolete printf file
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user