1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Implement DShot bit bang for AT32 (#12577)

* implement dshot bitbang for AT32

* fix dshot bitbang bidirectional for AT32

* AT32 target features

* implement latest improvements from steve to at32

* generalize AT32 target.h

* Tri-state USART TX output if load due to powered down peripheral is detected

* enable LED STRIP for AT32

* at bitbang timer adjustments

* revert makefile changes

* revert target generalization

* Update src/main/drivers/at32/platform_mcu.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

---------

Co-authored-by: Steve Evans <Steve@SCEvans.com>
Co-authored-by: J Blackman <blckmn@users.noreply.github.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
This commit is contained in:
Eike Ahmels 2023-06-21 23:31:16 +02:00 committed by GitHub
parent c243e83de2
commit 3f80b0c8bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1148 additions and 25 deletions

View file

@ -30,6 +30,8 @@
#ifdef USE_UART
#include "build/debug.h"
#include "drivers/system.h"
#include "drivers/io.h"
#include "drivers/dma.h"
@ -387,6 +389,9 @@ void uartIrqHandler(uartPort_t *s)
s->port.txBufferTail = (s->port.txBufferTail + 1) % s->port.txBufferSize;
} else {
USART_ITConfig(s->USARTx, USART_IT_TXE, DISABLE);
// Switch TX to an input with pullup so it's state can be monitored
uartTxMonitor(s);
}
}