summaryrefslogtreecommitdiffstats
path: root/sw/z80/tests/pio/main.c
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-10-19 17:52:58 +0200
committerNao Pross <naopross@thearcway.org>2017-10-19 17:52:58 +0200
commitfe1ac63fc152ea70bc32b9d514841a5f806838ed (patch)
tree434d336625c9564ec20ddc2834b72f5551f53856 /sw/z80/tests/pio/main.c
parentMove test units to z80/tests, and drivers are now statically linked (diff)
downloadz80uPC-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.c9
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;
}