2 \author Travis Goodspeed
3 \brief Port descriptions for the Next Hope Badge.
11 //This nonsense is deprecated.
12 //Remove as soon as is convenient.
30 #define SETSS P4OUT|=BIT4
31 #define CLRSS P4OUT&=~BIT4
32 #define DIRSS P4DIR|=BIT4;
35 //#define RADIOACTIVE P4OUT|=BIT5
36 //#define RADIOPASSIVE P4OUT&=~BIT5
37 #define SETCE P4OUT|=BIT5
38 #define CLRCE P4OUT&=~BIT5
39 #define DIRCE P4DIR|=BIT5
41 // network byte order converters
42 #define htons(x) ((((uint16_t)(x) & 0xFF00) >> 8) | \
43 (((uint16_t)(x) & 0x00FF) << 8))
44 #define htonl(x) ((((uint32_t)(x) & 0xFF000000) >> 24) | \
45 (((uint32_t)(x) & 0x00FF0000) >> 8) | \
46 (((uint32_t)(x) & 0x0000FF00) << 8) | \
47 (((uint32_t)(x) & 0x000000FF) << 24))