betaflight / betaflight

Open Source Flight Controller Firmware
GNU General Public License v3.0
8k stars 2.86k forks source link

Refactor uart #13585

Open ledvinap opened 3 weeks ago

ledvinap commented 3 weeks ago
github-actions[bot] commented 3 weeks ago

Do you want to test this code? You can flash it directly from Betaflight Configurator:

WARNING: It may be unstable. Use only for testing!

ledvinap commented 3 weeks ago

A bit bigger PR .. but it removes ~930 lines of code (generated serial_post.h is 530 lines)

I can cleanup it a bit or remove more controversial parts.

SteveCEvans commented 3 weeks ago

Impressive amount of work. Have you tested DMA operation? This is code we don’t use and so isn’t tested at the moment, but in future and with more DMA channels this may be resurrected.

ledvinap commented 3 weeks ago

@SteveCEvans : DMA should be unchanged (same enums, with possibly different values). I'll double-check it.