📄 app.c
字号:
# 38 "/usr/local/mspgcc/msp430/include/sys/inttypes.h"typedef signed char int8_t;typedef unsigned char uint8_t;typedef int int16_t;typedef unsigned int uint16_t;typedef long int32_t;typedef unsigned long uint32_t;typedef long long int64_t;typedef unsigned long long uint64_t;typedef int16_t intptr_t;typedef uint16_t uintptr_t;# 151 "/usr/local/mspgcc/lib/gcc-lib/msp430/3.2.3/include/stddef.h" 3typedef int ptrdiff_t;#line 213typedef unsigned int size_t;#line 325typedef int wchar_t;# 41 "/usr/local/mspgcc/msp430/include/sys/types.h"typedef unsigned char u_char;typedef unsigned short u_short;typedef unsigned int u_int;typedef unsigned long u_long;typedef unsigned short ushort;typedef unsigned int uint;typedef uint8_t u_int8_t;typedef uint16_t u_int16_t;typedef uint32_t u_int32_t;typedef uint64_t u_int64_t;typedef u_int64_t u_quad_t;typedef int64_t quad_t;typedef quad_t *qaddr_t;typedef char *caddr_t;typedef const char *c_caddr_t;typedef volatile char *v_caddr_t;typedef u_int32_t fixpt_t;typedef u_int32_t gid_t;typedef u_int32_t in_addr_t;typedef u_int16_t in_port_t;typedef u_int32_t ino_t;typedef long key_t;typedef u_int16_t mode_t;typedef u_int16_t nlink_t;typedef quad_t rlim_t;typedef int32_t segsz_t;typedef int32_t swblk_t;typedef int32_t ufs_daddr_t;typedef int32_t ufs_time_t;typedef u_int32_t uid_t;# 48 "/usr/local/mspgcc/msp430/include/string.h"extern size_t strlen(const char *);# 56 "/usr/local/mspgcc/msp430/include/stdlib.h"typedef struct __nesc_unnamed4242 { int quot; int rem;} div_t;typedef struct __nesc_unnamed4243 { long quot; long rem;} ldiv_t;# 122 "/usr/local/mspgcc/msp430/include/sys/config.h" 3typedef long int __int32_t;typedef unsigned long int __uint32_t;# 12 "/usr/local/mspgcc/msp430/include/sys/_types.h"typedef long _off_t;typedef long _ssize_t;# 28 "/usr/local/mspgcc/msp430/include/sys/reent.h" 3typedef __uint32_t __ULong;struct _glue { struct _glue *_next; int _niobs; struct __sFILE *_iobs;};struct _Bigint { struct _Bigint *_next; int _k, _maxwds, _sign, _wds; __ULong _x[1];};struct __tm { int __tm_sec; int __tm_min; int __tm_hour; int __tm_mday; int __tm_mon; int __tm_year; int __tm_wday; int __tm_yday; int __tm_isdst;};struct _atexit { struct _atexit *_next; int _ind; void (*_fns[32])(void );};struct __sbuf { unsigned char *_base; int _size;};typedef long _fpos_t;#line 116struct __sFILE { unsigned char *_p; int _r; int _w; short _flags; short _file; struct __sbuf _bf; int _lbfsize; void *_cookie; int (*_read)(void *_cookie, char *_buf, int _n); int (*_write)(void *_cookie, const char *_buf, int _n); _fpos_t (*_seek)(void *_cookie, _fpos_t _offset, int _whence); int (*_close)(void *_cookie); struct __sbuf _ub; unsigned char *_up; int _ur; unsigned char _ubuf[3]; unsigned char _nbuf[1]; struct __sbuf _lb; int _blksize; int _offset; struct _reent *_data;};#line 174struct _rand48 { unsigned short _seed[3]; unsigned short _mult[3]; unsigned short _add;};struct _reent { int _errno; struct __sFILE *_stdin, *_stdout, *_stderr; int _inc; char _emergency[25]; int _current_category; const char *_current_locale; int __sdidinit; void (*__cleanup)(struct _reent *); struct _Bigint *_result; int _result_k; struct _Bigint *_p5s; struct _Bigint **_freelist; int _cvtlen; char *_cvtbuf; union __nesc_unnamed4244 { struct __nesc_unnamed4245 { unsigned int _unused_rand; char *_strtok_last; char _asctime_buf[26]; struct __tm _localtime_buf; int _gamma_signgam; __extension__ unsigned long long _rand_next; struct _rand48 _r48; } _reent; struct __nesc_unnamed4246 { unsigned char *_nextf[30]; unsigned int _nmalloc[30]; } _unused; } _new; struct _atexit *_atexit; struct _atexit _atexit0; void (**_sig_func)(int ); struct _glue __sglue; struct __sFILE __sf[3];};#line 273struct _reent;# 18 "/usr/local/mspgcc/msp430/include/math.h"union __dmath { __uint32_t i[2]; double d;};union __dmath;#line 208struct exception { int type; char *name; double arg1; double arg2; double retval; int err;};#line 261enum __fdlibm_version { __fdlibm_ieee = -1, __fdlibm_svid, __fdlibm_xopen, __fdlibm_posix};enum __fdlibm_version;# 91 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/tos.h"typedef unsigned char bool;enum __nesc_unnamed4247 { FALSE = 0, TRUE = 1};uint16_t TOS_LOCAL_ADDRESS = 1;enum __nesc_unnamed4248 { FAIL = 0, SUCCESS = 1};static inline uint8_t rcombine(uint8_t r1, uint8_t r2);typedef uint8_t result_t;static inline result_t rcombine(result_t r1, result_t r2);static inline #line 133result_t rcombine4(result_t r1, result_t r2, result_t r3, result_t r4);enum __nesc_unnamed4249 { NULL = 0x0};# 27 "/usr/local/mspgcc/msp430/include/msp430/iostructures.h"typedef union port { volatile unsigned char reg_p; volatile struct __nesc_unnamed4250 { unsigned char __p0 : 1, __p1 : 1, __p2 : 1, __p3 : 1, __p4 : 1, __p5 : 1, __p6 : 1, __p7 : 1; } __pin;} __attribute((packed)) ioregister_t;# 106 "/usr/local/mspgcc/msp430/include/msp430/iostructures.h" 3struct 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;# 103 "/usr/local/mspgcc/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");# 85 "/usr/local/mspgcc/msp430/include/msp430/usart.h"volatile 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");volatile unsigned char U0TXBUF __asm ("0x0077");#line 121volatile unsigned char UCTL0 __asm ("0x0070");#line 253volatile unsigned char U1CTL __asm ("0x0078");volatile unsigned char U1TCTL __asm ("0x0079");volatile unsigned char U1RCTL __asm ("0x007A");volatile unsigned char U1MCTL __asm ("0x007B");volatile unsigned char U1BR0 __asm ("0x007C");volatile unsigned char U1BR1 __asm ("0x007D");volatile unsigned char U1RXBUF __asm ("0x007E");volatile unsigned char U1TXBUF __asm ("0x007F");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -