📄 app.c
字号:
; TimerM$mTimerList[i].ticksLeft = TimerM$mInterval; } } } } } { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 247 int_out = TimerM$interval_outstanding;#line 247 __nesc_atomic_end(__nesc_atomic); } if (int_out == 0) { TimerM$adjustInterval(); }}static inline result_t TimerM$Clock$fire(void)#line 253{ { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 254 { if (TimerM$interval_outstanding == 0) { TOS_post(TimerM$HandleFire); } else { }#line 261 ; TimerM$interval_outstanding += TimerM$Clock$getInterval() + 1; }#line 264 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 180 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"inline static result_t HPLClock$Clock$fire(void){#line 180 unsigned char result;#line 180#line 180 result = TimerM$Clock$fire();#line 180#line 180 return result;#line 180}#line 180# 83 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_SET_PW2_PIN(void)#line 83{#line 83 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x15 + 0x20) |= 1 << 2;}#line 72static __inline void TOSH_SET_INT1_PIN(void)#line 72{#line 72 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x12 + 0x20) |= 1 << 1;}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_SET_PHOTO_CTL_PIN(void)#line 73{#line 73 TOSH_SET_INT1_PIN();}# 72 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_MAKE_INT1_OUTPUT(void)#line 72{#line 72 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 1;}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_MAKE_PHOTO_CTL_OUTPUT(void)#line 73{#line 73 TOSH_MAKE_INT1_OUTPUT();}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_CLR_INT2_PIN(void)#line 73{#line 73 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x12 + 0x20) &= ~(1 << 2);}# 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_CLR_TEMP_CTL_PIN(void)#line 74{#line 74 TOSH_CLR_INT2_PIN();}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_MAKE_INT2_INPUT(void)#line 73{#line 73 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) &= ~(1 << 2);}# 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_MAKE_TEMP_CTL_INPUT(void)#line 74{#line 74 TOSH_MAKE_INT2_INPUT();}# 68 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"inline static result_t PhotoTempM$PhotoTempTimer$stop(void){#line 68 unsigned char result;#line 68#line 68 result = TimerM$Timer$stop(1);#line 68#line 68 return result;#line 68}#line 68# 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"inline static result_t PhotoTempM$PhotoTempTimer$start(char arg_0xa2cc150, uint32_t arg_0xa2cc2a8){#line 59 unsigned char result;#line 59#line 59 result = TimerM$Timer$start(1, arg_0xa2cc150, arg_0xa2cc2a8);#line 59#line 59 return result;#line 59}#line 59# 72 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_CLR_INT1_PIN(void)#line 72{#line 72 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x12 + 0x20) &= ~(1 << 1);}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_CLR_PHOTO_CTL_PIN(void)#line 73{#line 73 TOSH_CLR_INT1_PIN();}# 72 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_MAKE_INT1_INPUT(void)#line 72{#line 72 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) &= ~(1 << 1);}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_MAKE_PHOTO_CTL_INPUT(void)#line 73{#line 73 TOSH_MAKE_INT1_INPUT();}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_SET_INT2_PIN(void)#line 73{#line 73 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x12 + 0x20) |= 1 << 2;}# 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_SET_TEMP_CTL_PIN(void)#line 74{#line 74 TOSH_SET_INT2_PIN();}# 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_MAKE_INT2_OUTPUT(void)#line 73{#line 73 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 2;}# 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"static __inline void TOSH_MAKE_TEMP_CTL_OUTPUT(void)#line 74{#line 74 TOSH_MAKE_INT2_OUTPUT();}# 99 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"inline static result_t HPLADCC$ADC$dataReady(uint16_t arg_0xa3fef18){#line 99 unsigned char result;#line 99#line 99 result = ADCM$HPLADC$dataReady(arg_0xa3fef18);#line 99#line 99 return result;#line 99}#line 99static # 172 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h"__inline void __nesc_enable_interrupt(void)#line 172{ __asm volatile ("sei");}# 131 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLADCC.nc"void __attribute((signal)) __vector_21(void)#line 131{ uint16_t data = * (volatile unsigned int *)(unsigned int )& * (volatile unsigned char *)(0x04 + 0x20); __nesc_enable_interrupt(); HPLADCC$ADC$dataReady(data);}static inline #line 125result_t HPLADCC$ADC$sampleStop(void)#line 125{ * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x06 + 0x20) &= ~(1 << 7); return SUCCESS;}# 91 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"inline static result_t ADCM$HPLADC$sampleStop(void){#line 91 unsigned char result;#line 91#line 91 result = HPLADCC$ADC$sampleStop();#line 91#line 91 return result;#line 91}#line 91static inline # 375 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc"result_t PhotoTempM$ExternalTempADC$default$dataReady(uint16_t data)#line 375{ return SUCCESS;}# 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"inline static result_t PhotoTempM$ExternalTempADC$dataReady(uint16_t arg_0xa2df1b8){#line 70 unsigned char result;#line 70#line 70 result = PhotoTempM$ExternalTempADC$default$dataReady(arg_0xa2df1b8);#line 70#line 70 return result;#line 70}#line 70static inline # 379 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc"result_t PhotoTempM$InternalTempADC$dataReady(uint16_t data)#line 379{ { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 380 { PhotoTempM$waitingForSample = FALSE; switch (PhotoTempM$tempSensor) { default: case PhotoTempM$stateIdle: case PhotoTempM$stateReadOnce: PhotoTempM$tempSensor = PhotoTempM$stateIdle; break; case PhotoTempM$stateContinuous: break; }#line 391 ; }#line 392 __nesc_atomic_end(__nesc_atomic); }#line 392 ; TOS_post(PhotoTempM$getSample); return PhotoTempM$ExternalTempADC$dataReady(data);}static inline # 81 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"result_t LedsC$Leds$redOff(void)#line 81{ { }#line 82 ; { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 83 { TOSH_SET_RED_LED_PIN(); LedsC$ledsOn &= ~LedsC$RED_BIT; }#line 86 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 72 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"inline static result_t SenseM$Leds$redOff(void){#line 72 unsigned char result;#line 72#line 72 result = LedsC$Leds$redOff();#line 72#line 72 return result;#line 72}#line 72# 57 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_CLR_RED_LED_PIN(void)#line 57{#line 57 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) &= ~(1 << 2);}static inline # 72 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"result_t LedsC$Leds$redOn(void)#line 72{ { }#line 73 ; { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 74 { TOSH_CLR_RED_LED_PIN(); LedsC$ledsOn |= LedsC$RED_BIT; }#line 77 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 64 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"inline static result_t SenseM$Leds$redOn(void){#line 64 unsigned char result;#line 64#line 64 result = LedsC$Leds$redOn();#line 64#line 64 return result;#line 64}#line 64static inline # 110 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"result_t LedsC$Leds$greenOff(void)#line 110{ { }#line 111 ; { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 112 { TOSH_SET_GREEN_LED_PIN(); LedsC$ledsOn &= ~LedsC$GREEN_BIT; }#line 115 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 97 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"inline static result_t SenseM$Leds$greenOff(void){#line 97 unsigned char result;#line 97#line 97 result = LedsC$Leds$greenOff();#line 97#line 97 return result;#line 97}#line 97# 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_CLR_GREEN_LED_PIN(void)#line 59{#line 59 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) &= ~(1 << 1);}static inline # 101 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"result_t LedsC$Leds$greenOn(void)#line 101{ { }#line 102 ; { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 103 { TOSH_CLR_GREEN_LED_PIN(); LedsC$ledsOn |= LedsC$GREEN_BIT; }#line 106 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 89 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"inline static result_t SenseM$Leds$greenOn(void){#line 89 unsigned char result;#line 89#line 89 result = LedsC$Leds$greenOn();#line 89#line 89 return result;#line 89}#line 89static inline # 139 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"result_t LedsC$Leds$yellowOff(void)#line 139{ { }#line 140 ; { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 141 { TOSH_SET_YELLOW_LED_PIN(); LedsC$ledsOn &= ~LedsC$YELLOW_BIT; }#line 144 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 122 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"inline static result_t SenseM$Leds$yellowOff(void){#line 122 unsigned char result;#line 122#line 122 result = LedsC$Leds$yellowOff();#line 122#line 122 return result;#line 122}#line 122# 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/hardware.h"static __inline void TOSH_CLR_YELLOW_LED_PIN(void)#line 58{#line 58 * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) &= ~(1 << 0);}static inline # 130 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"result_t LedsC$Leds$yellowOn(void)#line 130{ { }#line 131 ; { __nesc_atomic_t __nesc_atomic = __nesc_atomic_start();#line 132 { TOSH_CLR_YELLOW_LED_PIN(); LedsC$ledsOn |= LedsC$YELLOW_BIT; }#line 135 __nesc_atomic_end(__nesc_atomic); } return SUCCESS;}# 114 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"inline static result_t SenseM$Leds$yellowOn(void){#line 114 unsigned char result;#line 114#line 114 result = LedsC$Leds$yellowOn();#line 114#line 114 return result;#line 114}#line 114static inline # 70 "SenseM.nc"result_t SenseM$display(uint16_t value){ if (value & 1) {#line 72 SenseM$Leds$yellowOn(); } else {#line 73 SenseM$Leds$yellowOff(); }#line 74 if (value & 2) {#line 74 SenseM$Le
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -