mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Solved bad USART port init
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@383 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
d3b34cf1cb
commit
37a0ce845c
@ -121,6 +121,7 @@ void PIOS_USART_Init(void)
|
||||
|
||||
/* Configure and Init USART Tx as alternate function open-drain */
|
||||
GPIO_InitStructure.GPIO_Pin = PIOS_USART2_TX_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD;
|
||||
GPIO_Init(PIOS_USART2_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/* Configure and Init USART Rx input with internal pull-ups */
|
||||
@ -153,6 +154,7 @@ void PIOS_USART_Init(void)
|
||||
|
||||
/* Configure and Init USART Tx as alternate function open-drain */
|
||||
GPIO_InitStructure.GPIO_Pin = PIOS_USART3_TX_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD;
|
||||
GPIO_Init(PIOS_USART3_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/* Configure and Init USART Rx input with internal pull-ups */
|
||||
|
Loading…
x
Reference in New Issue
Block a user