mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Added PIOS_COM_AUX_BAUDRATE to pios_board.h & '#if defined' to pios_board.c for easier baudrate setting.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1645 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
73c8194acc
commit
d2bc126e68
@ -133,6 +133,7 @@ TIM8 | | | |
|
|||||||
//-------------------------
|
//-------------------------
|
||||||
#define PIOS_USART_RX_BUFFER_SIZE 256
|
#define PIOS_USART_RX_BUFFER_SIZE 256
|
||||||
#define PIOS_USART_TX_BUFFER_SIZE 256
|
#define PIOS_USART_TX_BUFFER_SIZE 256
|
||||||
|
#define PIOS_COM_AUX_BAUDRATE 115200
|
||||||
#define PIOS_COM_AUX 0
|
#define PIOS_COM_AUX 0
|
||||||
#define PIOS_COM_DEBUG PIOS_COM_AUX
|
#define PIOS_COM_DEBUG PIOS_COM_AUX
|
||||||
|
|
||||||
|
@ -157,7 +157,11 @@ void USART3_IRQHandler() __attribute__ ((alias ("PIOS_USART_aux_irq_handler")));
|
|||||||
const struct pios_usart_cfg pios_usart_aux_cfg = {
|
const struct pios_usart_cfg pios_usart_aux_cfg = {
|
||||||
.regs = USART3,
|
.regs = USART3,
|
||||||
.init = {
|
.init = {
|
||||||
|
#if defined(PIOS_COM_AUX_BAUDRATE)
|
||||||
|
.USART_BaudRate = PIOS_COM_AUX_BAUDRATE
|
||||||
|
#else
|
||||||
.USART_BaudRate = 115200,
|
.USART_BaudRate = 115200,
|
||||||
|
#endif
|
||||||
.USART_WordLength = USART_WordLength_8b,
|
.USART_WordLength = USART_WordLength_8b,
|
||||||
.USART_Parity = USART_Parity_No,
|
.USART_Parity = USART_Parity_No,
|
||||||
.USART_StopBits = USART_StopBits_1,
|
.USART_StopBits = USART_StopBits_1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user