Archelon msp430 Assembler     Version 1.60 2005/02/09      File C:\svn\MOOS\MSP430\Quadravox\mmcrfio\init.asm      Page 1

                     1 ; Archelon URCC C 3.20 2005/02/20
                     2 ; MSP430 CIF 2005/01/21
                     3 ; Compiled "C:\svn\MOOS\MSP430\Quadravox\mmcrfio\init.c" Thu Apr 07 21:34:35 2005
                     4 ; 
                     5     .dbgseg dbg_syms
0000                 6     .align 0x2
0000 6c69662e        7     .long 0x6c69662e
0004 00000065        8     .long 0x65
0008 00000001        9     .long 0x1
000c 00000000       10     .long 0x0
0010 0167fffe       11     .long 0x167fffe
0014 00000000       12     .long 0x0
0018 00000020       13     .long DBG5
001c 00000000       14     .long 0x0
0020 00000000       15     .long 0x0
0024 00000000       16     .long 0x0
                    17 ; __builtin__ unsigned short _BIS_SR(unsigned short);
                    18 ; __builtin__ unsigned short _BIC_SR(unsigned short);
                    19 ; __builtin__ unsigned short _BIS_SR_IRQ(unsigned short);
                    20 ; __builtin__ unsigned short _BIC_SR_IRQ(unsigned short);
                    21 ;  __builtin__ void _DINT(void);
                    22 ; __builtin__ void _EINT(void);
                    23 ; __builtin__ void _NOP(void);
                    24 ; __builtin__ void _OPC(const unsigned short op);
                    25 ; __builtin__ short _SWPB(short);  
                    26 ; __builtin__ long _SWPB_LONG(long);  
                    27 ; __builtin__ float _SWPB_FLOAT(float);  
                    28 ; sfrb    IE1               = (0x0000) ;
                    29 ; sfrb    IFG1              = (0x0002) ;
                    30 ; sfrb    ME1               = (0x0004) ;
                    31 ; sfrb    IE2               = (0x0001) ;
                    32 ; sfrb    IFG2              = (0x0003) ;
                    33 ; sfrb    ME2               = (0x0005) ;
                    34 ; sfrw    WDTCTL            = (0x0120) ;
                    35 ; sfrw    MPY               = (0x0130) ;
                    36 ; sfrw    MPYS              = (0x0132) ;
                    37 ; sfrw    MAC               = (0x0134) ;
                    38 ; sfrw    MACS              = (0x0136) ;
                    39 ; sfrw    OP2               = (0x0138) ;
                    40 ; sfrw    RESLO             = (0x013A) ;
                    41 ; sfrw    RESHI             = (0x013C) ;
                    42 ; const sfrw SUMEXT         = (0x013E) ;
                    43 ; const sfrb P1IN           = (0x0020) ;
                    44 ; sfrb    P1OUT             = (0x0021) ;
                    45 ; sfrb    P1DIR             = (0x0022) ;
                    46 ; sfrb    P1IFG             = (0x0023) ;
                    47 ; sfrb    P1IES             = (0x0024) ;
                    48 ; sfrb    P1IE              = (0x0025) ;
                    49 ; sfrb    P1SEL             = (0x0026) ;
                    50 ; const sfrb P2IN           = (0x0028) ;
                    51 ; sfrb    P2OUT             = (0x0029) ;
                    52 ; sfrb    P2DIR             = (0x002A) ;
                    53 ; sfrb    P2IFG             = (0x002B) ;
                    54 ; sfrb    P2IES             = (0x002C) ;
                    55 ; sfrb    P2IE              = (0x002D) ;
                    56 ; sfrb    P2SEL             = (0x002E) ;
                    57 ; const sfrb P3IN           = (0x0018) ;
                    58 ; sfrb    P3OUT             = (0x0019) ;
                    59 ; sfrb    P3DIR             = (0x001A) ;
                    60 ; sfrb    P3SEL             = (0x001B) ;
                    61 ; const sfrb P4IN           = (0x001C) ;
                    62 ; sfrb    P4OUT             = (0x001D) ;
                    63 ; sfrb    P4DIR             = (0x001E) ;
                    64 ; sfrb    P4SEL             = (0x001F) ;
                    65 ; const sfrb P5IN           = (0x0030) ;
                    66 ; sfrb    P5OUT             = (0x0031) ;
                    67 ; sfrb    P5DIR             = (0x0032) ;
                    68 ; sfrb    P5SEL             = (0x0033) ;
                    69 ; const sfrb P6IN           = (0x0034) ;
                    70 ; sfrb    P6OUT             = (0x0035) ;
                    71 ; sfrb    P6DIR             = (0x0036) ;
                    72 ; sfrb    P6SEL             = (0x0037) ;
                    73 ; sfrb    U0CTL             = (0x0070) ;
                    74 ; sfrb    U0TCTL            = (0x0071) ;
                    75 ; sfrb    U0RCTL            = (0x0072) ;
                    76 ; sfrb    U0MCTL            = (0x0073) ;
                    77 ; sfrb    U0BR0             = (0x0074) ;
                    78 ; sfrb    U0BR1             = (0x0075) ;
                    79 ; const sfrb U0RXBUF        = (0x0076) ;
                    80 ; sfrb    U0TXBUF           = (0x0077) ;
                    81 ; sfrb    U1CTL             = (0x0078) ;
                    82 ; sfrb    U1TCTL            = (0x0079) ;
                    83 ; sfrb    U1RCTL            = (0x007A) ;
                    84 ; sfrb    U1MCTL            = (0x007B) ;
                    85 ; sfrb    U1BR0             = (0x007C) ;
                    86 ; sfrb    U1BR1             = (0x007D) ;
                    87 ; const sfrb U1RXBUF        = (0x007E) ;
                    88 ; sfrb    U1TXBUF           = (0x007F) ;
                    89 ; const sfrw TAIV           = (0x012E) ;
                    90 ; sfrw    TACTL             = (0x0160) ;
                    91 ; sfrw    TACCTL0           = (0x0162) ;
                    92 ; sfrw    TACCTL1           = (0x0164) ;
                    93 ; sfrw    TACCTL2           = (0x0166) ;
                    94 ; sfrw    TAR               = (0x0170) ;
                    95 ; sfrw    TACCR0            = (0x0172) ;
                    96 ; sfrw    TACCR1            = (0x0174) ;
                    97 ; sfrw    TACCR2            = (0x0176) ;
                    98 ; const sfrw TBIV           = (0x011E) ;
                    99 ; sfrw    TBCTL             = (0x0180) ;
                   100 ; sfrw    TBCCTL0           = (0x0182) ;
                   101 ; sfrw    TBCCTL1           = (0x0184) ;
                   102 ; sfrw    TBCCTL2           = (0x0186) ;
                   103 ; sfrw    TBCCTL3           = (0x0188) ;
                   104 ; sfrw    TBCCTL4           = (0x018A) ;
                   105 ; sfrw    TBCCTL5           = (0x018C) ;
                   106 ; sfrw    TBCCTL6           = (0x018E) ;
                   107 ; sfrw    TBR               = (0x0190) ;
                   108 ; sfrw    TBCCR0            = (0x0192) ;
                   109 ; sfrw    TBCCR1            = (0x0194) ;
                   110 ; sfrw    TBCCR2            = (0x0196) ;
                   111 ; sfrw    TBCCR3            = (0x0198) ;
                   112 ; sfrw    TBCCR4            = (0x019A) ;
                   113 ; sfrw    TBCCR5            = (0x019C) ;
                   114 ; sfrw    TBCCR6            = (0x019E) ;
                   115 ; sfrb    DCOCTL            = (0x0056) ;
                   116 ; sfrb    BCSCTL1           = (0x0057) ;
                   117 ; sfrb    BCSCTL2           = (0x0058) ;
                   118 ; sfrw    FCTL1             = (0x0128) ;
                   119 ; sfrw    FCTL2             = (0x012A) ;
                   120 ; sfrw    FCTL3             = (0x012C) ;
                   121 ; sfrb    CACTL1            = (0x0059) ;
                   122 ; sfrb    CACTL2            = (0x005A) ;
                   123 ; sfrb    CAPD              = (0x005B) ;
                   124 ; sfrw    ADC12CTL0         = (0x01A0) ;
                   125 ; sfrw    ADC12CTL1         = (0x01A2) ;
                   126 ; sfrw    ADC12IFG          = (0x01A4) ;
                   127 ; sfrw    ADC12IE           = (0x01A6) ;
                   128 ; sfrw    ADC12IV           = (0x01A8) ;
                   129 ; sfrw    ADC12MEM0         = (0x0140) ;
                   130 ; sfrw    ADC12MEM1         = (0x0142) ;
                   131 ; sfrw    ADC12MEM2         = (0x0144) ;
                   132 ; sfrw    ADC12MEM3         = (0x0146) ;
                   133 ; sfrw    ADC12MEM4         = (0x0148) ;
                   134 ; sfrw    ADC12MEM5         = (0x014A) ;
                   135 ; sfrw    ADC12MEM6         = (0x014C) ;
                   136 ; sfrw    ADC12MEM7         = (0x014E) ;
                   137 ; sfrw    ADC12MEM8         = (0x0150) ;
                   138 ; sfrw    ADC12MEM9         = (0x0152) ;
                   139 ; sfrw    ADC12MEM10        = (0x0154) ;
                   140 ; sfrw    ADC12MEM11        = (0x0156) ;
                   141 ; sfrw    ADC12MEM12        = (0x0158) ;
                   142 ; sfrw    ADC12MEM13        = (0x015A) ;
                   143 ; sfrw    ADC12MEM14        = (0x015C) ;
                   144 ; sfrw    ADC12MEM15        = (0x015E) ;
                   145 ; sfrb    ADC12MCTL0        = (0x0080) ;
                   146 ; sfrb    ADC12MCTL1        = (0x0081) ;
                   147 ; sfrb    ADC12MCTL2        = (0x0082) ;
                   148 ; sfrb    ADC12MCTL3        = (0x0083) ;
                   149 ; sfrb    ADC12MCTL4        = (0x0084) ;
                   150 ; sfrb    ADC12MCTL5        = (0x0085) ;
                   151 ; sfrb    ADC12MCTL6        = (0x0086) ;
                   152 ; sfrb    ADC12MCTL7        = (0x0087) ;
                   153 ; sfrb    ADC12MCTL8        = (0x0088) ;
                   154 ; sfrb    ADC12MCTL9        = (0x0089) ;
                   155 ; sfrb    ADC12MCTL10       = (0x008A) ;
                   156 ; sfrb    ADC12MCTL11       = (0x008B) ;
                   157 ; sfrb    ADC12MCTL12       = (0x008C) ;
                   158 ; sfrb    ADC12MCTL13       = (0x008D) ;
                   159 ; sfrb    ADC12MCTL14       = (0x008E) ;
                   160 ; sfrb    ADC12MCTL15       = (0x008F) ;
                   161 ; typedef unsigned int size_t;
                   162 ; size_t size 2
                   163 ; typedef void *va_list;
                   164 ; va_list size 2
                   165 ; typedef void (*__appendfunc_ptr) (char, void *);
                   166 ; __appendfunc_ptr size 2
                   167 ; typedef struct {
                   168 ;   unsigned char *_base;
                   169 ;   unsigned char *_end;
                   170 ;   unsigned char *_ptr;
                   171 ;   long int       _seek;
                   172 ;   int            _cnt;
                   173 ;   short          _flag;
                   174 ;   char           _file;
                   175 ;   unsigned char  _nbf;
                   176 ; } FILE;
                   177 ; FILE size 16
                   178 ; int    sprintf( char *, const char *, ... );
                   179 ; int    snprintf( char *, size_t, const char *, ... );
                   180 ; int    sscanf( const char *, const char *, ... );
                   181 ; int    vsprintf( char *, const char *, va_list );
                   182 ; int    vsnprintf( char *, size_t, const char *, va_list );
                   183 ; int    __vpprintf( __appendfunc_ptr, void *, const char *, va_list );
                   184 ; int    __pprintf( __appendfunc_ptr, void *, const char *, ... );
                   185 ; typedef int boolean;
                   186 ; boolean size 2
                   187 ; enum {false = 0, true = 1};
                   188 ; enum {error = -1, success = 0};
                   189 ; int outfmtInit(void);
                   190 ; void outfmtSendAlarmInfo(int type, unsigned char alarms);
                   191 ; void outfmtSendPrompt(void);
                   192 ; void outfmtSendCrLf(void);
                   193 ; void outfmtSendVersion(char *);
                   194 ; void outfmtSendData(void);
                   195 ; void outfmtSendLevels(void);
                   196 ; void outfmtSendTime(int, int, int);
                   197 ; void outfmtSendDate(int, int, int);
                   198 ; void outfmtSendError(int);
                   199 ; int outfmtGetBuffer(char **, int *);
                   200 ; int outfmtSendBuffer(void);
                   201 ; typedef void (*eventHandler)(void);
                   202 ; eventHandler size 2
                   203 ; int eventqInit(void);
                   204 ; void eventqPut(int);
                   205 ; void eventqUrgentPut(int);
                   206 ; int eventqGet(void);
                   207 ; int eventqRegisterHandler(int evType, eventHandler handler);
                   208 ; int eventqGetHandler(int evType, eventHandler *pHandler);
                   209 ; void eventqProcessEvents(void);
                   210 ; typedef int (*commandHandler)(char *);
                   211 ; commandHandler size 2
                   212 ; int cmdparseInit(void);
                   213 ; void cmdparseShow(void);
                   214 ; int cmdparseAddCommand(char * pCmdStr, char * pSubCmdStr, commandHandler handler);
                   215 ; int cmdparseDoCommand(char * pCmdStr);
                   216 ; int cmdprocInit(void);
                   217 ; void cmdprocAccumulateChExt(char);
                   218 ; int versionInit(void);
                   219 ; void gpioInit(void);
                   220 ; void gpioSetLed(boolean);
                   221 ; void gpioSetAttn(boolean);
                   222 ; void gpioSetHiSide(boolean);
                   223 ; void gpioSetGfTest(boolean);
                   224 ; void gpioSetKvhPower(boolean);
                   225 ; void watchdogInit(void);
                   226 ; void rtcInit(void);
                   227 ; int pollInit(void);
                   228 ; void pollPeriodicTick(void);
                   229 ; typedef int (*sensorSampleMethod)(float *);
                   230 ; sensorSampleMethod size 2
                   231 ; typedef struct {
                   232 ;   unsigned char curState;
                   233 ;   unsigned char prevState;
                   234 ;   unsigned char flags;
                   235 ;   float levelHi;
                   236 ;   float levelLo;
                   237 ;   float lastValue;
                   238 ;   sensorSampleMethod method;
                   239 ; } sensorState;
                   240 ; sensorState size 18
                   241 ; int sensorInit(void);
                   242 ; int sensorRegisterSampleMethod(int sensorId, unsigned char flags, sensorSampleMethod method);
                   243 ; int sensorGetData(int sensorId, float * pValue);
                   244 ; int sensorGetLevel(int levelId, float * pLevel);
                   245 ; int sensorSetLevel(int levelId, float level);
                   246 ; int sensorTriggerAlarm(int sensorId);
                   247 ; typedef struct Timer {
                   248 ;   struct Timer *next;
                   249 ;   unsigned char flags;
                   250 ;   int period; 
                   251 ;   int delay; 
                   252 ;   int evType;
                   253 ;   } Timer, *pTimer;
                   254 ; Timer size 10
                   255 ; pTimer size 2
                   256 ; int timerInit(void);
                   257 ; pTimer timerCreate(unsigned char flags, int period, int evType);
                   258 ; void timerModify(pTimer modTimer, unsigned char flags, int period);
                   259 ; void timerCancel(pTimer cancelTimer);
                   260 ; int timerGetPeriodMs(void);
                   261 ; void timerShow(void);
                   262 ; int usart0Init(boolean spiMode);
                   263 ; boolean usart0GetTxIntEnable(void);
                   264 ; int usart0TxOne(char txCh);
                   265 ; int usart0RxOne(char *pRxCh);
                   266 ; int usart1Init(boolean spiMode);
                   267 ; boolean usart1GetTxIntEnable(void);
                   268 ; int usart1TxOne(char txCh);
                   269 ; int usart1RxOne(char *pRxCh);
                   270 ; void adc12Init(void);
                   271 ; int adc12ScanEnable(void);
                   272 ; int adc12ScanDisable(void);
                   273 ; int adc12GetKvh(unsigned int *pResult);
                   274 ; int adc12GetGfiHi(unsigned int *pResult);
                   275 ; int adc12GetGfiLo(unsigned int *pResult);
                   276 ; int timerbInit(void);
                   277 ; void timerbStart(void);
                   278 ; void timerbStop(void);
                   279 ; void SHT11_Init(void);
                   280 ; int SHT11_Temperature_In_Celsius(float* measurement);
                   281 ; int SHT11_Temperature_In_Fahrenheit(float* measurement);
                   282 ; int SHT11_True_Relative_Humidity(float* measurement, float temperature_in_celsius);
                   283 ; void SHT11_Init(void);
                   284 ; int SHT11_Temperature_In_Celsius(float* measurement);
                   285 ; int SHT11_Temperature_In_Fahrenheit(float* measurement);
                   286 ; int SHT11_True_Relative_Humidity(float* measurement, float temperature_in_celsius);
                   287 ; void M5535A_Init(void);
                   288 ; int M5535A_Pressure(float *pressure);
                   289 ; int gfiInit(void);
                   290 ; void kvhInit(void);
                   291 ; extern void skelSensorInit(int);
                   292 ; void processCommand(void);
                   293 ; void hwInit(void) 
                   294 DBG3:
