diff options
author | Nao Pross <naopross@thearcway.org> | 2017-06-02 16:22:26 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-06-02 16:22:26 +0200 |
commit | 4a7f45ee28ac0799ba1ca93fd1683f7858efc54a (patch) | |
tree | 831487d939e15ba4c2fdb16b08240f1aeda843e5 /sw/z80/kernel/include/devices.h | |
parent | new file coding_rules.txt to have a consistent coding style (diff) | |
download | z80uPC-4a7f45ee28ac0799ba1ca93fd1683f7858efc54a.tar.gz z80uPC-4a7f45ee28ac0799ba1ca93fd1683f7858efc54a.zip |
add serial interface and a few std library functions
changes in usart:
- new functions to setup the serial comunication settings such as baudrate,
parity and stop bits
- init function with most common values
- transmit and receive functions each with a wrapper to send data blocks
changes in libc:
- new file stdio.c with basic implementation of putch, printf still a prototype
- new file string.c with memcpy() function
Diffstat (limited to 'sw/z80/kernel/include/devices.h')
-rw-r--r-- | sw/z80/kernel/include/devices.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/z80/kernel/include/devices.h b/sw/z80/kernel/include/devices.h index ea29065..e8c183f 100644 --- a/sw/z80/kernel/include/devices.h +++ b/sw/z80/kernel/include/devices.h @@ -4,9 +4,9 @@ #define ADDR_DEV_ROM_L 0x0000 #define ADDR_DEV_ROM_H 0x2000 -#define ADDR_DEV_USART 0x4000 -#define ADDR_DEV_CTC -#define ADDR_DEV_PIO +#define ADDR_DEV_USART 0x4000 +#define ADDR_DEV_CTC 0x4100 +#define ADDR_DEV_PIO 0x4200 #define ADDR_DEV_RAM 0x8000 |