X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Flib%2Farduino.c;h=581fcd5a39f0272642ef64fe5527508dbff39c38;hp=503492cc96614f7baa284d1f78b74f8efea90e8d;hb=f244df1b2d3010548ed2cceabdde44f36089a29a;hpb=5ac4c1769e9976b39e919bb5f5ac9e97f62e7d0f diff --git a/firmware/lib/arduino.c b/firmware/lib/arduino.c index 503492c..581fcd5 100644 --- a/firmware/lib/arduino.c +++ b/firmware/lib/arduino.c @@ -6,27 +6,18 @@ #include "platform.h" #ifdef ARDUINO +#include #include //! Arduino setup code. void arduino_init(){ - /* set PORTB for output*/ + //LED port as output. DDRB = 0xFF; - /* - while (1) - { - //LED on - PORTB = 0x20; - - _delay_ms(1000); - - //LED off - PORTB = 0x00; - - _delay_ms(1000); - } -*/ + //Disabled interrupts. + cli(); + + avr_init_uart0(); } #endif