#include <avr/io.h>
#include <avr/signal.h>
#include <avr/interrupt.h> 

// Enable INT0 External Interrupt
 GICR |= 1<<INT0;

// Falling-Edge Triggered INT0

MCUCR |= 1<<ISC01;

// Enable Interrupts
 
sei(); 
DDRD = 0 ;
PORTD |= _BV(PD2);
DDRB = 255; 
//  
int main(void)
{
	while (1)
	{
	}
}

// External Interrupt 0 ISR
SIGNAL(SIG_INTERRUPT0) 
{
	PORTB = PORTB ^ _BV(PB2);
}
