semihosting: implement a semihosting console

This provides two functions for handling console output that handle
the common backend behaviour for semihosting.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
Alex Bennée 2019-05-13 21:49:43 +01:00
parent 16932bb761
commit a331c6d774
3 changed files with 116 additions and 0 deletions

View file

@ -1 +1,2 @@
obj-$(CONFIG_SEMIHOSTING) += config.o
obj-$(CONFIG_SEMIHOSTING) += console.o