changes to the GUI to allow for better loading and writing as well as tested our...
[goodfet] / firmware / lib / arduino.c
index 870f46e..581fcd5 100644 (file)
@@ -6,25 +6,18 @@
 #include "platform.h"
 #ifdef ARDUINO
 
 #include "platform.h"
 #ifdef ARDUINO
 
+#include <avr/interrupt.h>
 #include <util/delay.h>
 
 //! Arduino setup code.
 void arduino_init(){
 #include <util/delay.h>
 
 //! Arduino setup code.
 void arduino_init(){
-  /* set PORTB for output*/
+  //LED port as output.
   DDRB = 0xFF;
   DDRB = 0xFF;
-
-  while (1)
-    {
-      /* set PORTB.6 high */
-      PORTB = 0x20;
-
-      _delay_ms(1000);
-
-      /* set PORTB.6 low */
-      PORTB = 0x00;
-
-      _delay_ms(1000);
-    }
+  
+  //Disabled interrupts.
+  cli();
+  
+  avr_init_uart0();
 }
 
 #endif
 }
 
 #endif