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
Check data availability at Serial port
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Check data availability at Serial port
Hi,
If you try to read with TIME_IMMEDIATE then you can know that because the call becomes non-blocking.
Giovanni
If you try to read with TIME_IMMEDIATE then you can know that because the call becomes non-blocking.
Giovanni