Skip to content
Snippets Groups Projects
Commit 551d5d95 authored by Zach Fredin's avatar Zach Fredin
Browse files

updates to baremetal example

parent 7acf6ad8
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,16 @@
int main (void) {
int i;
while(1) {
REG_PORT_DIR0 |= (1<<17);
REG_PORT_DIR0 &= ~(1<<19);
REG_PORT_DIR0 |= (1<<19);
while(1) {
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment