new raw port functions based on code from
https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/fms/fms_serial_port.c