E407: move the serial console from demo.c and newlib.c to console.c