Subversion Repositories group.electronics

Rev

Rev 60 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60 Rev 97
Line 29... Line 29...
29
        ADCSRA: Enable, 128 prescale
29
        ADCSRA: Enable, 128 prescale
30
	*/
30
	*/
31
	ADMUX = (1<<ADLAR) | (0<<REFS0) | (1<<REFS1);
31
	ADMUX = (1<<ADLAR) | (0<<REFS0) | (1<<REFS1);
32
	ADCSRA = (1<<ADEN) | (1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0) ;
32
	ADCSRA = (1<<ADEN) | (1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0) ;
33
}
33
}
-
 
34
 
-
 
35
 
-
 
36
char* tick_addr;
-
 
37
 
-
 
38
void sysclockInit(void) {
-
 
39
	
-
 
40
	TIMSK0 = (1<<TOIE0);		// Eable timer overflow for Timer0
-
 
41
	TCNT0 = 0x00;				// Set Timer0 to 0
-
 
42
	TCCR0B = (1<< CS00) ;		// /1 prescaler
-
 
43
	
-
 
44
	//tick_addr = func;
-
 
45
}
-
 
46