/*
 * ATmega328P.c
 *
 * Created: 10-Jul-19 1:43:19 PM
 * Author : M19892
 */ 

#include <avr/io.h>
#include <avr/fuse.h>

FUSES = 
{
	.extended = 0xFF,
	.high = 0xD1,
	.low = 0xA5,
};


int main(void)
{
	// Crystal clock will be output on PORTD6 (divided by 2)
    DDRD |= (1 << DDD6);
	
	// Enable CTC mode with toggle on compare match. Precale 1 and top at 0
	TCCR0A = (0 << COM0A1) | (1 << COM0A0) | (1 << WGM01) | (0 << WGM00);
	TCCR0B = (0 << WGM02) | (0 << CS02) | (0 << CS01) | (1 << CS00);
	OCR0A = 0;
	
    while(1){}
}

