Skip to content

Instantly share code, notes, and snippets.

@ghazanhaider
Created July 3, 2017 03:33
Show Gist options
  • Save ghazanhaider/8029a964b05c35b1f142a5a874646673 to your computer and use it in GitHub Desktop.
Save ghazanhaider/8029a964b05c35b1f142a5a874646673 to your computer and use it in GitHub Desktop.
#include<targets/AT91SAM7s512.h>
int main(void)
{
PIOA_OER |= PIOA_OER_P18_MASK ;
while (1) {
for (int x=0;x<0x00100000;x++) {
PIOA_SODR |= PIOA_SODR_P18_MASK ;
}
for (int x=0;x<0x00100000;x++) {
PIOA_CODR |= PIOA_CODR_P18_MASK ;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment