|
|
|
|
@ -117,6 +117,8 @@ int main(int argc, char * argv[]) {
|
|
|
|
|
|
|
|
|
|
wiringPiSetup();
|
|
|
|
|
|
|
|
|
|
if (mode == AFSK)
|
|
|
|
|
{
|
|
|
|
|
// Check for SPI and AX-5043 Digital Transceiver Board
|
|
|
|
|
FILE * file = popen("sudo raspi-config nonint get_spi", "r");
|
|
|
|
|
// printf("getc: %c \n", fgetc(file));
|
|
|
|
|
@ -138,7 +140,7 @@ int main(int argc, char * argv[]) {
|
|
|
|
|
printf("AX5043 successfully initialized!\n");
|
|
|
|
|
ax5043 = TRUE;
|
|
|
|
|
cw_id = OFF;
|
|
|
|
|
mode = AFSK;
|
|
|
|
|
// mode = AFSK;
|
|
|
|
|
// cycle = OFF;
|
|
|
|
|
printf("Mode AFSK with AX5043\n");
|
|
|
|
|
transmit = TRUE;
|
|
|
|
|
@ -148,8 +150,9 @@ int main(int argc, char * argv[]) {
|
|
|
|
|
pclose(file2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pclose(file);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
txLed = 0; // defaults for vB3 board without TFB
|
|
|
|
|
txLedOn = LOW;
|
|
|
|
|
txLedOff = HIGH;
|
|
|
|
|
|