/*! \file apimote.h\r
\author Ryan Speers\r
- \brief Port descriptions for the GoodFET platform.\r
+ \brief Port descriptions for the Apimote platform.\r
*/\r
\r
-/* #ifdef __MSPGCC__ */\r
-/* #include <msp430.h> */\r
-/* #else */\r
-/* #include <signal.h> */\r
-/* #include <msp430.h> */\r
-/* #include <iomacros.h> */\r
-/* #endif */\r
-\r
#ifndef _GNU_ASSEMBLER_\r
#include <msp430.h>\r
#endif\r
*/\r
\r
\r
-/* TODO what to do here?. Hopefully nothing.\r
+\r
#define INITPLATFORM \\r
- P1DIR = 0xe0;\\r
+ P2DIR |= BIT0+BIT7; \\r
+ P2OUT &= ~BIT7; \\r
+ P2OUT |= BIT0; \\r
+ P3DIR |= BIT0;\r
+\r
+ /*\r
+ P1DIR = 0xe0; \\r
P1OUT = 0x00;\\r
P2DIR = 0x7b;\\r
P2OUT = 0x10;\\r
P5OUT = 0xff;\\r
P6DIR = 0xff;\\r
P6OUT = 0x00;\r
-*/\r
+ */\r
+\r
\r
//RF Control\r
//TelosB: Radio CS is 38/P4.2 (to CC2420 pin31)\r