consolidation of UART API
use of FreeRTOS defined types