24 #ifndef __XBEE_PLATFORM_HCS08 25 #define __XBEE_PLATFORM_HCS08 28 #if (__VERSION__ <= 5032) 35 #include "derivative.h" 41 #pragma MESSAGE DISABLE C5703 44 #pragma MESSAGE DISABLE C3303 // Implicit concatenation of strings 47 #pragma MESSAGE DISABLE C4301 52 #pragma MESSAGE DISABLE C4800 // Implicit cast in assignment 57 #pragma MESSAGE DISABLE C1420 // Result of function-call is ignored 60 #define __FUNCTION__ "xbee" 63 #define LITTLE_ENDIAN 1234 64 #define BIG_ENDIAN 4321 65 #define PDP_ENDIAN 3412 67 #ifdef __LITTLE_ENDIAN__ 68 #error "This platform is supposed to be BIG ENDIAN" 70 #define BYTE_ORDER BIG_ENDIAN 75 #define _f_memcpy memcpy 76 #define _f_memset memset 79 typedef signed char int8_t;
86 typedef unsigned char uint_fast8_t;
87 typedef signed char int_fast8_t;
89 #define INT16_C(x) (x) 90 #define UINT16_C(x) (x ## U) 91 #define INT32_C(x) (x ## L) 92 #define UINT32_C(x) (x ## UL) 110 #define SERIAL_PORT_SCI1 1 111 #define SERIAL_PORT_SCI2 2 125 #define ZCL_TIME_EPOCH_DELTA 0 127 #define HAVE_SWAP_FUNCS 1 131 #define xbee_seconds_timer() (SEC_TIMER) 132 #define xbee_millisecond_timer() (MS_TIMER) 136 #define XBEE_MS_TIMER_RESOLUTION 4 139 #endif // __XBEE_PLATFORM_HCS08 unsigned long uint32_t
32-bit unsigned integer
Definition: platform_config.h:43
signed char int8_t
8-bit signed integer
Definition: platform_config.h:38
Definition: platform_config.h:71
void xbee_reset_radio(struct xbee_dev_t *xbee, bool_t asserted)
Function to pass to xbee_dev_init() to control the EM250's /RESET pin on PTCD4.
Definition: xbee_platform_hcs08.c:108
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
unsigned char uint8_t
8-bit unsigned integer
Definition: platform_config.h:39
short int16_t
16-bit signed integer
Definition: platform_config.h:40
long int32_t
32-bit signed integer
Definition: platform_config.h:42
Circular buffer used by transparent serial cluster handler.
Definition: cbuf.h:31
int bool_t
Variable that can hold 0 or 1, may be an int for speed purporses or uint8_t for size optimization...
Definition: platform_config.h:51