Make serial speed a compile option

This commit is contained in:
Geoffrey Merck 2020-05-23 08:57:30 +02:00
parent 04d0b15545
commit 31f0e24588
3 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,9 @@
// For 19.2 MHz
// #define EXTERNAL_OSC 19200000
// Use a higher baudrate for host communication. Required for FM network !
// #define SERIAL_SPEED 230400
// Allow the use of the COS line to lockout the modem
// #define USE_COS_AS_LOCKOUT

View File

@ -602,7 +602,7 @@ void CSerialPort::setMode(MMDVM_STATE modemState)
void CSerialPort::start()
{
beginInt(1U, 115200);
beginInt(1U, SERIAL_SPEED);
#if defined(SERIAL_REPEATER)
beginInt(3U, 9600);

View File

@ -23,6 +23,10 @@
#include "Globals.h"
#include "RingBuffer.h"
#if !defined(SERIAL_SPEED)
#define SERIAL_SPEED 115200
#endif
class CSerialPort {
public: