mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Refactor the inverter driver
Split INVERTER_PIN_UART<n> into INVERTER_PIN_UART<n>_RX and INVERTER_PIN_UART<n>_TX. This allows us to invert just one line of the port in F4 based controllers, like we can do on F3. Fixes #3466
This commit is contained in:
parent
a8415e89c2
commit
f0539b2b51
8 changed files with 215 additions and 135 deletions
|
@ -48,7 +48,6 @@
|
|||
#include "drivers/dma.h"
|
||||
#include "drivers/exti.h"
|
||||
#include "drivers/flash_m25p16.h"
|
||||
#include "drivers/inverter.h"
|
||||
#include "drivers/io.h"
|
||||
#include "drivers/io_pca9685.h"
|
||||
#include "drivers/light_led.h"
|
||||
|
@ -69,6 +68,7 @@
|
|||
#include "drivers/system.h"
|
||||
#include "drivers/time.h"
|
||||
#include "drivers/timer.h"
|
||||
#include "drivers/uart_inverter.h"
|
||||
#include "drivers/vcd.h"
|
||||
#include "drivers/io.h"
|
||||
#include "drivers/exti.h"
|
||||
|
@ -375,8 +375,8 @@ void init(void)
|
|||
lightsInit();
|
||||
#endif
|
||||
|
||||
#ifdef USE_INVERTER
|
||||
initInverters();
|
||||
#ifdef USE_UART_INVERTER
|
||||
uartInverterInit();
|
||||
#endif
|
||||
|
||||
// Initialize buses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue