blob: a31196fd4fae551d1b811c42051597eada628ded (
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 = 0b00000;
else *io_out = 0b11111;
}
}
|