mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-1849 DTR on FlexIO pin 3
Conflicts: flight/targets/boards/revonano/board_hw_defs.c
This commit is contained in:
parent
399bf0470a
commit
c3a55d671f
@ -61,6 +61,9 @@
|
||||
#define FLEXI_USART_RX_PIN GPIO_Pin_7
|
||||
#define FLEXI_USART_TX_GPIO GPIOB
|
||||
#define FLEXI_USART_TX_PIN GPIO_Pin_6
|
||||
// ReceiverPort pin 3
|
||||
#define FLEXI_USART_DTR_GPIO GPIOB
|
||||
#define FLEXI_USART_DTR_PIN GPIO_Pin_10
|
||||
|
||||
|
||||
#if defined(PIOS_INCLUDE_LED)
|
||||
@ -459,6 +462,15 @@ static const struct pios_usart_cfg pios_usart_flexi_cfg = {
|
||||
.GPIO_PuPd = GPIO_PuPd_UP
|
||||
},
|
||||
},
|
||||
.dtr = {
|
||||
.gpio = FLEXI_USART_DTR_GPIO,
|
||||
.init = {
|
||||
.GPIO_Pin = FLEXI_USART_DTR_PIN,
|
||||
.GPIO_Speed = GPIO_Speed_25MHz,
|
||||
.GPIO_Mode = GPIO_Mode_OUT,
|
||||
.GPIO_OType = GPIO_OType_PP,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
#endif /* PIOS_INCLUDE_COM_FLEXI */
|
||||
|
Loading…
Reference in New Issue
Block a user