Page 1 of 1

Check data availability at Serial port

Posted: Wed Apr 02, 2014 4:18 pm
by nikhil
Hello,

I am using STM32F4 MCU and Serial driver using ChibiOS. I would like to know if there is any way to check for serial data available at serial port. I am looking for something like Serial.available() feature in arduino.

--
nikhil

Re: Check data availability at Serial port

Posted: Wed Apr 02, 2014 4:30 pm
by Giovanni
Hi,

If you try to read with TIME_IMMEDIATE then you can know that because the call becomes non-blocking.

Giovanni