⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app.c

📁 无线传感器网络中
💻 C
📖 第 1 页 / 共 5 页
字号:
#define dbg(mode, format, ...) ((void)0)#define dbg_clear(mode, format, ...) ((void)0)#define dbg_active(mode) 0# 60 "/usr/local/avr/include/inttypes.h"typedef signed char int8_t;typedef unsigned char uint8_t;# 83 "/usr/local/avr/include/inttypes.h" 3typedef int int16_t;typedef unsigned int uint16_t;typedef long int32_t;typedef unsigned long uint32_t;#line 117typedef long long int64_t;typedef unsigned long long uint64_t;#line 134typedef int16_t intptr_t;typedef uint16_t uintptr_t;# 213 "/usr/local/lib/gcc-lib/avr/3.3-tinyos/include/stddef.h" 3typedef unsigned int size_t;#line 325typedef int wchar_t;# 60 "/usr/local/avr/include/stdlib.h"typedef struct __nesc_unnamed4242 {  int quot;  int rem;} div_t;typedef struct __nesc_unnamed4243 {  long quot;  long rem;} ldiv_t;typedef int (*__compar_fn_t)(const void *, const void *);# 172 "/usr/local/avr/include/stdlib.h" 3extern void qsort(void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar);# 151 "/usr/local/lib/gcc-lib/avr/3.3-tinyos/include/stddef.h" 3typedef int ptrdiff_t;# 85 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/tos.h"typedef unsigned char bool;enum __nesc_unnamed4244 {  FALSE = 0,   TRUE = 1};uint16_t TOS_LOCAL_ADDRESS = 1;enum __nesc_unnamed4245 {  FAIL = 0,   SUCCESS = 1};static inline uint8_t rcombine(uint8_t r1, uint8_t r2);typedef uint8_t  result_t;static inline result_t rcombine(result_t r1, result_t r2);static inline result_t rcombine3(result_t r1, result_t r2, result_t r3);static inline result_t rcombine4(result_t r1, result_t r2, result_t r3, result_t r4);enum __nesc_unnamed4246 {  NULL = 0x0};# 81 "/usr/local/avr/include/avr/pgmspace.h"typedef void __attribute((__progmem__)) prog_void;typedef char __attribute((__progmem__)) prog_char;typedef unsigned char __attribute((__progmem__)) prog_uchar;typedef int __attribute((__progmem__)) prog_int;typedef long __attribute((__progmem__)) prog_long;typedef long long __attribute((__progmem__)) prog_long_long;# 124 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h"enum __nesc_unnamed4247 {  TOSH_period16 = 0x00,   TOSH_period32 = 0x01,   TOSH_period64 = 0x02,   TOSH_period128 = 0x03,   TOSH_period256 = 0x04,   TOSH_period512 = 0x05,   TOSH_period1024 = 0x06,   TOSH_period2048 = 0x07};static inline void TOSH_wait(void);static inline void TOSH_sleep(void);typedef uint8_t __nesc_atomic_t;__inline __nesc_atomic_t  __nesc_atomic_start(void );__inline void  __nesc_atomic_end(__nesc_atomic_t oldSreg);static __inline void __nesc_enable_interrupt(void);# 229 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/CC1000Const.h"static const prog_uchar CC1K_LPL_PreambleLength[7 * 2] = { 0, 28, 0, 94, 0, 250, 0x01, 0x73, 0x01, 0xEA, 0x04, 0xBC, 0x0A, 0x5E };static const prog_uchar CC1K_LPL_ValidPrecursor[7] = { 5, 2, 2, 2, 2, 2, 2 };static const prog_uchar CC1K_LPL_SleepTime[7 * 2] = { 0, 0, 0, 20, 0, 85, 0, 135, 0, 185, 0x01, 0xE5, 0x04, 0x3D };static const prog_uchar CC1K_LPL_SleepPreamble[7] = { 0, 8, 8, 8, 8, 8, 8 };static const prog_uchar CC1K_LPL_SquelchInit[7] = { 0xAE, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF };static const prog_uchar CC1K_Params[6][31] = { { 0x31, 0x58, 0x00, 0x00, 0x57, 0xf6, 0x85, 0X03, 0x55, (4 << 4) | (1 << 2), 1 << 1, (0x0 << 4) | (0xf << 0), 12 << 3, 0xe << 4, (1 << 5) | (6 << 0), (0 << 7) | (28 << 0), (((3 << 5) | (1 << 3)) | (3 << 1)) | (1 << 0), ((5 << 4) | (1 << 2)) | (1 << 0), (0x7 << 4) | (0x0 << 0), 1 << 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (8 << 4) | (1 << 0), TRUE }, { 0x31, 0x7c, 0x00, 0x00, 0x7b, 0xf9, 0xae, 0x02, 0x38, (8 << 4) | (3 << 2), ((1 << 5) | (2 << 3)) | (1 << 1), (0x8 << 4) | (0x0 << 0), 8 << 3, 0x1 << 4, (1 << 5) | (6 << 0), (1 << 7) | (33 << 0), (((3 << 5) | (1 << 3)) | (3 << 1)) | (1 << 0), ((5 << 4) | (1 << 2)) | (1 << 0), (0x1 << 4) | (0x0 << 0), 1 << 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (15 << 4) | (3 << 0), TRUE }, { 0x31, 0x51, 0x00, 0x00, 0x50, 0xf7, 0x4F, 0X03, 0x0E, (4 << 4) | (1 << 2), 1 << 1, (0x0 << 4) | (0xf << 0), 11 << 3, 0xe << 4, (1 << 5) | (6 << 0), (1 << 7) | (33 << 0), (((3 << 5) | (1 << 3)) | (3 << 1)) | (1 << 0), ((5 << 4) | (1 << 2)) | (1 << 0), (0x7 << 4) | (0x0 << 0), 1 << 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (8 << 4) | (1 << 0), TRUE }, { 0x31, 0x5c, 0xe0, 0x00, 0x5c, 0xdb, 0x42, 0x01, 0xAA, (8 << 4) | (3 << 2), ((1 << 5) | (2 << 3)) | (1 << 1), (0x8 << 4) | (0x0 << 0), 6 << 3, 0x1 << 4, (1 << 5) | (6 << 0), (1 << 7) | (33 << 0), (((3 << 5) | (1 << 3)) | (3 << 1)) | (1 << 0), ((5 << 4) | (1 << 2)) | (1 << 0), (0x1 << 4) | (0x0 << 0), 1 << 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (15 << 4) | (3 << 0), TRUE }, { 0x31, 0x45, 0x60, 0x00, 0x45, 0x55, 0xBB, 0X03, 0x9C, (8 << 4) | (0 << 2), 1 << 1, (0x0 << 4) | (0xf << 0), 13 << 3, 0xe << 4, (1 << 5) | (6 << 0), (1 << 7) | (33 << 0), (((3 << 5) | (1 << 3)) | (3 << 1)) | (1 << 0), ((5 << 4) | (1 << 2)) | (0 << 0), (0x7 << 4) | (0x0 << 0), 1 << 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (8 << 4) | (1 << 0), TRUE }, { 0x31, 0x58, 0x00, 0x00, 0x57, 0xf6, 0x85, 0X03, 0x55, (8 << 4) | (4 << 2), 1 << 1, (0x0 << 4) | (0xf << 0), 12 << 3, 0xe << 4, (1 << 5) | (6 << 0), (1 << 7) | (33 << 0), (((3 << 5) | (1 << 3)) | (3 << 1)) | (1 << 0), ((5 << 4) | (1 << 2)) | (1 << 0), (0x7 << 4) | (0x0 << 0), 1 << 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (8 << 4) | (1 << 0), TRUE } };# 108 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2dot/hardware.h"static __inline void TOSH_SET_RED_LED_PIN(void);#line 108static __inline void TOSH_CLR_RED_LED_PIN(void);#line 108static __inline void TOSH_MAKE_RED_LED_OUTPUT(void);static __inline void TOSH_SET_YELLOW_LED_PIN(void);#line 112static __inline void TOSH_CLR_YELLOW_LED_PIN(void);#line 112static __inline void TOSH_MAKE_YELLOW_LED_OUTPUT(void);static __inline void TOSH_SET_GREEN_LED_PIN(void);#line 113static __inline void TOSH_CLR_GREEN_LED_PIN(void);#line 113static __inline void TOSH_MAKE_GREEN_LED_OUTPUT(void);static __inline void TOSH_MAKE_CC_CHP_OUT_INPUT(void);static __inline void TOSH_SET_CC_PDATA_PIN(void);#line 117static __inline void TOSH_CLR_CC_PDATA_PIN(void);#line 117static __inline int TOSH_READ_CC_PDATA_PIN(void);#line 117static __inline void TOSH_MAKE_CC_PDATA_OUTPUT(void);#line 117static __inline void TOSH_MAKE_CC_PDATA_INPUT(void);static __inline void TOSH_SET_CC_PCLK_PIN(void);#line 118static __inline void TOSH_CLR_CC_PCLK_PIN(void);#line 118static __inline void TOSH_MAKE_CC_PCLK_OUTPUT(void);static __inline void TOSH_SET_CC_PALE_PIN(void);#line 119static __inline void TOSH_CLR_CC_PALE_PIN(void);#line 119static __inline void TOSH_MAKE_CC_PALE_OUTPUT(void);static __inline void TOSH_SET_FLASH_SELECT_PIN(void);#line 127static __inline void TOSH_MAKE_FLASH_SELECT_OUTPUT(void);static __inline void TOSH_MAKE_FLASH_CLK_OUTPUT(void);static __inline void TOSH_SET_FLASH_OUT_PIN(void);#line 129static __inline void TOSH_MAKE_FLASH_OUT_OUTPUT(void);static __inline void TOSH_SET_INT1_PIN(void);#line 134static __inline void TOSH_MAKE_INT1_OUTPUT(void);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -