Provide weak default implementation for printChar function #565
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#565
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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