mirror of
https://github.com/markqvist/OpenModem.git
synced 2024-10-01 03:15:46 -04:00
20 lines
334 B
C
20 lines
334 B
C
#ifndef SERIAL_H
|
|
#define SERIAL_H
|
|
|
|
#include "device.h"
|
|
|
|
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
#include <avr/io.h>
|
|
|
|
typedef struct Serial {
|
|
FILE uart0;
|
|
} Serial;
|
|
|
|
void serial_init(Serial *serial);
|
|
bool serial_available(uint8_t index);
|
|
void uart0_putchar(char c);
|
|
char uart0_getchar(void);
|
|
char uart0_getchar_nowait(void);
|
|
|
|
#endif |