mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 18:07:25 +08:00
[boards] naze32: spektrum input
On flip32 the separate spektrum connector is connected to UART1 (per default for telemetry)...
This commit is contained in:
@@ -41,7 +41,6 @@ SYS_TIME_LED ?= 1
|
||||
# default uart configuration
|
||||
#
|
||||
RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT ?= UART2
|
||||
RADIO_CONTROL_SPEKTRUM_SECONDARY_PORT ?= UART1
|
||||
|
||||
MODEM_PORT ?= UART1
|
||||
MODEM_BAUD ?= B57600
|
||||
|
||||
@@ -41,7 +41,6 @@ SYS_TIME_LED ?= 1
|
||||
# default uart configuration
|
||||
#
|
||||
RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT ?= UART2
|
||||
RADIO_CONTROL_SPEKTRUM_SECONDARY_PORT ?= UART1
|
||||
|
||||
MODEM_PORT ?= UART1
|
||||
MODEM_BAUD ?= B57600
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
#define UART2_GPIO_PORT_TX GPIO_BANK_USART2_TX
|
||||
#define UART2_GPIO_TX GPIO_USART2_TX
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* Spektrum
|
||||
*/
|
||||
@@ -66,17 +65,15 @@
|
||||
#define SPEKTRUM_UART1_IRQ NVIC_USART1_IRQ
|
||||
#define SPEKTRUM_UART1_ISR usart1_isr
|
||||
#define SPEKTRUM_UART1_DEV USART1
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#define SPEKTRUM_UART3_RCC RCC_USART3
|
||||
#define SPEKTRUM_UART3_BANK GPIO_BANK_USART3_PR_RX
|
||||
#define SPEKTRUM_UART3_PIN GPIO_USART3_PR_RX
|
||||
#define SPEKTRUM_UART3_AF AFIO_MAPR_USART3_REMAP_PARTIAL_REMAP
|
||||
#define SPEKTRUM_UART3_IRQ NVIC_USART3_IRQ
|
||||
#define SPEKTRUM_UART3_ISR usart3_isr
|
||||
#define SPEKTRUM_UART3_DEV USART3
|
||||
#endif
|
||||
#define SPEKTRUM_UART2_RCC RCC_USART2
|
||||
#define SPEKTRUM_UART2_BANK GPIO_BANK_USART2_RX
|
||||
#define SPEKTRUM_UART2_PIN GPIO_USART2_RX
|
||||
#define SPEKTRUM_UART2_AF 0
|
||||
#define SPEKTRUM_UART2_IRQ NVIC_USART2_IRQ
|
||||
#define SPEKTRUM_UART2_ISR usart2_isr
|
||||
#define SPEKTRUM_UART2_DEV USART2
|
||||
|
||||
|
||||
|
||||
/* PPM
|
||||
|
||||
Reference in New Issue
Block a user