#define F_CPU 10000000UL
#include <stdio.h>
#include <stdlib.h>
#include <avr/io.h>
#include <util/delay.h>


#define USE_UART  	

#include "device.h"

typedef struct
{

unsigned	bit0 : 1,
		bit1 : 1,
		bit2 : 1,
		bit3 : 1,
		bit4 : 1,
		bit5 : 1,
		bit6 : 1,
		bit7 : 1} 
IOREG;

#define PORT (*(IOREG*) 0x32)

int main(void)
{
	usartInit( 19200 );


	print ( "Hello world example\n" );
	
	DDRD |= ( 1 << PD6);

	while(1)
	{
		PORT.bit6 = 1;
		delay(1);
		PORT.bit6 = 0;
		delay(1);
	}	

}