📄 app.c
字号:
#define nx_struct struct#define nx_union union#define dbg(mode, format, ...) ((void)0)#define dbg_clear(mode, format, ...) ((void)0)#define dbg_active(mode) 0# 152 "/usr/bin/../lib/gcc/avr/4.1.2/include/stddef.h" 3typedef int ptrdiff_t;#line 214typedef unsigned int size_t;#line 326typedef int wchar_t;# 8 "/usr/lib/ncc/deputy_nodeputy.h"struct __nesc_attr_nonnull {} ;#line 9struct __nesc_attr_bnd {#line 9 void *lo, *hi;} ;#line 10struct __nesc_attr_bnd_nok {#line 10 void *lo, *hi;} ;#line 11struct __nesc_attr_count {#line 11 int n;} ;#line 12struct __nesc_attr_count_nok {#line 12 int n;} ;#line 13struct __nesc_attr_one {} ;#line 14struct __nesc_attr_one_nok {} ;#line 15struct __nesc_attr_dmemset {#line 15 int a1, a2, a3;} ;#line 16struct __nesc_attr_dmemcpy {#line 16 int a1, a2, a3;} ;#line 17struct __nesc_attr_nts {} ;# 121 "/usr/bin/../lib/gcc/avr/4.1.2/../../../../avr/include/stdint.h" 3typedef int int8_t __attribute((__mode__(__QI__))) ;typedef unsigned int uint8_t __attribute((__mode__(__QI__))) ;typedef int int16_t __attribute((__mode__(__HI__))) ;typedef unsigned int uint16_t __attribute((__mode__(__HI__))) ;typedef int int32_t __attribute((__mode__(__SI__))) ;typedef unsigned int uint32_t __attribute((__mode__(__SI__))) ;typedef int int64_t __attribute((__mode__(__DI__))) ;typedef unsigned int uint64_t __attribute((__mode__(__DI__))) ;#line 142typedef int16_t intptr_t;typedef uint16_t uintptr_t;#line 159typedef int8_t int_least8_t;typedef uint8_t uint_least8_t;typedef int16_t int_least16_t;typedef uint16_t uint_least16_t;typedef int32_t int_least32_t;typedef uint32_t uint_least32_t;typedef int64_t int_least64_t;typedef uint64_t uint_least64_t;#line 213typedef int8_t int_fast8_t;typedef uint8_t uint_fast8_t;typedef int16_t int_fast16_t;typedef uint16_t uint_fast16_t;typedef int32_t int_fast32_t;typedef uint32_t uint_fast32_t;typedef int64_t int_fast64_t;typedef uint64_t uint_fast64_t;#line 273typedef int64_t intmax_t;typedef uint64_t uintmax_t;# 77 "/usr/bin/../lib/gcc/avr/4.1.2/../../../../avr/include/inttypes.h" 3typedef int32_t int_farptr_t;typedef uint32_t uint_farptr_t;# 235 "/usr/lib/ncc/nesc_nx.h"static __inline uint8_t __nesc_ntoh_uint8(const void * source) ;static __inline uint8_t __nesc_hton_uint8(void * target, uint8_t value) ;static __inline uint8_t __nesc_ntoh_leuint8(const void * source) ;static __inline uint8_t __nesc_hton_leuint8(void * target, uint8_t value) ;static __inline int8_t __nesc_ntoh_int8(const void * source) ;#line 257static __inline int8_t __nesc_hton_int8(void * target, int8_t value) ;static __inline uint16_t __nesc_ntoh_uint16(const void * source) ;static __inline uint16_t __nesc_hton_uint16(void * target, uint16_t value) ;static __inline uint16_t __nesc_ntoh_leuint16(const void * source) ;static __inline uint16_t __nesc_hton_leuint16(void * target, uint16_t value) ;#line 294static __inline uint32_t __nesc_ntoh_uint32(const void * source) ;static __inline uint32_t __nesc_hton_uint32(void * target, uint32_t value) ;#line 385typedef struct { unsigned char data[1]; } __attribute__((packed)) nx_int8_t;typedef int8_t __nesc_nxbase_nx_int8_t ;typedef struct { unsigned char data[2]; } __attribute__((packed)) nx_int16_t;typedef int16_t __nesc_nxbase_nx_int16_t ;typedef struct { unsigned char data[4]; } __attribute__((packed)) nx_int32_t;typedef int32_t __nesc_nxbase_nx_int32_t ;typedef struct { unsigned char data[8]; } __attribute__((packed)) nx_int64_t;typedef int64_t __nesc_nxbase_nx_int64_t ;typedef struct { unsigned char data[1]; } __attribute__((packed)) nx_uint8_t;typedef uint8_t __nesc_nxbase_nx_uint8_t ;typedef struct { unsigned char data[2]; } __attribute__((packed)) nx_uint16_t;typedef uint16_t __nesc_nxbase_nx_uint16_t ;typedef struct { unsigned char data[4]; } __attribute__((packed)) nx_uint32_t;typedef uint32_t __nesc_nxbase_nx_uint32_t ;typedef struct { unsigned char data[8]; } __attribute__((packed)) nx_uint64_t;typedef uint64_t __nesc_nxbase_nx_uint64_t ;typedef struct { unsigned char data[1]; } __attribute__((packed)) nxle_int8_t;typedef int8_t __nesc_nxbase_nxle_int8_t ;typedef struct { unsigned char data[2]; } __attribute__((packed)) nxle_int16_t;typedef int16_t __nesc_nxbase_nxle_int16_t ;typedef struct { unsigned char data[4]; } __attribute__((packed)) nxle_int32_t;typedef int32_t __nesc_nxbase_nxle_int32_t ;typedef struct { unsigned char data[8]; } __attribute__((packed)) nxle_int64_t;typedef int64_t __nesc_nxbase_nxle_int64_t ;typedef struct { unsigned char data[1]; } __attribute__((packed)) nxle_uint8_t;typedef uint8_t __nesc_nxbase_nxle_uint8_t ;typedef struct { unsigned char data[2]; } __attribute__((packed)) nxle_uint16_t;typedef uint16_t __nesc_nxbase_nxle_uint16_t ;typedef struct { unsigned char data[4]; } __attribute__((packed)) nxle_uint32_t;typedef uint32_t __nesc_nxbase_nxle_uint32_t ;typedef struct { unsigned char data[8]; } __attribute__((packed)) nxle_uint64_t;typedef uint64_t __nesc_nxbase_nxle_uint64_t ;# 116 "/usr/bin/../lib/gcc/avr/4.1.2/../../../../avr/include/string.h" 3extern void *memset(void *arg_0x40295c70, int arg_0x40295dc8, size_t arg_0x4029a010);# 71 "/usr/bin/../lib/gcc/avr/4.1.2/../../../../avr/include/stdlib.h" 3#line 68typedef struct __nesc_unnamed4242 { int quot; int rem;} div_t;#line 74typedef struct __nesc_unnamed4243 { long quot; long rem;} ldiv_t;typedef int (*__compar_fn_t)(const void *arg_0x402a75a0, const void *arg_0x402a7738);# 23 "/opt/tinyos-2.1.0/tos/system/tos.h"typedef uint8_t bool;enum __nesc_unnamed4244 {#line 24 FALSE = 0, TRUE = 1};typedef nx_int8_t nx_bool;uint16_t TOS_NODE_ID = 1;struct __nesc_attr_atmostonce {};#line 35struct __nesc_attr_atleastonce {};#line 36struct __nesc_attr_exactlyonce {};# 40 "/opt/tinyos-2.1.0/tos/types/TinyError.h"enum __nesc_unnamed4245 { SUCCESS = 0, FAIL = 1, ESIZE = 2, ECANCEL = 3, EOFF = 4, EBUSY = 5, EINVAL = 6, ERETRY = 7, ERESERVE = 8, EALREADY = 9, ENOMEM = 10, ENOACK = 11, ELAST = 11};typedef uint8_t error_t ;static inline error_t ecombine(error_t r1, error_t r2) ;# 57 "/usr/bin/../lib/gcc/avr/4.1.2/../../../../avr/include/avr/fuse.h" 3#line 52typedef struct __nesc_unnamed4246 { unsigned char low; unsigned char high; unsigned char extended;} __fuse_t;# 210 "/usr/bin/../lib/gcc/avr/4.1.2/../../../../avr/include/avr/pgmspace.h" 3typedef void prog_void __attribute((__progmem__)) ;typedef char prog_char __attribute((__progmem__)) ;typedef unsigned char prog_uchar __attribute((__progmem__)) ;typedef int8_t prog_int8_t __attribute((__progmem__)) ;typedef uint8_t prog_uint8_t __attribute((__progmem__)) ;typedef int16_t prog_int16_t __attribute((__progmem__)) ;typedef uint16_t prog_uint16_t __attribute((__progmem__)) ;typedef int32_t prog_int32_t __attribute((__progmem__)) ;typedef uint32_t prog_uint32_t __attribute((__progmem__)) ;typedef int64_t prog_int64_t __attribute((__progmem__)) ;typedef uint64_t prog_uint64_t __attribute((__progmem__)) ;# 25 "/opt/tinyos-2.1.0/tos/chips/atm128/atm128const.h"typedef uint8_t const_uint8_t __attribute((__progmem__)) ;typedef uint16_t const_uint16_t __attribute((__progmem__)) ;typedef uint32_t const_uint32_t __attribute((__progmem__)) ;typedef int8_t const_int8_t __attribute((__progmem__)) ;typedef int16_t const_int16_t __attribute((__progmem__)) ;typedef int32_t const_int32_t __attribute((__progmem__)) ;# 82 "/opt/tinyos-2.1.0/tos/chips/atm128/atm128hardware.h"static __inline void __nesc_enable_interrupt() ;static __inline void __nesc_disable_interrupt() ;typedef uint8_t __nesc_atomic_t;__nesc_atomic_t __nesc_atomic_start(void );void __nesc_atomic_end(__nesc_atomic_t original_SREG);#line 102__inline __nesc_atomic_t __nesc_atomic_start(void ) ;#line 112__inline void __nesc_atomic_end(__nesc_atomic_t original_SREG) ;typedef uint8_t mcu_power_t ;enum __nesc_unnamed4247 { ATM128_POWER_IDLE = 0, ATM128_POWER_ADC_NR = 1, ATM128_POWER_EXT_STANDBY = 2, ATM128_POWER_SAVE = 3, ATM128_POWER_STANDBY = 4, ATM128_POWER_DOWN = 5};static inline mcu_power_t mcombine(mcu_power_t m1, mcu_power_t m2) ;# 34 "/opt/tinyos-2.1.0/tos/chips/atm128/adc/Atm128Adc.h"enum __nesc_unnamed4248 { ATM128_ADC_VREF_OFF = 0, ATM128_ADC_VREF_AVCC = 1, ATM128_ADC_VREF_RSVD, ATM128_ADC_VREF_2_56 = 3};enum __nesc_unnamed4249 { ATM128_ADC_RIGHT_ADJUST = 0, ATM128_ADC_LEFT_ADJUST = 1};enum __nesc_unnamed4250 { ATM128_ADC_SNGL_ADC0 = 0, ATM128_ADC_SNGL_ADC1, ATM128_ADC_SNGL_ADC2, ATM128_ADC_SNGL_ADC3, ATM128_ADC_SNGL_ADC4, ATM128_ADC_SNGL_ADC5, ATM128_ADC_SNGL_ADC6, ATM128_ADC_SNGL_ADC7, ATM128_ADC_DIFF_ADC00_10x, ATM128_ADC_DIFF_ADC10_10x, ATM128_ADC_DIFF_ADC00_200x, ATM128_ADC_DIFF_ADC10_200x, ATM128_ADC_DIFF_ADC22_10x, ATM128_ADC_DIFF_ADC32_10x, ATM128_ADC_DIFF_ADC22_200x, ATM128_ADC_DIFF_ADC32_200x, ATM128_ADC_DIFF_ADC01_1x, ATM128_ADC_DIFF_ADC11_1x, ATM128_ADC_DIFF_ADC21_1x, ATM128_ADC_DIFF_ADC31_1x, ATM128_ADC_DIFF_ADC41_1x, ATM128_ADC_DIFF_ADC51_1x, ATM128_ADC_DIFF_ADC61_1x, ATM128_ADC_DIFF_ADC71_1x, ATM128_ADC_DIFF_ADC02_1x, ATM128_ADC_DIFF_ADC12_1x, ATM128_ADC_DIFF_ADC22_1x, ATM128_ADC_DIFF_ADC32_1x, ATM128_ADC_DIFF_ADC42_1x, ATM128_ADC_DIFF_ADC52_1x, ATM128_ADC_SNGL_1_23, ATM128_ADC_SNGL_GND};#line 85typedef struct __nesc_unnamed4251 { uint8_t mux : 5;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -