2024-01-19 03:57 AM - edited 2024-01-19 03:58 AM
Hey everyone, just like there is a function named "Serial.available()" in Arduino,is there any such function present in STM32 ?
2024-01-19 04:14 AM - edited 2024-01-19 04:18 AM
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
2024-01-19 04:22 AM
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.