carrerashark/main.c

changeset 30
10c78c097d18
parent 29
ba4f69250592
child 31
a8f082503782
--- a/carrerashark/main.c	Thu Dec 01 14:41:19 2011 +0100
+++ b/carrerashark/main.c	Thu Dec 01 15:31:19 2011 +0100
@@ -122,14 +122,10 @@
     MCUCR = _BV(ISC00); // falling edge
     GICR = _BV(INT0) ; // Enable INT0
 
-    writeBit(DDRD, 4, 1);
-    writeBit(DDRD, 5, 1);
-    writeBit(DDRD, 6, 1);
-
+    DDRD |= _BV(PD3) | _BV(PD4) | _BV(PD5);
 
     RS232_init(); // initialize RS232 interface
-    RS232_puts_p(PSTR("CarreraShark 1.0 - INIT OK\n"));
-    //RS232_puts_p(PSTR("Receiving one complete cycle:\n"));
+    RS232_puts_p(PSTR("CarreraShark 1.1\n"));
 
     sei();
     i = 0;
@@ -150,7 +146,7 @@
                         RS232_puts( s );
                         RS232_putc(' ');
                     }
-                    RS232_putc('\n');
+                    RS232_putc('*');
                     i = 0;
                     PORTD ^= _BV(PD5);
                 }

mercurial