📄 app.c
字号:
result_t SenseM$StdControl$start(void);static inline #line 112result_t SenseM$Timer$fired(void);static inline result_t SenseM$ADC$dataReady(uint16_t data);# 50 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"uint8_t LedsC$ledsOn;enum LedsC$__nesc_unnamed4263 { LedsC$RED_BIT = 1, LedsC$GREEN_BIT = 2, LedsC$YELLOW_BIT = 4};static inline result_t LedsC$Leds$init(void);static inline #line 72result_t LedsC$Leds$redOn(void);static inline result_t LedsC$Leds$redOff(void);static inline #line 101result_t LedsC$Leds$greenOn(void);static inline 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_0xa31a8c8);static #line 153uint8_t TimerM$Clock$readCounter(void);static #line 96result_t TimerM$Clock$setRate(char arg_0xa31fcc8, char arg_0xa31fe08);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_0xa301bf0);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_unnamed4264 { TimerM$maxTimerInterval = 230};static result_t TimerM$StdControl$init(void);static inline result_t TimerM$StdControl$start(void);static result_t TimerM$Timer$start(uint8_t id, char type, uint32_t interval);#line 129static void TimerM$adjustInterval(void);static #line 168result_t TimerM$Timer$stop(uint8_t id);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_unnamed4265 { 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);static # 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t PhotoTempM$PhotoTempTimer$start(char arg_0xa2cc150, uint32_t arg_0xa2cc2a8);static result_t PhotoTempM$PhotoTempTimer$stop(void);static # 52 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t PhotoTempM$InternalTempADC$getData(void);static # 89 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADCControl.nc"result_t PhotoTempM$ADCControl$bindPort(uint8_t arg_0xa3d40e8, uint8_t arg_0xa3d4230);static #line 50result_t PhotoTempM$ADCControl$init(void);static # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t PhotoTempM$TimerControl$init(void);static # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t PhotoTempM$ExternalTempADC$dataReady(uint16_t arg_0xa2df1b8);static #line 70result_t PhotoTempM$ExternalPhotoADC$dataReady(uint16_t arg_0xa2df1b8);static #line 52result_t PhotoTempM$InternalPhotoADC$getData(void);# 111 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc"enum PhotoTempM$__nesc_unnamed4266 { PhotoTempM$sensorIdle = 0, PhotoTempM$sensorPhotoStarting, PhotoTempM$sensorPhotoReady, PhotoTempM$sensorTempStarting, PhotoTempM$sensorTempReady} PhotoTempM$hardwareStatus;typedef enum PhotoTempM$__nesc_unnamed4267 { PhotoTempM$stateIdle = 0, PhotoTempM$stateReadOnce, PhotoTempM$stateContinuous} PhotoTempM$SensorState_t;PhotoTempM$SensorState_t PhotoTempM$photoSensor;PhotoTempM$SensorState_t PhotoTempM$tempSensor;bool PhotoTempM$waitingForSample;static inline result_t PhotoTempM$PhotoStdControl$init(void);static inline result_t PhotoTempM$PhotoStdControl$start(void);static #line 183void PhotoTempM$getSample(void);static inline #line 291result_t PhotoTempM$PhotoTempTimer$fired(void);static inline #line 329result_t PhotoTempM$ExternalPhotoADC$getData(void);static inline #line 357result_t PhotoTempM$InternalPhotoADC$dataReady(uint16_t data);static inline #line 375result_t PhotoTempM$ExternalTempADC$default$dataReady(uint16_t data);static inline result_t PhotoTempM$InternalTempADC$dataReady(uint16_t data);static # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"result_t ADCM$HPLADC$bindPort(uint8_t arg_0xa407d88, uint8_t arg_0xa407ed0);static #line 91result_t ADCM$HPLADC$sampleStop(void);static #line 54result_t ADCM$HPLADC$init(void);static #line 77result_t ADCM$HPLADC$samplePort(uint8_t arg_0xa3fe3f0);static # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t ADCM$ADC$dataReady(# 54 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/ADCM.nc"uint8_t arg_0xa3f1e40, # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa2df1b8);# 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/ADCM.nc"enum ADCM$__nesc_unnamed4268 { ADCM$IDLE = 0, ADCM$SINGLE_CONVERSION = 1, ADCM$CONTINUOUS_CONVERSION = 2};uint16_t ADCM$ReqPort;uint16_t ADCM$ReqVector;uint16_t ADCM$ContReqMask;static inline result_t ADCM$ADCControl$init(void);static inline #line 87result_t ADCM$ADCControl$bindPort(uint8_t port, uint8_t adcPort);static inline result_t ADCM$ADC$default$dataReady(uint8_t port, uint16_t data);static result_t ADCM$HPLADC$dataReady(uint16_t data);static #line 132__inline result_t ADCM$startGet(uint8_t newState, uint8_t port);static inline #line 165result_t ADCM$ADC$getData(uint8_t port);static # 99 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"result_t HPLADCC$ADC$dataReady(uint16_t arg_0xa3fef18);# 57 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLADCC.nc"bool HPLADCC$init_portmap_done;enum HPLADCC$__nesc_unnamed4269 { HPLADCC$TOSH_ADC_PORTMAPSIZE = 10};uint8_t HPLADCC$TOSH_adc_portmap[HPLADCC$TOSH_ADC_PORTMAPSIZE];static void HPLADCC$init_portmap(void);static inline #line 76result_t HPLADCC$ADC$init(void);static inline #line 96result_t HPLADCC$ADC$bindPort(uint8_t port, uint8_t adcPort);static #line 109result_t HPLADCC$ADC$samplePort(uint8_t port);static inline #line 125result_t HPLADCC$ADC$sampleStop(void);void __attribute((signal)) __vector_21(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();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -