Fixed drv_serial inline function declarations

Fixed drv_serial inline function declarations (fail at least with crossworks compiler)