Provide weak default implementation for printChar function #565
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think it might be a good idea to provide a weak default implementation for the printChar function. Most of the time, compiler specific extensions are necessary to do this, but all compilers I saw provide this feature and in practice, the FSFW is mostly compiled with GCC anyway. In most cases, a default implementation using
putc
is okay. Even on bare metal systems, syscall overrides make sure that standard IO function are rerouted through an interface like UART.This would make it easier to simply use
fsfw
as a utility library (I'm looking at arrayprinter, DleEncoder etc. and all code sections which are usually just copy and pasted)One possible default implementation:
Fixed by #674