new prescaler + debug outs
[my-code/atmel.git] / led_plex / timer.asm
index e371f65..c61967a 100644 (file)
@@ -1,2 +1,18 @@
 ; timer functions
 
+TIMER0_INIT:
+
+       ; clock select
+       ldi tmp1,0x02
+       out TCCR0B,tmp1
+
+       ret
+
+TIMER0_INT_INIT:
+
+       ; overflow interrupt
+       ldi tmp1,0x02
+       out TIMSK,tmp1
+
+       ret
+