#include "platform.h"
#ifdef ARDUINO
+#include <avr/interrupt.h>
#include <util/delay.h>
//! 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