aboutsummaryrefslogtreecommitdiff
path: root/prog/src/main.c
blob: a721e142c517fda7c6ed1650ad4944cefc3dc222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdint.h>

volatile uint32_t *io_in  = (volatile uint32_t *)0x00000000;
volatile uint32_t *io_out = (volatile uint32_t *)0x00000004;


int main(void) {
  while (1) {
    if (*io_in) *io_out = 0b11111;
    else        *io_out = 0b00000;
  }
}