aboutsummaryrefslogtreecommitdiff
path: root/prog/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'prog/src/main.c')
-rw-r--r--prog/src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/prog/src/main.c b/prog/src/main.c
index 62b802b..082172d 100644
--- a/prog/src/main.c
+++ b/prog/src/main.c
@@ -1,13 +1,13 @@
#include <stdint.h>
-volatile uint32_t *io_in = (volatile uint32_t *)0x00000000;
-volatile uint32_t *io_out = (volatile uint32_t *)0x00000004;
+//volatile uint32_t *io_in = (volatile uint32_t *)0x00000000;
+//volatile uint32_t *io_out = (volatile uint32_t *)0x00000004;
int main(void) {
- *io_out = 0;
while (1) {
for (int i = 0; i < 32; ++i) {
- *io_out = i;
+ *((volatile uint32_t *)0x00000004) = i;
+ for (int j = 0; j < 1024 * 128; ++j);
}
}
}