1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Fix the VBUS sense pin

This commit is contained in:
James Cotton 2012-08-25 13:46:55 -05:00
parent ce5ef7edf3
commit 2edc976168

View File

@ -364,7 +364,7 @@ static const struct pios_usart_cfg pios_usart_main_cfg = {
}, },
}, },
}; };
#endif /* PIOS_INCLUDE_COM_TELEM */
#ifdef PIOS_INCLUDE_COM_FLEXI #ifdef PIOS_INCLUDE_COM_FLEXI
@ -415,6 +415,8 @@ static const struct pios_usart_cfg pios_usart_flexi_cfg = {
#endif /* PIOS_INCLUDE_COM_FLEXI */ #endif /* PIOS_INCLUDE_COM_FLEXI */
#ifdef PIOS_INCLUDE_DSM
#include "pios_dsm_priv.h" #include "pios_dsm_priv.h"
static const struct pios_usart_cfg pios_usart_dsm_flexi_cfg = { static const struct pios_usart_cfg pios_usart_dsm_flexi_cfg = {
.regs = USART3, .regs = USART3,
@ -1067,9 +1069,9 @@ static const struct pios_usb_cfg pios_usb_main_cfg = {
}, },
}, },
.vsense = { .vsense = {
.gpio = GPIOD, .gpio = GPIOB,
.init = { .init = {
.GPIO_Pin = GPIO_Pin_11, .GPIO_Pin = GPIO_Pin_13,
.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,