📄 app.c
字号:
result_t LedsC$Leds$greenOff(void);static inline #line 130result_t LedsC$Leds$yellowOn(void);static inline result_t LedsC$Leds$yellowOff(void);static # 41 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/PowerManagement.nc"uint8_t TimerM$PowerManagement$adjustPower(void);static # 105 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"void TimerM$Clock$setInterval(uint8_t arg_0xa32aed0);static #line 153uint8_t TimerM$Clock$readCounter(void);static #line 96result_t TimerM$Clock$setRate(char arg_0xa32a3d0, char arg_0xa32a510);static #line 121uint8_t TimerM$Clock$getInterval(void);static # 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t TimerM$Timer$fired(# 49 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/TimerM.nc"uint8_t arg_0xa308e70);uint32_t TimerM$mState;uint8_t TimerM$setIntervalFlag;uint8_t TimerM$mScale;#line 61uint8_t TimerM$mInterval;int8_t TimerM$queue_head;int8_t TimerM$queue_tail;uint8_t TimerM$queue_size;uint8_t TimerM$queue[NUM_TIMERS];volatile uint16_t TimerM$interval_outstanding;struct TimerM$timer_s { uint8_t type; int32_t ticks; int32_t ticksLeft;} TimerM$mTimerList[NUM_TIMERS];enum TimerM$__nesc_unnamed4260 { TimerM$maxTimerInterval = 230};static inline result_t TimerM$StdControl$init(void);static inline result_t TimerM$StdControl$start(void);static inline result_t TimerM$Timer$start(uint8_t id, char type, uint32_t interval);#line 129static void TimerM$adjustInterval(void);static inline #line 182result_t TimerM$Timer$default$fired(uint8_t id);static inline void TimerM$enqueue(uint8_t value);static inline uint8_t TimerM$dequeue(void);static inline void TimerM$signalOneTimer(void);static inline void TimerM$HandleFire(void);static inline #line 253result_t TimerM$Clock$fire(void);static # 180 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"result_t HPLClock$Clock$fire(void);# 54 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc"uint8_t HPLClock$set_flag;uint8_t HPLClock$mscale;#line 55uint8_t HPLClock$nextScale;#line 55uint8_t HPLClock$minterval;static inline #line 87void HPLClock$Clock$setInterval(uint8_t value);static inline uint8_t HPLClock$Clock$getInterval(void);static inline #line 134uint8_t HPLClock$Clock$readCounter(void);static inline #line 149result_t HPLClock$Clock$setRate(char interval, char scale);#line 167void __attribute((interrupt)) __vector_15(void);# 51 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc"bool HPLPowerManagementM$disabled = TRUE;enum HPLPowerManagementM$__nesc_unnamed4261 { HPLPowerManagementM$IDLE = 0, HPLPowerManagementM$ADC_NR = 1 << 3, HPLPowerManagementM$POWER_SAVE = (1 << 3) + (1 << 4), HPLPowerManagementM$POWER_DOWN = 1 << 3};static inline uint8_t HPLPowerManagementM$getPowerLevel(void);static inline #line 85void HPLPowerManagementM$doAdjustment(void);static #line 103uint8_t HPLPowerManagementM$PowerManagement$adjustPower(void);# 101 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_SET_ONE_WIRE_PIN(void)#line 101{#line 101 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x03 + 0x20) |= 1 << 5;}#line 101static __inline void TOSH_MAKE_ONE_WIRE_INPUT(void)#line 101{#line 101 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x02 + 0x20) &= ~(1 << 5);}#line 65static __inline void TOSH_SET_BOOST_ENABLE_PIN(void)#line 65{#line 65 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x03 + 0x20) |= 1 << 4;}#line 65static __inline void TOSH_MAKE_BOOST_ENABLE_OUTPUT(void)#line 65{#line 65 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x02 + 0x20) |= 1 << 4;}#line 67static __inline void TOSH_MAKE_FLASH_SELECT_INPUT(void)#line 67{#line 67 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x17 + 0x20) &= ~(1 << 0);}#line 64static __inline void TOSH_SET_POT_POWER_PIN(void)#line 64{#line 64 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x03 + 0x20) |= 1 << 7;}static __inline void TOSH_MAKE_RFM_TXD_OUTPUT(void)#line 77{#line 77 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x17 + 0x20) |= 1 << 3;}#line 79static __inline void TOSH_MAKE_RFM_CTL1_OUTPUT(void)#line 79{#line 79 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 6;}#line 78static __inline void TOSH_MAKE_RFM_CTL0_OUTPUT(void)#line 78{#line 78 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 7;}static __inline void TOSH_MAKE_PW0_OUTPUT(void)#line 81{#line 81 ;}#line 82static __inline void TOSH_MAKE_PW1_OUTPUT(void)#line 82{#line 82 ;}#line 83static __inline void TOSH_MAKE_PW2_OUTPUT(void)#line 83{#line 83 ;}#line 84static __inline void TOSH_MAKE_PW3_OUTPUT(void)#line 84{#line 84 ;}#line 85static __inline void TOSH_MAKE_PW4_OUTPUT(void)#line 85{#line 85 ;}#line 86static __inline void TOSH_MAKE_PW5_OUTPUT(void)#line 86{#line 86 ;}#line 87static __inline void TOSH_MAKE_PW6_OUTPUT(void)#line 87{#line 87 ;}#line 88static __inline void TOSH_MAKE_PW7_OUTPUT(void)#line 88{#line 88 ;}#line 64static __inline void TOSH_MAKE_POT_POWER_OUTPUT(void)#line 64{#line 64 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x02 + 0x20) |= 1 << 7;}#line 63static __inline void TOSH_MAKE_POT_SELECT_OUTPUT(void)#line 63{#line 63 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 5;}static inline #line 103void TOSH_SET_PIN_DIRECTIONS(void ){ * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1A + 0x20) = 0x00; * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x17 + 0x20) = 0x00; * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) = 0x00; * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x02 + 0x20) = 0x02; * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x03 + 0x20) = 0x02; TOSH_MAKE_POT_SELECT_OUTPUT(); TOSH_MAKE_POT_POWER_OUTPUT(); TOSH_MAKE_PW7_OUTPUT(); TOSH_MAKE_PW6_OUTPUT(); TOSH_MAKE_PW5_OUTPUT(); TOSH_MAKE_PW4_OUTPUT(); TOSH_MAKE_PW3_OUTPUT(); TOSH_MAKE_PW2_OUTPUT(); TOSH_MAKE_PW1_OUTPUT(); TOSH_MAKE_PW0_OUTPUT(); TOSH_MAKE_RFM_CTL0_OUTPUT(); TOSH_MAKE_RFM_CTL1_OUTPUT(); TOSH_MAKE_RFM_TXD_OUTPUT(); TOSH_SET_POT_POWER_PIN(); TOSH_MAKE_FLASH_SELECT_INPUT(); TOSH_MAKE_BOOST_ENABLE_OUTPUT(); TOSH_SET_BOOST_ENABLE_PIN(); TOSH_MAKE_ONE_WIRE_INPUT(); TOSH_SET_ONE_WIRE_PIN();}static inline # 57 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc"result_t HPLInit$init(void)#line 57{ TOSH_SET_PIN_DIRECTIONS(); return SUCCESS;}# 47 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc"inline static result_t RealMain$hardwareInit(void){#line 47 unsigned char result;#line 47#line 47 result = HPLInit$init();#line 47#line 47 return result;#line 47}#line 47# 62 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_SET_INC_PIN(void)#line 62{#line 62 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) |= 1 << 2;}#line 61static __inline void TOSH_SET_UD_PIN(void)#line 61{#line 61 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) |= 1 << 1;}static inline # 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLPotC.nc"result_t HPLPotC$Pot$finalise(void)#line 74{ TOSH_SET_UD_PIN(); TOSH_SET_INC_PIN(); return SUCCESS;}# 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"inline static result_t PotM$HPLPot$finalise(void){#line 74 unsigned char result;#line 74#line 74 result = HPLPotC$Pot$finalise();#line 74#line 74 return result;#line 74}#line 74# 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_SET_POT_SELECT_PIN(void)#line 63{#line 63 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x12 + 0x20) |= 1 << 5;}#line 62static __inline void TOSH_CLR_INC_PIN(void)#line 62{#line 62 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) &= ~(1 << 2);}#line 63static __inline void TOSH_CLR_POT_SELECT_PIN(void)#line 63{#line 63 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x12 + 0x20) &= ~(1 << 5);}#line 61static __inline void TOSH_CLR_UD_PIN(void)#line 61{#line 61 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) &= ~(1 << 1);}static inline # 65 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLPotC.nc"result_t HPLPotC$Pot$increase(void)#line 65{ TOSH_CLR_UD_PIN(); TOSH_CLR_POT_SELECT_PIN(); TOSH_SET_INC_PIN(); TOSH_CLR_INC_PIN(); TOSH_SET_POT_SELECT_PIN(); return SUCCESS;}# 67 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"inline static result_t PotM$HPLPot$increase(void){#line 67 unsigned char result;#line 67#line 67 result = HPLPotC$Pot$increase();#line 67#line 67 return result;#line 67}#line 67static inline # 56 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLPotC.nc"result_t HPLPotC$Pot$decrease(void)#line 56{ TOSH_SET_UD_PIN(); TOSH_CLR_POT_SELECT_PIN(); TOSH_SET_INC_PIN(); TOSH_CLR_INC_PIN(); TOSH_SET_POT_SELECT_PIN(); return SUCCESS;}# 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"inline static result_t PotM$HPLPot$decrease(void){#line 59 unsigned char result;#line 59#line 59 result = HPLPotC$Pot$decrease();#line 59#line 59 return result;#line 59}#line 59static inline # 93 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/PotM.nc"void PotM$setPot(uint8_t value)#line 93{ uint8_t i;#line 95 for (i = 0; i < 151; i++) PotM$HPLPot$decrease(); for (i = 0; i < value; i++) PotM$HPLPot$increase(); PotM$HPLPot$finalise(); PotM$potSetting = value;}static inline result_t PotM$Pot$init(uint8_t initialSetting)#line 106{ PotM$setPot(initialSetting); return SUCCESS;}# 78 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Pot.nc"inline static result_t RealMain$Pot$init(uint8_t arg_0xa285b58){#line 78 unsigned char result;#line 78#line 78 result = PotM$Pot$init(arg_0xa285b58);#line 78#line 78 return result;#line 78}#line 78static inline # 83 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/sched.c"void TOSH_sched_init(void ){ int i;#line 86 TOSH_sched_free = 0; TOSH_sched_full = 0; for (i = 0; i < TOSH_MAX_TASKS; i++) TOSH_queue[i].tp = (void *)0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -