Closer to MSP430X2 support.
[goodfet] / firmware / include / sbw.h
index 3ca6063..4bd4f5e 100644 (file)
@@ -3,6 +3,13 @@
   \brief Spy-Bi-Wire Stuff
 */
 
+#ifndef SBW_H
+#define SBW_H
+
+#include "platform.h"
+#include "command.h"
+#include "app.h"
+
 //IO Pins; these are for EZ430, not GoodFET/UIF
 #define SBWTCK  BIT3
 #define SBWTDIO BIT2
@@ -41,7 +48,6 @@ void sbwSETTCLK();
 void sbwCLRTCLK();
 
 // Macros
-
 #define SBWCLK() do { \
     P5OUT &= ~SBWTCK; \
     asm("nop");              \
@@ -78,5 +84,5 @@ void sbwCLRTCLK();
 //Do nothing for this.
 #define SAVETCLK 
 
-
+#endif // SBW_H