2014-04-03 14:21:37 -06:00
|
|
|
|
2014-04-03 14:41:49 -06:00
|
|
|
#ifndef FSK_CFG
|
|
|
|
#define FSK_CFG
|
2014-04-03 14:21:37 -06:00
|
|
|
|
2014-11-09 16:02:19 -07:00
|
|
|
// Serial options
|
|
|
|
#define PROTOCOL_SIMPLE_SERIAL 0x01
|
|
|
|
#define PROTOCOL_KISS 0x02
|
|
|
|
|
|
|
|
#define SERIAL_PROTOCOL PROTOCOL_SIMPLE_SERIAL
|
|
|
|
//#define SERIAL_PROTOCOL PROTOCOL_KISS
|
|
|
|
|
2014-04-16 06:06:03 -06:00
|
|
|
// Debug & test options
|
2014-04-27 10:54:01 -06:00
|
|
|
#define SERIAL_DEBUG false
|
2014-11-09 16:02:19 -07:00
|
|
|
#define PASSALL true
|
2014-04-16 06:06:03 -06:00
|
|
|
#define AUTOREPLY false
|
|
|
|
|
|
|
|
// Modem options
|
2014-05-20 00:52:10 -06:00
|
|
|
#define TX_MAXWAIT 2UL // How many milliseconds should pass with no
|
|
|
|
// no incoming data before it is transmitted
|
|
|
|
#define CONFIG_AFSK_RX_BUFLEN 64 // The size of the modems receive buffer
|
|
|
|
#define CONFIG_AFSK_TX_BUFLEN 64 // The size of the modems transmit buffer
|
|
|
|
#define CONFIG_AFSK_DAC_SAMPLERATE 9600 // The samplerate of the DAC. Note that
|
|
|
|
// changing it here will not change the
|
|
|
|
// actual sample rate. It is defined here
|
|
|
|
// so various functions can use it.
|
|
|
|
#define CONFIG_AFSK_RXTIMEOUT 0 // How long a read operation from the modem
|
|
|
|
// will wait for data before timing out.
|
2014-04-03 14:21:37 -06:00
|
|
|
|
2014-05-20 00:52:10 -06:00
|
|
|
#define CONFIG_AFSK_PREAMBLE_LEN 350UL // The length of the packet preamble in milliseconds
|
|
|
|
#define CONFIG_AFSK_TRAILER_LEN 50UL // The length of the packet tail in milliseconds
|
2014-04-03 14:21:37 -06:00
|
|
|
|
2014-05-20 00:52:10 -06:00
|
|
|
#endif
|