AnsweredAssumed Answered

Non blocking UART

Question asked by Ole Asbjorn Fadum on Dec 5, 2014
Latest reply on Jan 16, 2015 by Ole Asbjorn Fadum



In the raw MQX examples there is example of non blocking uart input:


uint32_t ser_opts = IO_SERIAL_NON_BLOCKING;


retval = ioctl(ser_device, IO_IOCTL_SERIAL_SET_FLAGS, &ser_opts);
if (retval != MQX_OK)
      fputs("TXtask Fatal Error: Unable to setup non-blocking mode.", stderr);

Unfortunately I could not find the IO_SERIAL_NON_BLOCKING defined inside my project or the KSDK,

is the non-blockin mode removed, or is the interface just changed?


(I just want to check if a char is available from the UART, and if not just keep on with what I was doing....)