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:
parent
c243e83de2
commit
3f80b0c8bf
15 changed files with 1148 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue