cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 inbuilt function

Swastik_Dey
Associate II

Hey everyone, just like there is a function named "Serial.available()" in Arduino,is there any such function present in STM32 ?

2 REPLIES 2
AScha.3
Chief II

Hi,

No.

btw   " in STM32" -> this is cpu series , so library functions cannot be there.

If you want the Arduino environment with STM32 cpu , you could use Arduino_Core_STM32 boards lib.

->

https://github.com/stm32duino/Arduino_Core_STM32

If you feel a post has answered your question, please click "Accept as Solution".

Most STM32 have a single byte depth buffer in the UARTs. To read that check the RXNE bit.

To make larger buffers you can query you should make a fifo/ring buffer you fill via interrupts.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..