0028 6e497768      295     .long 0x6e497768
002c 00007469      296     .long 0x7469
0030 00000000      297     .long _hwInit
0034 00000040      298     .long 0x40
0038 01020001      299     .long 0x1020001
003c 00000050      300     .long DBG1
0040 0000002c      301     .long DBG7-DBG8
0044 00000000      302     .long DBG9
0048 00000154      303     .long DBG6
004c 00000000      304     .long 0x0
                   305     .pseg init_code
                   306 DBG8:
                   307     .dbgseg dbg_syms
                   308 DBG1:
0050 0066622e      309     .long 0x66622e
0054 00000000      310     .long 0x0
0058 00000000      311     .long DBG8
005c 00000000      312     .long 0x0
0060 01650001      313     .long 0x1650001
0064 00000000      314     .long 0x0
0068 00000031      315     .long 0x31
006c 00000000      316     .long 0x0
0070 0000017c      317     .long DBG10
0074 00000000      318     .long 0x0
                   319     .dbgseg dbg_line
0000               320     .align 0x2
                   321 DBG9:
0000 00000028      322     .long DBG3
0004 00000000      323     .long 0x0
0008 00000000      324     .long _hwInit
000c 00000001      325     .long 0x1
0010 00000000      326     .long DBG12
0014 00000002      327     .long 0x2
0018 00000000      328     .long DBG13
001c 00000005      329     .long 0x5
0020 00000006      330     .long DBG14
0024 00000006      331     .long 0x6
0028 0000000c      332     .long DBG15
002c 00000008      333     .long 0x8
0030 0000000c      334     .long DBG17
0034 00000009      335     .long 0x9
0038 00000012      336     .long DBG18
003c 0000000a      337     .long 0xa
0040 0000001e      338     .long DBG19
0044 0000000b      339     .long 0xb
0048 00000024      340     .long DBG20
004c 0000000d      341     .long 0xd
0050 0000002a      342     .long DBG21
0054 0000000f      343     .long 0xf
                   344     .pseg init_code
                   345     .global _hwInit
                   346 _hwInit:
                   347 ; ENTRY
                   348 DBG11:
                   349 ; i in reg  size 2
                   350 ; {
                   351 DBG12:
                   352 ;   int i;
                   353 ;   WDTCTL = (0x5A00)  + (0x0080) ;             
                   354 DBG13:
0000 b240805a2001  355     mov #0x5a80,&0x120
                   356 DBG14:
                   357 ;   BCSCTL1 &= ~ (0x80) ;                   
0006 f2f07f005700  358     and.b   #0x7f,&0x57
                   359 DBG15:
                   360 ;   do {
                   361 hwInit_L2:
                   362 DBG16:
                   363 ;     IFG1 &= ~ (0x02) ;                     
                   364 DBG17:
000c f2f0fd000200  365     and.b   #0xfd,&0x2
                   366 DBG18:
                   367 ;     for (i = 0xFF; i > 0; i--);         
0012 3c40ff00      368     mov #0xff,r12
                   369 hwInit_L3:
0016 1c83          370     sub #0x1,r12
0018 0d43          371     mov #0x0,r13
001a 0d9c          372     cmp r12,r13
001c fc3b          373     jl  hwInit_L3
                   374 DBG19:
001e e2b30200      375     bit.b   #0x2,&0x2
0022 f423          376     jne hwInit_L2
                   377 hwInit_L1:
                   378 ;   } while ((IFG1 & (0x02) ) != 0);        
                   379 ;   BCSCTL2 |= (0x80)  + (0x08) ;              
                   380 DBG20:
0024 f2d088005800  381     bis.b   #0x88,&0x58
                   382 DBG22:
                   383 DBG21:
                   384 ; EXIT
002a 3041          385     ret
                   386     .dbgseg dbg_syms
0078 00000000      387     .long 0x0
007c 00000014      388     .long DBG23
0080 00000000      389     .long 0x0
0084 00000000      390     .long 0x0
0088 00010002      391     .long 0x10002
008c 00000000      392     .long 0x0
0090 0000006c      393     .long DBG24
0094 00000002      394     .long 0x2
0098 00000000      395     .long 0x0
009c 00010002      396     .long 0x10002
00a0 504e5f5f      397     .long 0x504e5f5f
00a4 534d5241      398     .long 0x534d5241
00a8 00000000      399     .long 0x0
00ac 00000000      400     .long 0x0
00b0 00010002      401     .long 0x10002
                   402 DBG2:
00b4 0062622e      403     .long 0x62622e
00b8 00000000      404     .long 0x0
00bc 0000001e      405     .long DBG19
00c0 00000000      406     .long 0x0
00c4 01640001      407     .long 0x1640001
00c8 00000000      408     .long 0x0
00cc 0000000b      409     .long 0xb
00d0 00000000      410     .long 0x0
00d4 000004b0      411     .long DBG25
00d8 00000000      412     .long 0x0
00dc 00000069      413     .long 0x69
00e0 00000000      414     .long 0x0
00e4 000c0102      415     .long 0xc0102
00e8 00000004      416     .long 0x4
00ec 0004ffff      417     .long 0x4ffff
00f0 0062652e      418     .long 0x62652e
00f4 00000000      419     .long 0x0
00f8 0000002a      420     .long DBG21
00fc 00000000      421     .long 0x0
0100 01640001      422     .long 0x1640001
0104 00000000      423     .long 0x0
0108 0000000f      424     .long 0xf
010c 00000000      425     .long 0x0
0110 00000000      426     .long 0x0
0114 00000000      427     .long 0x0
0118 0066652e      428     .long 0x66652e
011c 00000000      429     .long 0x0
0120 0000002a      430     .long DBG22
0124 00000000      431     .long 0x0
0128 01650001      432     .long 0x1650001
012c 00000000      433     .long 0x0
0130 0000003f      434     .long 0x3f
0134 00000000      435     .long 0x0
0138 00000000      436     .long 0x0
013c 00000000      437     .long 0x0
                   438     .pseg init_code
                   439 DBG7:
                   440     .dbgseg dbg_syms
0140 6e497768      441     .long 0x6e497768
0144 00007469      442     .long 0x7469
0148 0000002c      443     .long DBG7
014c 00000000      444     .long 0x0
0150 00ff0001      445     .long 0xff0001
                   446 ; }
                   447 ; void main(void)
                   448 DBG6:
