1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +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:
pip 2010-09-15 17:33:00 +00:00 committed by pip
parent 73c8194acc
commit d2bc126e68
2 changed files with 8 additions and 3 deletions

View File

@ -133,8 +133,9 @@ TIM8 | | | |
//-------------------------
#define PIOS_USART_RX_BUFFER_SIZE 256
#define PIOS_USART_TX_BUFFER_SIZE 256
#define PIOS_COM_AUX 0
#define PIOS_COM_DEBUG PIOS_COM_AUX
#define PIOS_COM_AUX_BAUDRATE 115200
#define PIOS_COM_AUX 0
#define PIOS_COM_DEBUG PIOS_COM_AUX
//-------------------------
// ADC

View File

@ -157,7 +157,11 @@ void USART3_IRQHandler() __attribute__ ((alias ("PIOS_USART_aux_irq_handler")));
const struct pios_usart_cfg pios_usart_aux_cfg = {
.regs = USART3,
.init = {
.USART_BaudRate = 115200,
#if defined(PIOS_COM_AUX_BAUDRATE)
.USART_BaudRate = PIOS_COM_AUX_BAUDRATE
#else
.USART_BaudRate = 115200,
#endif
.USART_WordLength = USART_WordLength_8b,
.USART_Parity = USART_Parity_No,
.USART_StopBits = USART_StopBits_1,