void serial_init() {

	power_usart0_enable();

	// configure ports double mode
	UCSR0A = _BV(U2X0);

	// configure the ports speed
	UBRR0H = 0x00;
	UBRR0L = 34;

	// asynchronous, 8N1 mode
	UCSR0C |= 0x06;
	
	// rx/tx enable
	UCSR0B |= _BV(RXEN0);
	UCSR0B |= _BV(TXEN0);
}