0154 6e69616d      449     .long 0x6e69616d
0158 00000000      450     .long 0x0
015c 0000002c      451     .long _main
0160 00000040      452     .long 0x40
0164 01020001      453     .long 0x1020001
0168 0000017c      454     .long DBG10
016c 00000064      455     .long DBG27-DBG28
0170 00000058      456     .long DBG29
0174 000004b0      457     .long DBG26
0178 00000000      458     .long 0x0
                   459     .pseg init_code
                   460 DBG28:
                   461     .dbgseg dbg_syms
                   462 DBG10:
017c 0066622e      463     .long 0x66622e
0180 00000000      464     .long 0x0
0184 0000002c      465     .long DBG28
0188 00000000      466     .long 0x0
018c 01650001      467     .long 0x1650001
0190 00000000      468     .long 0x0
0194 00000041      469     .long 0x41
0198 00000000      470     .long 0x0
019c 000004b0      471     .long DBG30
01a0 00000000      472     .long 0x0
                   473     .dbgseg dbg_line
                   474 DBG29:
0058 00000154      475     .long DBG6
005c 00000000      476     .long 0x0
0060 0000002c      477     .long _main
0064 00000001      478     .long 0x1
0068 0000002c      479     .long DBG32
006c 00000002      480     .long 0x2
0070 0000002c      481     .long DBG33
0074 00000006      482     .long 0x6
0078 00000030      483     .long DBG34
007c 00000007      484     .long 0x7
0080 00000034      485     .long DBG35
0084 00000008      486     .long 0x8
0088 00000038      487     .long DBG36
008c 00000009      488     .long 0x9
0090 00000040      489     .long DBG37
0094 0000000b      490     .long 0xb
0098 00000046      491     .long DBG38
009c 0000000d      492     .long 0xd
00a0 0000004a      493     .long DBG39
00a4 0000000e      494     .long 0xe
00a8 0000004e      495     .long DBG40
00ac 0000000f      496     .long 0xf
00b0 00000052      497     .long DBG41
00b4 00000010      498     .long 0x10
00b8 00000056      499     .long DBG42
00bc 00000011      500     .long 0x11
00c0 0000005a      501     .long DBG43
00c4 00000012      502     .long 0x12
00c8 0000005e      503     .long DBG44
00cc 00000013      504     .long 0x13
00d0 00000062      505     .long DBG45
00d4 0000001a      506     .long 0x1a
00d8 00000066      507     .long DBG46
00dc 0000001b      508     .long 0x1b
00e0 0000006a      509     .long DBG47
00e4 0000001f      510     .long 0x1f
00e8 0000006e      511     .long DBG48
00ec 00000023      512     .long 0x23
00f0 00000072      513     .long DBG49
00f4 00000027      514     .long 0x27
00f8 00000076      515     .long DBG50
00fc 00000028      516     .long 0x28
0100 0000007a      517     .long DBG51
0104 00000029      518     .long 0x29
0108 0000007e      519     .long DBG52
010c 0000002c      520     .long 0x2c
0110 00000082      521     .long DBG53
0114 0000002e      522     .long 0x2e
0118 00000086      523     .long DBG54
011c 00000030      524     .long 0x30
0120 00000086      525     .long DBG56
0124 00000031      526     .long 0x31
0128 0000008a      527     .long DBG57
012c 00000036      528     .long 0x36
0130 0000008c      529     .long DBG58
0134 00000039      530     .long 0x39
                   531     .pseg init_code
                   532     .global _main
                   533 _main:
                   534 ; ENTRY
                   535 DBG31:
                   536 ; {
                   537 DBG32:
                   538 ;   int dummy;
                   539 ;   hwInit();
                   540 DBG33:
002c b0120000      541     call    #_hwInit
                   542 DBG34:
                   543 ;   gpioInit();
0030 b0120000      544     call    #_gpioInit
                   545 DBG35:
                   546 ;   eventqInit();
0034 b0120000      547     call    #_eventqInit
                   548 DBG36:
                   549 ;   usart0Init(false);
0038 0443          550     mov #0x0,r4
003a 0c44          551     mov r4,r12
003c b0120000      552     call    #_usart0Init
                   553 DBG37:
                   554 ;   usart1Init(false);
0040 0c44          555     mov r4,r12
0042 b0120000      556     call    #_usart1Init
                   557 DBG38:
                   558 ;   cmdprocInit();
0046 b0120000      559     call    #_cmdprocInit
                   560 DBG39:
                   561 ;   cmdparseInit();
004a b0120000      562     call    #_cmdparseInit
                   563 DBG40:
                   564 ;   outfmtInit();
004e b0120000      565     call    #_outfmtInit
                   566 DBG41:
                   567 ;   versionInit();
0052 b0120000      568     call    #_versionInit
                   569 DBG42:
                   570 ;   watchdogInit();
0056 b0120000      571     call    #_watchdogInit
                   572 DBG43:
                   573 ;   timerInit();
005a b0120000      574     call    #_timerInit
                   575 DBG44:
                   576 ;   sensorInit();
005e b0120000      577     call    #_sensorInit
                   578 DBG45:
                   579 ;   SHT11_Init();
0062 b0120000      580     call    #_SHT11_Init
                   581 DBG46:
                   582 ;   M5535A_Init();
0066 b0120000      583     call    #_M5535A_Init
                   584 DBG47:
                   585 ;   kvhInit();
006a b0120000      586     call    #_kvhInit
                   587 DBG48:
                   588 ;   gfiInit();
006e b0120000      589     call    #_gfiInit
                   590 DBG49:
                   591 ;   adc12Init();
0072 b0120000      592     call    #_adc12Init
                   593 DBG50:
                   594 ;   timerbInit();
0076 b0120000      595     call    #_timerbInit
                   596 DBG51:
                   597 ;   adc12ScanEnable();
007a b0120000      598     call    #_adc12ScanEnable
                   599 DBG52:
                   600 ;   pollInit();
007e b0120000      601     call    #_pollInit
                   602 DBG53:
                   603 ;   outfmtSendPrompt();
0082 b0120000      604     call    #_outfmtSendPrompt
                   605 DBG54:
                   606 ;   while(1) {
                   607 main_L1:
                   608 DBG55:
                   609 ;     eventqProcessEvents();
                   610 DBG56:
0086 b0120000      611     call    #_eventqProcessEvents
                   612 DBG57:
                   613 ;     _NOP();
008a 0343          614     nop
                   615 DBG58:
008c fc3f          616     jmp main_L1
                   617 DBG61:
                   618 DBG60:
                   619 ; EXIT
                   620 ; .temp0 at stkloc 0 (0x0) size 2
008e 3041          621     ret
                   622     .dbgseg dbg_syms
01a4 00000000      623     .long 0x0
01a8 00000014      624     .long DBG23
01ac 00000002      625     .long 0x2
01b0 00000000      626     .long 0x0
01b4 00010002      627     .long 0x10002
01b8 00000000      628     .long 0x0
01bc 0000006c      629     .long DBG24
01c0 00000002      630     .long 0x2
01c4 00000000      631     .long 0x0
01c8 00010002      632     .long 0x10002
01cc 504e5f5f      633     .long 0x504e5f5f
01d0 534d5241      634     .long 0x534d5241
01d4 00000000      635     .long 0x0
01d8 00000000      636     .long 0x0
01dc 00010002      637     .long 0x10002
01e0 0066652e      638     .long 0x66652e
01e4 00000000      639     .long 0x0
01e8 0000008e      640     .long DBG61
01ec 00000000      641     .long 0x0
01f0 01650001      642     .long 0x1650001
01f4 00000000      643     .long 0x0
01f8 0000007a      644     .long 0x7a
01fc 00000000      645     .long 0x0
0200 00000000      646     .long 0x0
0204 00000000      647     .long 0x0
                   648     .pseg init_code
                   649 DBG27:
                   650     .dbgseg dbg_syms
0208 6e69616d      651     .long 0x6e69616d
020c 00000000      652     .long 0x0
0210 00000090      653     .long DBG27
0214 00000000      654     .long 0x0
0218 00ff0001      655     .long 0xff0001
                   656 ; }
                   657 ; ****** Warning: Symbol ``dummy'' (function main) was defined, but not used
                   658     .extern _gpioInit
                   659     .extern _cmdparseInit
                   660     .extern _SHT11_Init
                   661     .extern _watchdogInit
                   662     .extern _eventqProcessEvents
                   663     .extern _eventqInit
                   664     .extern _gfiInit
                   665     .extern _pollInit
                   666     .extern _outfmtSendPrompt
                   667     .extern _sensorInit
                   668     .extern _M5535A_Init
                   669     .extern _usart0Init
                   670     .extern _outfmtInit
                   671     .extern _usart1Init
                   672     .extern _timerInit
                   673     .extern _timerbInit
                   674     .extern _adc12ScanEnable
                   675     .extern _versionInit
                   676     .extern _cmdprocInit
                   677     .extern _kvhInit
                   678     .extern _adc12Init
                   679 _0fake_1:
                   680 DBG4:
021c 6166305f      681     .long 0x6166305f
0220 315f656b      682     .long 0x315f656b
0224 00000000      683     .long 0x0
0228 00000008      684     .long 0x8
022c 010afffe      685     .long 0x10afffe
0230 00000000      686     .long 0x0
0234 00100000      687     .long 0x100000
0238 00000000      688     .long 0x0
023c 0000030c      689     .long DBG62
0240 00000000      690     .long 0x0
0244 7361625f      691     .long 0x7361625f
0248 00000065      692     .long 0x65
024c 00000000      693     .long 0x0
0250 0000002c      694     .long 0x2c
0254 0008ffff      695     .long 0x8ffff
0258 646e655f      696     .long 0x646e655f
025c 00000000      697     .long 0x0
0260 00000002      698     .long 0x2
0264 0000002c      699     .long 0x2c
0268 0008ffff      700     .long 0x8ffff
026c 7274705f      701     .long 0x7274705f
0270 00000000      702     .long 0x0
0274 00000004      703     .long 0x4
0278 0000002c      704     .long 0x2c
027c 0008ffff      705     .long 0x8ffff
0280 6565735f      706     .long 0x6565735f
0284 0000006b      707     .long 0x6b
0288 00000006      708     .long 0x6
028c 00000005      709     .long 0x5
0290 0008ffff      710     .long 0x8ffff
0294 746e635f      711     .long 0x746e635f
0298 00000000      712     .long 0x0
029c 0000000a      713     .long 0xa
02a0 00000004      714     .long 0x4
02a4 0008ffff      715     .long 0x8ffff
02a8 616c665f      716     .long 0x616c665f
02ac 00000067      717     .long 0x67
02b0 0000000c      718     .long 0xc
02b4 00000003      719     .long 0x3
02b8 0008ffff      720     .long 0x8ffff
02bc 6c69665f      721     .long 0x6c69665f
02c0 00000065      722     .long 0x65
02c4 0000000e      723     .long 0xe
02c8 00000002      724     .long 0x2
02cc 0008ffff      725     .long 0x8ffff
02d0 66626e5f      726     .long 0x66626e5f
02d4 00000000      727     .long 0x0
02d8 0000000f      728     .long 0xf
02dc 0000000c      729     .long 0xc
02e0 0008ffff      730     .long 0x8ffff
02e4 736f652e      731     .long 0x736f652e
02e8 00000000      732     .long 0x0
02ec 00000010      733     .long 0x10
02f0 00000000      734     .long 0x0
02f4 0166ffff      735     .long 0x166ffff
02f8 0000021c      736     .long DBG4
02fc 00100000      737     .long 0x100000
0300 00000000      738     .long 0x0
0304 00000000      739     .long 0x0
0308 00000000      740     .long 0x0
                   741 Timer_2:
                   742 DBG62:
030c 656d6954      743     .long 0x656d6954
0310 00325f72      744     .long 0x325f72
0314 00000000      745     .long 0x0
0318 00000008      746     .long 0x8
031c 010afffe      747     .long 0x10afffe
0320 00000000      748     .long 0x0
0324 000a0000      749     .long 0xa0000
0328 00000000      750     .long 0x0
032c 000003d4      751     .long DBG63
0330 00000000      752     .long 0x0
0334 7478656e      753     .long 0x7478656e
0338 00000000      754     .long 0x0
033c 00000000      755     .long 0x0
0340 00000028      756     .long 0x28
0344 0108ffff      757     .long 0x108ffff
0348 0000030c      758     .long Timer_2
034c 0000000a      759     .long 0xa
0350 00000000      760     .long 0x0
0354 00000000      761     .long 0x0
0358 00000000      762     .long 0x0
035c 67616c66      763     .long 0x67616c66
0360 00000073      764     .long 0x73
0364 00000002      765     .long 0x2
0368 0000000c      766     .long 0xc
036c 0008ffff      767     .long 0x8ffff
0370 69726570      768     .long 0x69726570
0374 0000646f      769     .long 0x646f
0378 00000004      770     .long 0x4
037c 00000004      771     .long 0x4
0380 0008ffff      772     .long 0x8ffff
0384 616c6564      773     .long 0x616c6564
0388 00000079      774     .long 0x79
038c 00000006      775     .long 0x6
0390 00000004      776     .long 0x4
0394 0008ffff      777     .long 0x8ffff
0398 79547665      778     .long 0x79547665
039c 00006570      779     .long 0x6570
03a0 00000008      780     .long 0x8
03a4 00000004      781     .long 0x4
03a8 0008ffff      782     .long 0x8ffff
03ac 736f652e      783     .long 0x736f652e
03b0 00000000      784     .long 0x0
03b4 0000000a      785     .long 0xa
03b8 00000000      786     .long 0x0
03bc 0166ffff      787     .long 0x166ffff
03c0 0000030c      788     .long DBG62
03c4 000a0000      789     .long 0xa0000
03c8 00000000      790     .long 0x0
03cc 00000000      791     .long 0x0
03d0 00000000      792     .long 0x0
                   793 _3fake_3:
                   794 DBG63:
03d4 6166335f      795     .long 0x6166335f
03d8 335f656b      796     .long 0x335f656b
03dc 00000000      797     .long 0x0
03e0 00000008      798     .long 0x8
03e4 010afffe      799     .long 0x10afffe
03e8 00000000      800     .long 0x0
03ec 00120000      801     .long 0x120000
03f0 00000000      802     .long 0x0
03f4 000004b0      803     .long DBG64
03f8 00000000      804     .long 0x0
03fc 53727563      805     .long 0x53727563
0400 65746174      806     .long 0x65746174
0404 00000000      807     .long 0x0
0408 0000000c      808     .long 0xc
040c 0008ffff      809     .long 0x8ffff
0410 00000000      810     .long 0x0
0414 000000b0      811     .long DBG65
0418 00000001      812     .long 0x1
041c 0000000c      813     .long 0xc
0420 0008ffff      814     .long 0x8ffff
0424 67616c66      815     .long 0x67616c66
0428 00000073      816     .long 0x73
042c 00000002      817     .long 0x2
0430 0000000c      818     .long 0xc
0434 0008ffff      819     .long 0x8ffff
0438 6576656c      820     .long 0x6576656c
043c 0069486c      821     .long 0x69486c
0440 00000004      822     .long 0x4
0444 00000006      823     .long 0x6
0448 0008ffff      824     .long 0x8ffff
044c 6576656c      825     .long 0x6576656c
0450 006f4c6c      826     .long 0x6f4c6c
0454 00000008      827     .long 0x8
0458 00000006      828     .long 0x6
045c 0008ffff      829     .long 0x8ffff
0460 00000000      830     .long 0x0
0464 0000004c      831     .long DBG66
0468 0000000c      832     .long 0xc
046c 00000006      833     .long 0x6
0470 0008ffff      834     .long 0x8ffff
0474 6874656d      835     .long 0x6874656d
0478 0000646f      836     .long 0x646f
047c 00000010      837     .long 0x10
0480 000002a4      838     .long 0x2a4
0484 0008ffff      839     .long 0x8ffff
0488 736f652e      840     .long 0x736f652e
048c 00000000      841     .long 0x0
0490 00000012      842     .long 0x12
0494 00000000      843     .long 0x0
0498 0166ffff      844     .long 0x166ffff
049c 000003d4      845     .long DBG63
04a0 00120000      846     .long 0x120000
04a4 00000000      847     .long 0x0
04a8 00000000      848     .long 0x0
04ac 00000000      849     .long 0x0
                   850 DBG30:
                   851 DBG25:
                   852 DBG26:
                   853 DBG64:
04b0 00007073      854     .long 0x7073
04b4 00000000      855     .long 0x0
04b8 00000001      856     .long 0x1
04bc 00000000      857     .long 0x0
04c0 016cfffe      858     .long 0x16cfffe
04c4 00000000      859     .long 0x0
04c8 00100001      860     .long 0x100001
04cc 00000000      861     .long 0x0
04d0 00000000      862     .long 0x0
04d4 00000000      863     .long 0x0
04d8 00000052      864     .long 0x52
04dc 00000000      865     .long 0x0
04e0 00000002      866     .long 0x2
04e4 00000000      867     .long 0x0
04e8 016cfffe      868     .long 0x16cfffe
04ec 00000000      869     .long 0x0
04f0 00100010      870     .long 0x100010
04f4 00000000      871     .long 0x0
04f8 00000000      872     .long 0x0
04fc 00000000      873     .long 0x0
0500 00000000      874     .long 0x0
0504 00000004      875     .long DBG67
0508 00000000      876     .long 0x0
050c 000002a0      877     .long 0x2a0
0510 000dfffe      878     .long 0xdfffe
0514 6c6f6f62      879     .long 0x6c6f6f62
0518 006e6165      880     .long 0x6e6165
051c 00000000      881     .long 0x0
0520 00000004      882     .long 0x4
0524 000dfffe      883     .long 0xdfffe
0528 454c4946      884     .long 0x454c4946
052c 00000000      885     .long 0x0
0530 00000000      886     .long 0x0
0534 00000008      887     .long 0x8
0538 010dfffe      888     .long 0x10dfffe
053c 0000021c      889     .long _0fake_1
0540 00000010      890     .long 0x10
0544 00000000      891     .long 0x0
0548 00000000      892     .long 0x0
054c 00000000      893     .long 0x0
0550 656d6954      894     .long 0x656d6954
0554 00000072      895     .long 0x72
0558 00000000      896     .long 0x0
055c 00000008      897     .long 0x8
0560 010dfffe      898     .long 0x10dfffe
0564 0000030c      899     .long Timer_2
0568 0000000a      900     .long 0xa
056c 00000000      901     .long 0x0
0570 00000000      902     .long 0x0
0574 00000000      903     .long 0x0
0578 657a6973      904     .long 0x657a6973
057c 0000745f      905     .long 0x745f
0580 00000000      906     .long 0x0
0584 0000000e      907     .long 0xe
0588 000dfffe      908     .long 0xdfffe
058c 6d695470      909     .long 0x6d695470
0590 00007265      910     .long 0x7265
0594 00000000      911     .long 0x0
0598 00000028      912     .long 0x28
059c 010dfffe      913     .long 0x10dfffe
05a0 0000030c      914     .long Timer_2
05a4 0000000a      915     .long 0xa
05a8 00000000      916     .long 0x0
05ac 00000000      917     .long 0x0
05b0 00000000      918     .long 0x0
05b4 6c5f6176      919     .long 0x6c5f6176
05b8 00747369      920     .long 0x747369
05bc 00000000      921     .long 0x0
05c0 00000020      922     .long 0x20
05c4 000dfffe      923     .long 0xdfffe
05c8 00000000      924     .long 0x0
05cc 00000058      925     .long DBG68
05d0 00000000      926     .long 0x0
05d4 000002a0      927     .long 0x2a0
05d8 000dfffe      928     .long 0xdfffe
05dc 00000000      929     .long 0x0
05e0 00000080      930     .long DBG69
05e4 00000000      931     .long 0x0
05e8 00000008      932     .long 0x8
05ec 010dfffe      933     .long 0x10dfffe
05f0 000003d4      934     .long _3fake_3
05f4 00000012      935     .long 0x12
05f8 00000000      936     .long 0x0
05fc 00000000      937     .long 0x0
0600 00000000      938     .long 0x0
0604 00000000      939     .long 0x0
0608 0000009c      940     .long DBG70
060c 00000000      941     .long 0x0
0610 000002a4      942     .long 0x2a4
0614 000dfffe      943     .long 0xdfffe
0618 00000000      944     .long 0x0
061c 0000008c      945     .long DBG71
0620 00000000      946     .long 0x0
0624 000002a4      947     .long 0x2a4
0628 000dfffe      948     .long 0xdfffe
062c 666f652e      949     .long 0x666f652e
0630 00000000      950     .long 0x0
0634 00000000      951     .long 0x0
0638 00000000      952     .long 0x0
063c 0067fffe      953     .long 0x67fffe
                   954     .dbgseg dbg_strs
0000               955     .align 0x2
0000 000000bc      956     .long 0xbc
                   957 DBG67:
0004 6576656e      958     .long 0x6576656e
0008 7448616e      959     .long 0x7448616e
000c 646c6572      960     .long 0x646c6572
0010 00000000      961     .long 0x0
                   962 DBG23:
0014 5f5f4652      963     .long 0x5f5f4652
0018 414d4553      964     .long 0x414d4553
001c 495a4500      965     .long 0x495a4500
                   966 DBG5:
0020 433a5c73      967     .long 0x433a5c73
0024 766e5c4d      968     .long 0x766e5c4d
0028 4f4f535c      969     .long 0x4f4f535c
002c 4d535034      970     .long 0x4d535034
0030 33305c51      971     .long 0x33305c51
0034 75616472      972     .long 0x75616472
0038 61766f78      973     .long 0x61766f78
003c 5c6d6d63      974     .long 0x5c6d6d63
0040 7266696f      975     .long 0x7266696f
0044 5c696e69      976     .long 0x5c696e69
0048 742e6300      977     .long 0x742e6300
                   978 DBG66:
004c 6c617374      979     .long 0x6c617374
0050 56616c75      980     .long 0x56616c75
0054 65000000      981     .long 0x65000000
                   982 DBG68:
0058 5f5f6170      983     .long 0x5f5f6170
005c 70656e64      984     .long 0x70656e64
0060 66756e63      985     .long 0x66756e63
0064 5f707472      986     .long 0x5f707472
0068 00000000      987     .long 0x0
                   988 DBG24:
006c 5f5f5341      989     .long 0x5f5f5341
0070 5645445f      990     .long 0x5645445f
0074 41524753      991     .long 0x41524753
0078 5f53495a      992     .long 0x5f53495a
007c 45000000      993     .long 0x45000000
                   994 DBG69:
0080 73656e73      995     .long 0x73656e73
0084 6f725374      996     .long 0x6f725374
0088 61746500      997     .long 0x61746500
                   998 DBG71:
008c 636f6d6d      999     .long 0x636f6d6d
0090 616e6448     1000     .long 0x616e6448
0094 616e646c     1001     .long 0x616e646c
0098 65720000     1002     .long 0x65720000
                  1003 DBG70:
009c 73656e73     1004     .long 0x73656e73
00a0 6f725361     1005     .long 0x6f725361
00a4 6d706c65     1006     .long 0x6d706c65
00a8 4d657468     1007     .long 0x4d657468
00ac 6f640000     1008     .long 0x6f640000
                  1009 DBG65:
00b0 70726576     1010     .long 0x70726576
00b4 53746174     1011     .long 0x53746174
00b8 65000000     1012     .long 0x65000000
