diff options
author | Nao Pross <naopross@thearcway.org> | 2017-10-19 17:52:58 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-10-19 17:52:58 +0200 |
commit | fe1ac63fc152ea70bc32b9d514841a5f806838ed (patch) | |
tree | 434d336625c9564ec20ddc2834b72f5551f53856 /sw/z80/tests/pio/main.c | |
parent | Move test units to z80/tests, and drivers are now statically linked (diff) | |
download | z80uPC-fe1ac63fc152ea70bc32b9d514841a5f806838ed.tar.gz z80uPC-fe1ac63fc152ea70bc32b9d514841a5f806838ed.zip |
Fix for PIO driver and its test and deletes build files
Diffstat (limited to 'sw/z80/tests/pio/main.c')
-rw-r--r-- | sw/z80/tests/pio/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/z80/tests/pio/main.c b/sw/z80/tests/pio/main.c index 4b0bcdb..c1f3741 100644 --- a/sw/z80/tests/pio/main.c +++ b/sw/z80/tests/pio/main.c @@ -1,12 +1,17 @@ #include "pio.h" +#include <stdint.h> + void main(void) { - uint8_t j = 0; + uint8_t i = 0; pio_set_mode(PIO_A, PIO_MODE_BYTE_OUT, 0); while (1) { - pio_write(PIO_A, j++); + pio_write(PIO_A, i); + i = ~i; } + + // return; } |