STM32 inbuilt function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-19 3:57 AM - edited ‎2024-01-19 3:58 AM
Hey everyone, just like there is a function named "Serial.available()" in Arduino,is there any such function present in STM32 ?
- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-19 4:14 AM - edited ‎2024-01-19 4: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-19 4: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.
Up vote any posts that you find helpful, it shows what's working..
