📄 app.c
字号:
ELAST = 11};typedef uint8_t error_t ;static inline error_t ecombine(error_t r1, error_t r2) ;# 39 "/usr/msp430/include/msp430/iostructures.h" 3#line 27typedef union port { volatile unsigned char reg_p; volatile struct __nesc_unnamed4249 { unsigned char __p0 : 1, __p1 : 1, __p2 : 1, __p3 : 1, __p4 : 1, __p5 : 1, __p6 : 1, __p7 : 1; } __pin;} __attribute((packed)) ioregister_t;#line 108struct port_full_t { ioregister_t in; ioregister_t out; ioregister_t dir; ioregister_t ifg; ioregister_t ies; ioregister_t ie; ioregister_t sel;};struct port_simple_t { ioregister_t in; ioregister_t out; ioregister_t dir; ioregister_t sel;};struct port_full_t;struct port_full_t;struct port_simple_t;struct port_simple_t;struct port_simple_t;struct port_simple_t;# 116 "/usr/msp430/include/msp430/gpio.h" 3volatile unsigned char P1OUT __asm ("0x0021");volatile unsigned char P1DIR __asm ("0x0022");volatile unsigned char P1IFG __asm ("0x0023");volatile unsigned char P1IES __asm ("0x0024");volatile unsigned char P1IE __asm ("0x0025");volatile unsigned char P1SEL __asm ("0x0026");volatile unsigned char P2OUT __asm ("0x0029");volatile unsigned char P2DIR __asm ("0x002A");volatile unsigned char P2IFG __asm ("0x002B");volatile unsigned char P2IE __asm ("0x002D");volatile unsigned char P2SEL __asm ("0x002E");volatile unsigned char P3OUT __asm ("0x0019");volatile unsigned char P3DIR __asm ("0x001A");volatile unsigned char P3SEL __asm ("0x001B");volatile unsigned char P4OUT __asm ("0x001D");volatile unsigned char P4DIR __asm ("0x001E");volatile unsigned char P4SEL __asm ("0x001F");volatile unsigned char P5OUT __asm ("0x0031");volatile unsigned char P5DIR __asm ("0x0032");volatile unsigned char P5SEL __asm ("0x0033");volatile unsigned char P6OUT __asm ("0x0035");volatile unsigned char P6DIR __asm ("0x0036");volatile unsigned char P6SEL __asm ("0x0037");# 92 "/usr/msp430/include/msp430/usart.h" 3volatile unsigned char U0CTL __asm ("0x0070");volatile unsigned char U0TCTL __asm ("0x0071");volatile unsigned char U0MCTL __asm ("0x0073");volatile unsigned char U0BR0 __asm ("0x0074");volatile unsigned char U0BR1 __asm ("0x0075");volatile unsigned char U0RXBUF __asm ("0x0076");#line 277volatile unsigned char U1TCTL __asm ("0x0079");# 27 "/usr/msp430/include/msp430/timera.h" 3volatile unsigned int TA0CTL __asm ("0x0160");volatile unsigned int TA0R __asm ("0x0170");volatile unsigned int TA0CCTL0 __asm ("0x0162");volatile unsigned int TA0CCTL1 __asm ("0x0164");#line 70volatile unsigned int TA0CCTL2 __asm ("0x0166");#line 127#line 118typedef struct __nesc_unnamed4250 { volatile unsigned taifg : 1, taie : 1, taclr : 1, dummy : 1, tamc : 2, taid : 2, tassel : 2;} __attribute((packed)) tactl_t;#line 143#line 129typedef struct __nesc_unnamed4251 { volatile unsigned ccifg : 1, cov : 1, out : 1, cci : 1, ccie : 1, outmod : 3, cap : 1, dummy : 1, scci : 1, scs : 1, ccis : 2, cm : 2;} __attribute((packed)) tacctl_t;struct timera_t { tactl_t ctl; tacctl_t cctl0; tacctl_t cctl1; tacctl_t cctl2; volatile unsigned dummy[4]; volatile unsigned tar; volatile unsigned taccr0; volatile unsigned taccr1; volatile unsigned taccr2;};struct timera_t;# 26 "/usr/msp430/include/msp430/timerb.h" 3volatile unsigned int TBR __asm ("0x0190");volatile unsigned int TBCCTL0 __asm ("0x0182");volatile unsigned int TBCCR0 __asm ("0x0192");#line 76#line 64typedef struct __nesc_unnamed4252 { volatile unsigned tbifg : 1, tbie : 1, tbclr : 1, dummy1 : 1, tbmc : 2, tbid : 2, tbssel : 2, dummy2 : 1, tbcntl : 2, tbclgrp : 2;} __attribute((packed)) tbctl_t;#line 91#line 78typedef struct __nesc_unnamed4253 { volatile unsigned ccifg : 1, cov : 1, out : 1, cci : 1, ccie : 1, outmod : 3, cap : 1, clld : 2, scs : 1, ccis : 2, cm : 2;} __attribute((packed)) tbcctl_t;struct timerb_t { tbctl_t ctl; tbcctl_t cctl0; tbcctl_t cctl1; tbcctl_t cctl2; tbcctl_t cctl3; tbcctl_t cctl4; tbcctl_t cctl5; tbcctl_t cctl6; volatile unsigned tbr; volatile unsigned tbccr0; volatile unsigned tbccr1; volatile unsigned tbccr2; volatile unsigned tbccr3; volatile unsigned tbccr4; volatile unsigned tbccr5; volatile unsigned tbccr6;};struct timerb_t;# 20 "/usr/msp430/include/msp430/basic_clock.h" 3volatile unsigned char DCOCTL __asm ("0x0056");volatile unsigned char BCSCTL1 __asm ("0x0057");volatile unsigned char BCSCTL2 __asm ("0x0058");# 18 "/usr/msp430/include/msp430/adc12.h" 3volatile unsigned int ADC12CTL0 __asm ("0x01A0");volatile unsigned int ADC12CTL1 __asm ("0x01A2");#line 42#line 30typedef struct __nesc_unnamed4254 { volatile unsigned adc12sc : 1, enc : 1, adc12tovie : 1, adc12ovie : 1, adc12on : 1, refon : 1, r2_5v : 1, msc : 1, sht0 : 4, sht1 : 4;} __attribute((packed)) adc12ctl0_t;#line 54#line 44typedef struct __nesc_unnamed4255 { volatile unsigned adc12busy : 1, conseq : 2, adc12ssel : 2, adc12div : 3, issh : 1, shp : 1, shs : 2, cstartadd : 4;} __attribute((packed)) adc12ctl1_t;#line 74#line 56typedef struct __nesc_unnamed4256 { volatile unsigned bit0 : 1, bit1 : 1, bit2 : 1, bit3 : 1, bit4 : 1, bit5 : 1, bit6 : 1, bit7 : 1, bit8 : 1, bit9 : 1, bit10 : 1, bit11 : 1, bit12 : 1, bit13 : 1, bit14 : 1, bit15 : 1;} __attribute((packed)) adc12xflg_t;struct adc12_t { adc12ctl0_t ctl0; adc12ctl1_t ctl1; adc12xflg_t ifg; adc12xflg_t ie; adc12xflg_t iv;};struct adc12_t;# 83 "/usr/msp430/include/msp430x16x.h" 3volatile unsigned char ME1 __asm ("0x0004");volatile unsigned char ME2 __asm ("0x0005");# 158 "/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h"static volatile uint8_t U0CTLnr __asm ("0x0070");static volatile uint8_t I2CTCTLnr __asm ("0x0071");static volatile uint8_t I2CDCTLnr __asm ("0x0072");#line 193typedef uint8_t mcu_power_t ;static inline mcu_power_t mcombine(mcu_power_t m1, mcu_power_t m2) ;enum __nesc_unnamed4257 { MSP430_POWER_ACTIVE = 0, MSP430_POWER_LPM0 = 1, MSP430_POWER_LPM1 = 2, MSP430_POWER_LPM2 = 3, MSP430_POWER_LPM3 = 4, MSP430_POWER_LPM4 = 5};static inline void __nesc_disable_interrupt(void ) ;static inline void __nesc_enable_interrupt(void ) ;typedef bool __nesc_atomic_t;__nesc_atomic_t __nesc_atomic_start(void );void __nesc_atomic_end(__nesc_atomic_t reenable_interrupts);__nesc_atomic_t __nesc_atomic_start(void ) ;void __nesc_atomic_end(__nesc_atomic_t reenable_interrupts) ;# 33 "/opt/tinyos-2.1.0/tos/platforms/telosb/hardware.h"static inline void TOSH_SET_SIMO0_PIN() ;#line 33static inline void TOSH_CLR_SIMO0_PIN() ;#line 33static inline void TOSH_MAKE_SIMO0_OUTPUT() ;static inline void TOSH_SET_UCLK0_PIN() ;#line 34static inline void TOSH_CLR_UCLK0_PIN() ;#line 34static inline void TOSH_MAKE_UCLK0_OUTPUT() ;#line 76enum __nesc_unnamed4258 { TOSH_HUMIDITY_ADDR = 5, TOSH_HUMIDTEMP_ADDR = 3, TOSH_HUMIDITY_RESET = 0x1E};static inline void TOSH_SET_FLASH_CS_PIN() ;#line 85static inline void TOSH_CLR_FLASH_CS_PIN() ;#line 85static inline void TOSH_MAKE_FLASH_CS_OUTPUT() ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -