Пример #1
0
void flash_led_long()
{
    //LED_PORT |= _BV(LED);
    turn_led_off();
    delay_sec();
    //LED_PORT &= ~_BV(LED);
    turn_led_on();
    delay_sec();
    //LED_PORT |= _BV(LED);
    turn_led_off();
    delay_sec();
}
Пример #2
0
int main(void)
{
	fpb_setup();
	
	config_led(LED1);
	turn_led_off(LED1); // We want to redirect this function call with the FPB unit, and instead call turn_led_on(LED1), located at 0x7F000, defined in 'new_function.c.'
	
	config_led(LED2);
	turn_led_off(LED2);
	
	config_led(LED3);
	turn_led_off(LED3);

	for( ; ; );
}
Пример #3
0
void flash_led_once()
{

    //LED_PORT &= ~_BV(LED);
    turn_led_on();
    delay_thsec();
    //LED_PORT |= _BV(LED);
    turn_led_off();
    delay_esec();
}