You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
393 B

/** @file pio2.c
@author M.P. Hayes
@date 25 Aug 2011
*/
#include "system.h"
#include "pio.h"
int main (void)
{
uint16_t count = 0;
system_init ();
pio_config_set (LED1_PIO, PIO_OUTPUT_HIGH);
while (1)
{
count++;
if (count > 10000)
{
pio_output_toggle (LED1_PIO);
count = 0;
}
}
return 0;
}