X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Flib%2Farduino.c;h=581fcd5a39f0272642ef64fe5527508dbff39c38;hp=870f46e48c970524bb6e11da2f4ae2806a5f4c7f;hb=f244df1b2d3010548ed2cceabdde44f36089a29a;hpb=c291f2361f0588cab3bd9d179edbf0c095ffda6c diff --git a/firmware/lib/arduino.c b/firmware/lib/arduino.c index 870f46e..581fcd5 100644 --- a/firmware/lib/arduino.c +++ b/firmware/lib/arduino.c @@ -6,25 +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) - { - /* 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