mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-19 20:04:21 -04:00
Async io work
This commit is contained in:
parent
42dcd121cc
commit
06d138d66c
11 changed files with 246 additions and 94 deletions
|
@ -6,11 +6,15 @@
|
|||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <avr/io.h>
|
||||
#include "util/FIFO.h"
|
||||
|
||||
typedef struct Serial {
|
||||
FILE uart0;
|
||||
} Serial;
|
||||
|
||||
FIFOBuffer serialFIFO;
|
||||
uint8_t serialBuf[CONFIG_SERIAL_BUFFER_SIZE];
|
||||
|
||||
void serial_init(Serial *serial);
|
||||
bool serial_available(uint8_t index);
|
||||
int uart0_putchar(char c, FILE *stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue