mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-15 16:24:11 +02:00
Make serial speed a compile option
This commit is contained in:
@@ -35,6 +35,9 @@
|
|||||||
// For 19.2 MHz
|
// For 19.2 MHz
|
||||||
// #define EXTERNAL_OSC 19200000
|
// #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
|
// Allow the use of the COS line to lockout the modem
|
||||||
// #define USE_COS_AS_LOCKOUT
|
// #define USE_COS_AS_LOCKOUT
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -602,7 +602,7 @@ void CSerialPort::setMode(MMDVM_STATE modemState)
|
|||||||
|
|
||||||
void CSerialPort::start()
|
void CSerialPort::start()
|
||||||
{
|
{
|
||||||
beginInt(1U, 115200);
|
beginInt(1U, SERIAL_SPEED);
|
||||||
|
|
||||||
#if defined(SERIAL_REPEATER)
|
#if defined(SERIAL_REPEATER)
|
||||||
beginInt(3U, 9600);
|
beginInt(3U, 9600);
|
||||||
|
|||||||
@@ -23,6 +23,10 @@
|
|||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "RingBuffer.h"
|
#include "RingBuffer.h"
|
||||||
|
|
||||||
|
#if !defined(SERIAL_SPEED)
|
||||||
|
#define SERIAL_SPEED 115200
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
class CSerialPort {
|
class CSerialPort {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user