Serial port should bring the monitor up.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@995
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
# Build the needed list of app and lib object files from the config
apps=
# Build the needed list of app and lib object files from the config
apps=
-libs= lib/$(mcu).o lib/command.o lib/dco_calib.o lib/apps.o lib/msp430.o
+libs= lib/$(mcu).o lib/command.o lib/dco_calib.o lib/apps.o lib/msp430.o lib/arduino.o
//! General init function, calls platform-specific one.
void init(){
#ifdef MSP430
//! General init function, calls platform-specific one.
void init(){
#ifdef MSP430
+ #define INITCHIP msp430_init();
+#endif
+
+#ifdef ARDUINO
+ #define INITCHIP arduino_init();
+#endif
+
+#ifdef INITCHIP
+INITCHIP
#else
#warning "No init() routine for this platform!"
#endif
#else
#warning "No init() routine for this platform!"
#endif
--- /dev/null
+/*! \file arduino.c
+ \author Travis Goodspeed
+ \brief Arduino platform support.
+*/
+
+#include "platform.h"
+
+#include <util/delay.h>
+
+#ifdef ARDUINO
+
+//! Arduino setup code.
+void arduino_init(){
+ /* set PORTB for output*/
+ DDRB = 0xFF;
+
+ while (1)
+ {
+ /* set PORTB.6 high */
+ PORTB = 0x20;
+
+ _delay_ms(1000);
+
+ /* set PORTB.6 low */
+ PORTB = 0x00;
+
+ _delay_ms(1000);
+ }
+}
+
+#endif