provide a weak print char impl

This commit is contained in:
muellerr committed 2022-09-02 08:50:39 +02:00
1 parent eb8e236cd4
commit ebc02673dd
2 files changed
+12

No files matched your search

+2
View File
@@ -1 +1,3 @@
add_subdirectory(gpio)
target_sources(${LIB_FSFW_NAME} PRIVATE printChar.c)
+10
View File
@@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdbool.h>
void __attribute__((weak)) printChar(const char* character, bool errStream) {
if (errStream) {
fprintf(stderr, "%c", *character);
} else {
printf("%c", *character);
}
}