KISS/AX.25 working

This commit is contained in:
Mark Qvist 2014-12-04 15:22:25 +01:00
parent 2da266e994
commit 4119591f88
4 changed files with 27 additions and 25 deletions

4
main.c
View file

@ -22,6 +22,7 @@ static void ax25_callback(struct AX25Ctx *ctx) {
}
void init(void) {
sei();
AFSK_init(&modem);
serial_init(&serial);
ax25_init(&AX25, &modem.fd, ax25_callback);
@ -40,8 +41,7 @@ int main (void) {
if (serial_available(0)) {
char sbyte = uart0_getchar_nowait();
kiss_serialCallback(sbyte);
}
}
}
return(0);