Fixed printable uart and removed obsolete printf file

This commit is contained in:
dario
2024-02-12 13:41:49 +01:00
parent 3be8893849
commit 713e7b0da9
3 changed files with 1 additions and 33 deletions

View File

@@ -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