Commit 551d5d95 authored by Zach Fredin's avatar Zach Fredin

updates to baremetal example

parent 7acf6ad8
......@@ -2,14 +2,16 @@
int main (void) {
int i;
REG_PORT_DIR0 |= (1<<17);
REG_PORT_DIR0 |= (1<<19);
while(1) {
REG_PORT_DIR0 |= (1<<17);
REG_PORT_DIR0 &= ~(1<<19);
REG_PORT_OUTSET0 |= (1<<17);
REG_PORT_OUTCLR0 |= (1<<19);
for (i=0;i<10000;i++) {
__asm("nop");
}
REG_PORT_DIR0 &= ~(1<<17);
REG_PORT_DIR0 |= (1<<19);
REG_PORT_OUTCLR0 |= (1<<17);
REG_PORT_OUTSET0 |= (1<<19);
for (i=0;i<10000;i++) {
__asm("nop");
}
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment