added more files from main repo
This commit is contained in:
7
bsp_hosted/utility/CMakeLists.txt
Normal file
7
bsp_hosted/utility/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
target_sources(${TARGET_NAME}
|
||||
PUBLIC
|
||||
printChar.c
|
||||
)
|
||||
|
||||
|
||||
|
13
bsp_hosted/utility/printChar.c
Normal file
13
bsp_hosted/utility/printChar.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
void printChar(const char* character, bool errStream) {
|
||||
if(errStream) {
|
||||
fprintf(stderr, "%c", *character);
|
||||
}
|
||||
else {
|
||||
printf("%c", *character);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user