mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-24 06:14:16 -04:00
KISS/AX.25 working
This commit is contained in:
parent
2da266e994
commit
4119591f88
4 changed files with 27 additions and 25 deletions
4
main.c
4
main.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue