2 \author Travis Goodspeed
3 \brief Port descriptions for the Next Hope Badge.
18 //No longer works for Hope badge.
19 #define SETSS P5OUT|=BIT4
20 #define CLRSS P5OUT&=~BIT4
21 #define DIRSS P5DIR|=BIT4;
24 //#define RADIOACTIVE P5OUT|=BIT5
25 //#define RADIOPASSIVE P5OUT&=~BIT5
26 #define SETCE P5OUT|=BIT5
27 #define CLRCE P5OUT&=~BIT5
28 #define DIRCE P5DIR|=BIT5
35 // network byte order converters
36 #define htons(x) ((((uint16_t)(x) & 0xFF00) >> 8) | \
37 (((uint16_t)(x) & 0x00FF) << 8))
38 #define htonl(x) ((((uint32_t)(x) & 0xFF000000) >> 24) | \
39 (((uint32_t)(x) & 0x00FF0000) >> 8) | \
40 (((uint32_t)(x) & 0x0000FF00) << 8) | \
41 (((uint32_t)(x) & 0x000000FF) << 24))