; port functions
-GIO_PORT_INIT:
+PORT_INIT:
- ; port b 0-2 -> output
- ldi tmp1,0x06
+ ; port b 0-3 -> output
+ ldi tmp1,0x0f
out DDRB,tmp1
- ; zero outputs
- ldi tmp1,0x00
- out PORTB,tmp1
+ ; g, rck, sck -> low / scl -> high
+ cbi PORTB,(1<<0)|(1<<1)|(1<<2)
+ sbi PORTB,(1<<3)
+
+ ; port d 6 -> output
+ ldi tmp1,(1<<6)
+ out DDRD,tmp1
+
+ ; ser -> low
+ cbi PORTD,(1<<6)
ret