mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-21 15:50:32 -04:00
Initial commit
This commit is contained in:
commit
05d62b594e
18 changed files with 1551 additions and 0 deletions
20
hardware/Serial.h
Normal file
20
hardware/Serial.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue