kopia lustrzana https://github.com/SP8EBC/ParaTNC
version 1.0.1 Serial baudrate config moved to station_config.h
rodzic
18c7d7394c
commit
4ca61f9e9d
|
@ -24,9 +24,9 @@
|
|||
#define _SSID 12
|
||||
#define _LAT 5000.00
|
||||
#define _LATNS 'N'
|
||||
#define _LON 02200.00
|
||||
#define _LON 02000.00
|
||||
#define _LONWE 'E'
|
||||
#define _COMMENT "ParaTNC v1.0-19082017 by Mateusz SP8EBC"
|
||||
#define _COMMENT "ParaTNC v1.0.1-05092017 by Mateusz SP8EBC"
|
||||
|
||||
// You can use only one of these below defines to choose symbol. Meteo data are are always transmitted with blue WX symbol
|
||||
//#define _SYMBOL_DIGI // uncomment if you want digi symbol(green star with D inside)
|
||||
|
@ -51,6 +51,7 @@
|
|||
#define _BCN_INTERVAL 10 // Own beacon interval in minutes
|
||||
|
||||
//#define _PTT_PUSHPULL // Uncomment this if you want PTT line to work as Push-pull instead of Open Drain
|
||||
#define _SERIAL_BAUDRATE 9600
|
||||
|
||||
// Transmitting delay
|
||||
#define _DELAY_BASE 12 // * 50ms. For example setting 10 gives 500msec delay. Maximum value is 16
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <stm32f10x.h>
|
||||
#include <stm32f10x_usart.h>
|
||||
|
||||
#include "station_config.h"
|
||||
#include "diag/Trace.h"
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ void SrlConfig(void) {
|
|||
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
|
||||
USART_InitStructure.USART_BaudRate = 2400;
|
||||
USART_InitStructure.USART_BaudRate = _SERIAL_BAUDRATE;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
|
|
Ładowanie…
Reference in New Issue