/* Initializes the software UART, ready for data transmission and reception into the global ring buffers.  */
void SoftUART_Init(void)
/* Initializes the software UART, ready for data transmission and reception into the global ring buffers.  */
void SoftUART_Init(void)
{
	STXPORT |= (1 << STX);
	STXDDR  |= (1 << STX);
	SRXPORT |= (1 << SRX);
	EICRA  = (1 << ISC01);
	EIMSK  = (1 << INT0);
	SoftUART_SetBaud(9600);
	TIMSK1 = (1 << OCIE1A);
	TIMSK3 = (1 << OCIE3A);
	TCCR3B = ((1 << CS30) | (1 << WGM32));
}