mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-20 04:14:22 -04:00
Asynchronous IO implemented, packet queueing implemented
This commit is contained in:
parent
06d138d66c
commit
c22123b953
6 changed files with 49 additions and 25 deletions
|
@ -149,14 +149,6 @@ int afsk_getchar(FILE *stream) {
|
|||
}
|
||||
}
|
||||
|
||||
void AFSK_transmit(char *buffer, size_t size) {
|
||||
fifo_flush(&AFSK_modem->txFifo);
|
||||
int i = 0;
|
||||
while (size--) {
|
||||
afsk_putchar(buffer[i++], NULL);
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t AFSK_dac_isr(Afsk *afsk) {
|
||||
if (afsk->sampleIndex == 0) {
|
||||
if (afsk->txBit == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue