503492cc96614f7baa284d1f78b74f8efea90e8d
[goodfet] / firmware / lib / arduino.c
1 /*! \file arduino.c
2   \author Travis Goodspeed
3   \brief Arduino platform support.
4 */
5
6 #include "platform.h"
7 #ifdef ARDUINO
8
9 #include <util/delay.h>
10
11 //! Arduino setup code.
12 void arduino_init(){
13   /* set PORTB for output*/
14   DDRB = 0xFF;
15   
16   /*
17   while (1)
18     {
19     //LED on
20       PORTB = 0x20;
21
22       _delay_ms(1000);
23
24       //LED off
25       PORTB = 0x00;
26
27       _delay_ms(1000);
28     }
29 */
30 }
31
32 #endif