aboutsummaryrefslogtreecommitdiff
path: root/prog/src/main.c
blob: 082172df9661342d7a6e8fd3c2d872a0cf730358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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) {
    for (int i = 0; i < 32; ++i) {
      *((volatile uint32_t *)0x00000004) = i;
      for (int j = 0; j < 1024 * 128; ++j);
    }
  }
}