Subversion Repositories group.electronics

Rev

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

Rev 130 Rev 132
Line 24... Line 24...
24
  sbi(port, pin);
24
  sbi(port, pin);
25
  delay_ms(count);
25
  delay_ms(count);
26
  cbi(port, pin);
26
  cbi(port, pin);
27
}
27
}
28
 
28
 
-
 
29
/*
29
void systemLed(uint8_t state) {
30
void systemLed(uint8_t state) {
30
	if (state)
31
	if (state)
31
		sbi(PORTA, PA0);
32
		sbi(PORTA, PA0);
32
	else
33
	else
33
		cbi(PORTA, PA0);
34
		cbi(PORTA, PA0);
34
}
35
}
-
 
36
*/
35
 
37
 
36
char* tick_addr;
38
char* tick_addr;
37
 
39
 
38
void sysclockInit(void) {
40
void sysclockInit(void) {
39
	TIMSK0 = (1<<TOIE0);             // Eable timer overflow for Timer0
41
	TIMSK = (1<<TOIE0);             // Eable timer overflow for Timer0
40
	TCCR0B = (1 << CS00) ;          // /1 prescaler
42
	TCCR0B = (1 << CS00) ;          // /1 prescaler
41
	TCNT0 = 0x00;                   // Set Timer0 to 0
43
	TCNT0 = 0x00;                   // Set Timer0 to 0
42
}
44
}
43
 
45
 
44
void swap_u8(uint8_t* a, uint8_t* b) {
46
void swap_u8(uint8_t* a, uint8_t* b) {