diff options
author | Nao Pross <naopross@thearcway.org> | 2017-03-23 20:49:25 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-03-23 20:49:25 +0100 |
commit | be51fc021f18aa6c0fc0006ebbc4fa34ebca4c62 (patch) | |
tree | 07934fe1084d1906372e19b66afb39ae4ff0bf55 /sw/z80/serial.h | |
parent | changed scheme layout (diff) | |
download | z80uPC-be51fc021f18aa6c0fc0006ebbc4fa34ebca4c62.tar.gz z80uPC-be51fc021f18aa6c0fc0006ebbc4fa34ebca4c62.zip |
created bios/kernel source code structure
Diffstat (limited to '')
-rw-r--r-- | sw/z80/serial.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/z80/serial.h b/sw/z80/serial.h new file mode 100644 index 0000000..3dc9b18 --- /dev/null +++ b/sw/z80/serial.h @@ -0,0 +1,15 @@ +#ifndef __SERIAL_H__ +#define __SERIAL_H__ + +#include "types.h" + +// define all +#define USART_BAUD_9600 +#define USART_BAUD_115200 + +uint8_t usart_registers[8]; +usart_registers = 0x80FF; // TODO: set real address + +void usart_init(int16_t baudprescale); + +#endif |