52 lines
906 B
C
52 lines
906 B
C
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
/* IO */
|
|
#define PIP_ATT 13
|
|
#define GW_COS 6
|
|
#define COS 7
|
|
#define PTT 8
|
|
#define GWPTT 9
|
|
#define PIP 3
|
|
|
|
uint8_t io[6][2] = {
|
|
{PIP_ATT, OUTPUT},
|
|
{GW_COS, INPUT_PULLUP},
|
|
{COS, INPUT_PULLUP},
|
|
{PTT, OUTPUT},
|
|
{GWPTT, OUTPUT},
|
|
{PIP, OUTPUT}
|
|
};
|
|
|
|
/* CW ID SETTINGS */
|
|
#define ID "GB3DL H"
|
|
#define CW_SPEED 18
|
|
#define CW_PITCH 1200
|
|
|
|
/* PARAMS */
|
|
#define COURTESY CW
|
|
#define CLOSEDOWN 0
|
|
#define GWPIPLEN 150
|
|
#define PIP_LETTER 'E'
|
|
#define PIP_GW_LETTER 'S'
|
|
#define RFPIP CW_PITCH
|
|
#define RFPIPLEN 300
|
|
#define START 0
|
|
#define TAILPIPS true
|
|
#define TAILPIP_PITCH CW_PITCH - 225
|
|
|
|
/* SERIAL */
|
|
#define SERIAL false
|
|
#define SERIAL_SPEED 115200
|
|
|
|
/* TIMERS */
|
|
#define HANGTIME 7000
|
|
#define KEYCHUNK_TIME 3000
|
|
#define TOTIME 300000
|
|
#define IDTIME 500000
|
|
#define LAST_ID_HOLD 60000
|
|
#define PIP_KEYCHUNK 2000
|
|
#define TAIL_PIP_DELAY 1000
|
|
#define TAIL_LEN 70
|
|
|
|
#endif |