new implementation of UART functions, respecting RIOT more now