BrushlessPower / SBUS2-Telemetry

Arduino Library for SBUS and SBUS2 with Futaba Telemetry
GNU General Public License v3.0
86 stars 24 forks source link

[Feature Request] STM32 Support #32

Open MelangeF3A opened 3 years ago

MelangeF3A commented 3 years ago

Hello, great work..

I have it running on the ESP32. Do you have idea on how to make it work on the SMT32F103 / F405 etc.

They do support RTOS :-)

Many Thanks

Richard

BrushlessPower commented 3 years ago

Hello @MelangeF3A ,

it should be no Problem to make the code running on F103 and all the other types.

RTOS should not be used! It will cause to much delay. I had the same problems with the first code on ESP32.

  1. You have to make a USART RX Interrupt to receive the SBUS(2) Frame -> Serial.available() in loop will not work!
  2. You need a timer interrupt which transmit the SBUS2 Telemetry data with USART TX

The Problem is, i have no time to write code for STM32. See the Issues....i even have no time to fix them.

If you could write some Code i can test it and make changes. I have some STM32 Dev Boards here. It would be great, when the code could be compatible to STM32 Arduino and all STM32 Chips....but maybe this is to much.