Check data availability at Serial port

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
nikhil
Posts: 40
Joined: Thu Jan 03, 2013 8:46 pm

Check data availability at Serial port

Post 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
User avatar
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

Post by Giovanni »

Hi,

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

Giovanni
Post Reply