util.c, uart.c: broader MCU support