Created
August 23, 2013 05:00
-
-
Save setkeh/6315692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <aery32/all.h> | |
#include "board.h" | |
#define LED AVR32_PIN_PC04 | |
using namespace aery; | |
int main(void) | |
{ | |
/* | |
* * The default board initializer defines all pins as input and | |
* * sets the CPU clock speed to 66 MHz. | |
* */ | |
board::init(); | |
gpio_init_pin(LED, GPIO_OUTPUT); | |
gpio_set_pin_high(LED); | |
for(;;) | |
{ | |
gpio_toggle_pin(LED); | |
delay_ms(500); | |
gpio_toggle_pin(LED); | |
delay_ms(2000); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment