summaryrefslogtreecommitdiffstats
path: root/sw/z80/serial.h
blob: 3dc9b18c1a65bc51410a1cdbe00f4dbfe8ae3047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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