TI CC2530 official example code, modified to support UART