Project

General

Profile

Revision 253

Added by Kevin Woo about 14 years ago

Fixed cardbox state machine to handle retries and more acks to the server. Fixed cardbox timer to be accurate

View differences:

timer.c
49 49
	 * Clock is divided by 256. (This sets it to disconnected, connects
50 50
	 *   in start_timer to above value).
51 51
	 *****/
52
	TCCR1A |= _BV(COM1A1);
52
	TCCR1A |= _BV(COM1A1) | _BV(COM1A0);
53
    TCCR1B |= _BV(CS12) | _BV(WGM12); 
53 54
	
54 55
	//Compares at 1 second with an 8MHz Clock and a 256 prescale. (31250)
55 56
	OCR1AH = 0x7A;

Also available in: Unified diff