main.c 344 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "sam.h"

int main (void) {
    int i;
    while(1) {
        REG_PORT_DIR0 |= (1<<17);
        REG_PORT_DIR0 &= ~(1<<19);
        for (i=0;i<10000;i++) {
            __asm("nop");
        }
        REG_PORT_DIR0 &= ~(1<<17);
        REG_PORT_DIR0 |= (1<<19);
        for (i=0;i<10000;i++) {
            __asm("nop");
        }
    }
}