More code cleanup. Broke support for the Launchpad.
[goodfet] / firmware / include / platform.h
index 071e30f..c138e0d 100644 (file)
@@ -1,21 +1,33 @@
 /*! \file platform.h
   \author Travis Goodspeed
   \brief Port and baud rate definitions.
-  
+
   The functions specified here are defined in the platform
   definition file, such as msp430x1612.c or msp430x2618.c.
 */
 
+#ifndef __PLATFORM_H
+#define __PLATFORM_H
+
 
 #include "gfports.h"
 
 #include <stdint.h>
 
 #ifdef MSP430
-#include <io.h>
+#ifdef __MSPGCC__
+#include <msp430.h>
+#else
 #include <signal.h>
+#include <io.h>
 #include <iomacros.h>
-#include "msp430.h"
+#endif
+
+void msp430_init();
+void led_init();  //deprecated
+void led_on();
+void led_off();
+void led_toggle();
 #endif
 
 #include "config.h"
@@ -53,3 +65,6 @@ void msp430_init_dco();
 //! Called by monitor() when the DCO is correct and communication established.
 void msp430_init_dco_done();
 
+
+#endif
+