summaryrefslogtreecommitdiffstats
path: root/sw/z80/tests/pio/main.c
blob: c1f3741ff5750cbf77643c6c76a172e11271ba87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "pio.h"

#include <stdint.h>

void main(void)
{
    uint8_t i = 0;

    pio_set_mode(PIO_A, PIO_MODE_BYTE_OUT, 0);

    while (1) {
        pio_write(PIO_A, i);
        i = ~i;
    }

    // return;
}