mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
RM2 Temporary patch: Swap the GPIO pins and the VSense pins. This needs to be based on the hardware revision later.
This commit is contained in:
parent
333a96516c
commit
93c44f2a4e
@ -402,7 +402,7 @@ struct pios_rfm22b_cfg pios_rfm22b_cfg = {
|
|||||||
.maxRFBandwidth = 128000,
|
.maxRFBandwidth = 128000,
|
||||||
.maxTxPower = RFM22_tx_pwr_txpow_7, // +20dBm .. 100mW
|
.maxTxPower = RFM22_tx_pwr_txpow_7, // +20dBm .. 100mW
|
||||||
.slave_num = 0,
|
.slave_num = 0,
|
||||||
.gpio_direction = GPIO0_RX_GPIO1_TX,
|
.gpio_direction = GPIO0_TX_GPIO1_RX,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* PIOS_INCLUDE_RFM22B */
|
#endif /* PIOS_INCLUDE_RFM22B */
|
||||||
@ -1283,9 +1283,9 @@ static const struct pios_usb_cfg pios_usb_main_cfg = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
.vsense = {
|
.vsense = {
|
||||||
.gpio = GPIOB,
|
.gpio = GPIOC,
|
||||||
.init = {
|
.init = {
|
||||||
.GPIO_Pin = GPIO_Pin_13,
|
.GPIO_Pin = GPIO_Pin_5,
|
||||||
.GPIO_Speed = GPIO_Speed_25MHz,
|
.GPIO_Speed = GPIO_Speed_25MHz,
|
||||||
.GPIO_Mode = GPIO_Mode_IN,
|
.GPIO_Mode = GPIO_Mode_IN,
|
||||||
.GPIO_OType = GPIO_OType_OD,
|
.GPIO_OType = GPIO_OType_OD,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user