gio port init
[my-code/atmel.git] / led_plex / port.asm
diff --git a/led_plex/port.asm b/led_plex/port.asm
new file mode 100644 (file)
index 0000000..aeb40f1
--- /dev/null
@@ -0,0 +1,14 @@
+; port functions
+
+GIO_PORT_INIT:
+
+       ; port b 0-2 -> output
+       ldi tmp1,0x06
+       out DDRB,tmp1
+
+       ; zero outputs
+       ldi tmp1,0x00
+       out PORTB,tmp1
+
+       ret
+