Serial stuff
This commit is contained in:
parent
35c504703c
commit
ef36e43e96
10
main.c
10
main.c
|
@ -39,14 +39,14 @@ AX25Ctx AX25;
|
||||||
|
|
||||||
void init(void) {
|
void init(void) {
|
||||||
sei();
|
sei();
|
||||||
serial_init(&serial);
|
|
||||||
stdout = &serial.uart0;
|
|
||||||
stdin = &serial.uart0;
|
|
||||||
|
|
||||||
|
|
||||||
AFSK_init(&modem);
|
AFSK_init(&modem);
|
||||||
ax25_init(&AX25, &modem.fd, ax25_callback);
|
ax25_init(&AX25, &modem.fd, ax25_callback);
|
||||||
|
|
||||||
|
serial_init(&serial);
|
||||||
|
stdout = &serial.uart0;
|
||||||
|
stdin = &serial.uart0;
|
||||||
|
|
||||||
#if SERIAL_PROTOCOL == PROTOCOL_KISS
|
#if SERIAL_PROTOCOL == PROTOCOL_KISS
|
||||||
kiss_init(&AX25, &modem, &serial);
|
kiss_init(&AX25, &modem, &serial);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -98,7 +98,6 @@ void ss_init(AX25Ctx *ax25) {
|
||||||
ss_loadSettings();
|
ss_loadSettings();
|
||||||
SS_INIT = true;
|
SS_INIT = true;
|
||||||
if (VERBOSE) {
|
if (VERBOSE) {
|
||||||
delay_ms(300);
|
|
||||||
printf_P(PSTR("---------------\n"));
|
printf_P(PSTR("---------------\n"));
|
||||||
printf_P(PSTR("MicroAPRS v1.0b\n"));
|
printf_P(PSTR("MicroAPRS v1.0b\n"));
|
||||||
printf_P(PSTR("unsigned.io/microaprs\n"));
|
printf_P(PSTR("unsigned.io/microaprs\n"));
|
||||||
|
|
Loading…
Reference in New Issue