;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.0.0 #6037 (Oct 31 2010) (Linux) ; This file was generated Sun Feb 26 03:56:09 2012 ;-------------------------------------------------------- .module radio_com .optsdcc -mmcs51 --model-medium ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _radioComRxEnforceOrdering .globl _radioComInit .globl _radioComRxAvailable .globl _radioComRxReceiveByte .globl _radioComRxControlSignals .globl _radioComTxService .globl _radioComTxAvailable .globl _radioComTxSendByte .globl _radioComTxControlSignals ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- .area RSEG (ABS,DATA) .org 0x0000 Fradio_com$P0$0$0 == 0x0080 _P0 = 0x0080 Fradio_com$SP$0$0 == 0x0081 _SP = 0x0081 Fradio_com$DPL0$0$0 == 0x0082 _DPL0 = 0x0082 Fradio_com$DPH0$0$0 == 0x0083 _DPH0 = 0x0083 Fradio_com$DPL1$0$0 == 0x0084 _DPL1 = 0x0084 Fradio_com$DPH1$0$0 == 0x0085 _DPH1 = 0x0085 Fradio_com$U0CSR$0$0 == 0x0086 _U0CSR = 0x0086 Fradio_com$PCON$0$0 == 0x0087 _PCON = 0x0087 Fradio_com$TCON$0$0 == 0x0088 _TCON = 0x0088 Fradio_com$P0IFG$0$0 == 0x0089 _P0IFG = 0x0089 Fradio_com$P1IFG$0$0 == 0x008a _P1IFG = 0x008a Fradio_com$P2IFG$0$0 == 0x008b _P2IFG = 0x008b Fradio_com$PICTL$0$0 == 0x008c _PICTL = 0x008c Fradio_com$P1IEN$0$0 == 0x008d _P1IEN = 0x008d Fradio_com$P0INP$0$0 == 0x008f _P0INP = 0x008f Fradio_com$P1$0$0 == 0x0090 _P1 = 0x0090 Fradio_com$RFIM$0$0 == 0x0091 _RFIM = 0x0091 Fradio_com$DPS$0$0 == 0x0092 _DPS = 0x0092 Fradio_com$MPAGE$0$0 == 0x0093 _MPAGE = 0x0093 Fradio_com$ENDIAN$0$0 == 0x0095 _ENDIAN = 0x0095 Fradio_com$S0CON$0$0 == 0x0098 _S0CON = 0x0098 Fradio_com$IEN2$0$0 == 0x009a _IEN2 = 0x009a Fradio_com$S1CON$0$0 == 0x009b _S1CON = 0x009b Fradio_com$T2CT$0$0 == 0x009c _T2CT = 0x009c Fradio_com$T2PR$0$0 == 0x009d _T2PR = 0x009d Fradio_com$T2CTL$0$0 == 0x009e _T2CTL = 0x009e Fradio_com$P2$0$0 == 0x00a0 _P2 = 0x00a0 Fradio_com$WORIRQ$0$0 == 0x00a1 _WORIRQ = 0x00a1 Fradio_com$WORCTRL$0$0 == 0x00a2 _WORCTRL = 0x00a2 Fradio_com$WOREVT0$0$0 == 0x00a3 _WOREVT0 = 0x00a3 Fradio_com$WOREVT1$0$0 == 0x00a4 _WOREVT1 = 0x00a4 Fradio_com$WORTIME0$0$0 == 0x00a5 _WORTIME0 = 0x00a5 Fradio_com$WORTIME1$0$0 == 0x00a6 _WORTIME1 = 0x00a6 Fradio_com$IEN0$0$0 == 0x00a8 _IEN0 = 0x00a8 Fradio_com$IP0$0$0 == 0x00a9 _IP0 = 0x00a9 Fradio_com$FWT$0$0 == 0x00ab _FWT = 0x00ab Fradio_com$FADDRL$0$0 == 0x00ac _FADDRL = 0x00ac Fradio_com$FADDRH$0$0 == 0x00ad _FADDRH = 0x00ad Fradio_com$FCTL$0$0 == 0x00ae _FCTL = 0x00ae Fradio_com$FWDATA$0$0 == 0x00af _FWDATA = 0x00af Fradio_com$ENCDI$0$0 == 0x00b1 _ENCDI = 0x00b1 Fradio_com$ENCDO$0$0 == 0x00b2 _ENCDO = 0x00b2 Fradio_com$ENCCS$0$0 == 0x00b3 _ENCCS = 0x00b3 Fradio_com$ADCCON1$0$0 == 0x00b4 _ADCCON1 = 0x00b4 Fradio_com$ADCCON2$0$0 == 0x00b5 _ADCCON2 = 0x00b5 Fradio_com$ADCCON3$0$0 == 0x00b6 _ADCCON3 = 0x00b6 Fradio_com$IEN1$0$0 == 0x00b8 _IEN1 = 0x00b8 Fradio_com$IP1$0$0 == 0x00b9 _IP1 = 0x00b9 Fradio_com$ADCL$0$0 == 0x00ba _ADCL = 0x00ba Fradio_com$ADCH$0$0 == 0x00bb _ADCH = 0x00bb Fradio_com$RNDL$0$0 == 0x00bc _RNDL = 0x00bc Fradio_com$RNDH$0$0 == 0x00bd _RNDH = 0x00bd Fradio_com$SLEEP$0$0 == 0x00be _SLEEP = 0x00be Fradio_com$IRCON$0$0 == 0x00c0 _IRCON = 0x00c0 Fradio_com$U0DBUF$0$0 == 0x00c1 _U0DBUF = 0x00c1 Fradio_com$U0BAUD$0$0 == 0x00c2 _U0BAUD = 0x00c2 Fradio_com$U0UCR$0$0 == 0x00c4 _U0UCR = 0x00c4 Fradio_com$U0GCR$0$0 == 0x00c5 _U0GCR = 0x00c5 Fradio_com$CLKCON$0$0 == 0x00c6 _CLKCON = 0x00c6 Fradio_com$MEMCTR$0$0 == 0x00c7 _MEMCTR = 0x00c7 Fradio_com$WDCTL$0$0 == 0x00c9 _WDCTL = 0x00c9 Fradio_com$T3CNT$0$0 == 0x00ca _T3CNT = 0x00ca Fradio_com$T3CTL$0$0 == 0x00cb _T3CTL = 0x00cb Fradio_com$T3CCTL0$0$0 == 0x00cc _T3CCTL0 = 0x00cc Fradio_com$T3CC0$0$0 == 0x00cd _T3CC0 = 0x00cd Fradio_com$T3CCTL1$0$0 == 0x00ce _T3CCTL1 = 0x00ce Fradio_com$T3CC1$0$0 == 0x00cf _T3CC1 = 0x00cf Fradio_com$PSW$0$0 == 0x00d0 _PSW = 0x00d0 Fradio_com$DMAIRQ$0$0 == 0x00d1 _DMAIRQ = 0x00d1 Fradio_com$DMA1CFGL$0$0 == 0x00d2 _DMA1CFGL = 0x00d2 Fradio_com$DMA1CFGH$0$0 == 0x00d3 _DMA1CFGH = 0x00d3 Fradio_com$DMA0CFGL$0$0 == 0x00d4 _DMA0CFGL = 0x00d4 Fradio_com$DMA0CFGH$0$0 == 0x00d5 _DMA0CFGH = 0x00d5 Fradio_com$DMAARM$0$0 == 0x00d6 _DMAARM = 0x00d6 Fradio_com$DMAREQ$0$0 == 0x00d7 _DMAREQ = 0x00d7 Fradio_com$TIMIF$0$0 == 0x00d8 _TIMIF = 0x00d8 Fradio_com$RFD$0$0 == 0x00d9 _RFD = 0x00d9 Fradio_com$T1CC0L$0$0 == 0x00da _T1CC0L = 0x00da Fradio_com$T1CC0H$0$0 == 0x00db _T1CC0H = 0x00db Fradio_com$T1CC1L$0$0 == 0x00dc _T1CC1L = 0x00dc Fradio_com$T1CC1H$0$0 == 0x00dd _T1CC1H = 0x00dd Fradio_com$T1CC2L$0$0 == 0x00de _T1CC2L = 0x00de Fradio_com$T1CC2H$0$0 == 0x00df _T1CC2H = 0x00df Fradio_com$ACC$0$0 == 0x00e0 _ACC = 0x00e0 Fradio_com$RFST$0$0 == 0x00e1 _RFST = 0x00e1 Fradio_com$T1CNTL$0$0 == 0x00e2 _T1CNTL = 0x00e2 Fradio_com$T1CNTH$0$0 == 0x00e3 _T1CNTH = 0x00e3 Fradio_com$T1CTL$0$0 == 0x00e4 _T1CTL = 0x00e4 Fradio_com$T1CCTL0$0$0 == 0x00e5 _T1CCTL0 = 0x00e5 Fradio_com$T1CCTL1$0$0 == 0x00e6 _T1CCTL1 = 0x00e6 Fradio_com$T1CCTL2$0$0 == 0x00e7 _T1CCTL2 = 0x00e7 Fradio_com$IRCON2$0$0 == 0x00e8 _IRCON2 = 0x00e8 Fradio_com$RFIF$0$0 == 0x00e9 _RFIF = 0x00e9 Fradio_com$T4CNT$0$0 == 0x00ea _T4CNT = 0x00ea Fradio_com$T4CTL$0$0 == 0x00eb _T4CTL = 0x00eb Fradio_com$T4CCTL0$0$0 == 0x00ec _T4CCTL0 = 0x00ec Fradio_com$T4CC0$0$0 == 0x00ed _T4CC0 = 0x00ed Fradio_com$T4CCTL1$0$0 == 0x00ee _T4CCTL1 = 0x00ee Fradio_com$T4CC1$0$0 == 0x00ef _T4CC1 = 0x00ef Fradio_com$B$0$0 == 0x00f0 _B = 0x00f0 Fradio_com$PERCFG$0$0 == 0x00f1 _PERCFG = 0x00f1 Fradio_com$ADCCFG$0$0 == 0x00f2 _ADCCFG = 0x00f2 Fradio_com$P0SEL$0$0 == 0x00f3 _P0SEL = 0x00f3 Fradio_com$P1SEL$0$0 == 0x00f4 _P1SEL = 0x00f4 Fradio_com$P2SEL$0$0 == 0x00f5 _P2SEL = 0x00f5 Fradio_com$P1INP$0$0 == 0x00f6 _P1INP = 0x00f6 Fradio_com$P2INP$0$0 == 0x00f7 _P2INP = 0x00f7 Fradio_com$U1CSR$0$0 == 0x00f8 _U1CSR = 0x00f8 Fradio_com$U1DBUF$0$0 == 0x00f9 _U1DBUF = 0x00f9 Fradio_com$U1BAUD$0$0 == 0x00fa _U1BAUD = 0x00fa Fradio_com$U1UCR$0$0 == 0x00fb _U1UCR = 0x00fb Fradio_com$U1GCR$0$0 == 0x00fc _U1GCR = 0x00fc Fradio_com$P0DIR$0$0 == 0x00fd _P0DIR = 0x00fd Fradio_com$P1DIR$0$0 == 0x00fe _P1DIR = 0x00fe Fradio_com$P2DIR$0$0 == 0x00ff _P2DIR = 0x00ff Fradio_com$DMA0CFG$0$0 == 0xffffd5d4 _DMA0CFG = 0xffffd5d4 Fradio_com$DMA1CFG$0$0 == 0xffffd3d2 _DMA1CFG = 0xffffd3d2 Fradio_com$FADDR$0$0 == 0xffffadac _FADDR = 0xffffadac Fradio_com$ADC$0$0 == 0xffffbbba _ADC = 0xffffbbba Fradio_com$T1CC0$0$0 == 0xffffdbda _T1CC0 = 0xffffdbda Fradio_com$T1CC1$0$0 == 0xffffdddc _T1CC1 = 0xffffdddc Fradio_com$T1CC2$0$0 == 0xffffdfde _T1CC2 = 0xffffdfde ;-------------------------------------------------------- ; special function bits ;-------------------------------------------------------- .area RSEG (ABS,DATA) .org 0x0000 Fradio_com$P0_0$0$0 == 0x0080 _P0_0 = 0x0080 Fradio_com$P0_1$0$0 == 0x0081 _P0_1 = 0x0081 Fradio_com$P0_2$0$0 == 0x0082 _P0_2 = 0x0082 Fradio_com$P0_3$0$0 == 0x0083 _P0_3 = 0x0083 Fradio_com$P0_4$0$0 == 0x0084 _P0_4 = 0x0084 Fradio_com$P0_5$0$0 == 0x0085 _P0_5 = 0x0085 Fradio_com$P0_6$0$0 == 0x0086 _P0_6 = 0x0086 Fradio_com$P0_7$0$0 == 0x0087 _P0_7 = 0x0087 Fradio_com$_TCON_0$0$0 == 0x0088 __TCON_0 = 0x0088 Fradio_com$RFTXRXIF$0$0 == 0x0089 _RFTXRXIF = 0x0089 Fradio_com$_TCON_2$0$0 == 0x008a __TCON_2 = 0x008a Fradio_com$URX0IF$0$0 == 0x008b _URX0IF = 0x008b Fradio_com$_TCON_4$0$0 == 0x008c __TCON_4 = 0x008c Fradio_com$ADCIF$0$0 == 0x008d _ADCIF = 0x008d Fradio_com$_TCON_6$0$0 == 0x008e __TCON_6 = 0x008e Fradio_com$URX1IF$0$0 == 0x008f _URX1IF = 0x008f Fradio_com$P1_0$0$0 == 0x0090 _P1_0 = 0x0090 Fradio_com$P1_1$0$0 == 0x0091 _P1_1 = 0x0091 Fradio_com$P1_2$0$0 == 0x0092 _P1_2 = 0x0092 Fradio_com$P1_3$0$0 == 0x0093 _P1_3 = 0x0093 Fradio_com$P1_4$0$0 == 0x0094 _P1_4 = 0x0094 Fradio_com$P1_5$0$0 == 0x0095 _P1_5 = 0x0095 Fradio_com$P1_6$0$0 == 0x0096 _P1_6 = 0x0096 Fradio_com$P1_7$0$0 == 0x0097 _P1_7 = 0x0097 Fradio_com$ENCIF_0$0$0 == 0x0098 _ENCIF_0 = 0x0098 Fradio_com$ENCIF_1$0$0 == 0x0099 _ENCIF_1 = 0x0099 Fradio_com$_SOCON2$0$0 == 0x009a __SOCON2 = 0x009a Fradio_com$_SOCON3$0$0 == 0x009b __SOCON3 = 0x009b Fradio_com$_SOCON4$0$0 == 0x009c __SOCON4 = 0x009c Fradio_com$_SOCON5$0$0 == 0x009d __SOCON5 = 0x009d Fradio_com$_SOCON6$0$0 == 0x009e __SOCON6 = 0x009e Fradio_com$_SOCON7$0$0 == 0x009f __SOCON7 = 0x009f Fradio_com$P2_0$0$0 == 0x00a0 _P2_0 = 0x00a0 Fradio_com$P2_1$0$0 == 0x00a1 _P2_1 = 0x00a1 Fradio_com$P2_2$0$0 == 0x00a2 _P2_2 = 0x00a2 Fradio_com$P2_3$0$0 == 0x00a3 _P2_3 = 0x00a3 Fradio_com$P2_4$0$0 == 0x00a4 _P2_4 = 0x00a4 Fradio_com$P2_5$0$0 == 0x00a5 _P2_5 = 0x00a5 Fradio_com$P2_6$0$0 == 0x00a6 _P2_6 = 0x00a6 Fradio_com$P2_7$0$0 == 0x00a7 _P2_7 = 0x00a7 Fradio_com$RFTXRXIE$0$0 == 0x00a8 _RFTXRXIE = 0x00a8 Fradio_com$ADCIE$0$0 == 0x00a9 _ADCIE = 0x00a9 Fradio_com$URX0IE$0$0 == 0x00aa _URX0IE = 0x00aa Fradio_com$URX1IE$0$0 == 0x00ab _URX1IE = 0x00ab Fradio_com$ENCIE$0$0 == 0x00ac _ENCIE = 0x00ac Fradio_com$STIE$0$0 == 0x00ad _STIE = 0x00ad Fradio_com$_IEN06$0$0 == 0x00ae __IEN06 = 0x00ae Fradio_com$EA$0$0 == 0x00af _EA = 0x00af Fradio_com$DMAIE$0$0 == 0x00b8 _DMAIE = 0x00b8 Fradio_com$T1IE$0$0 == 0x00b9 _T1IE = 0x00b9 Fradio_com$T2IE$0$0 == 0x00ba _T2IE = 0x00ba Fradio_com$T3IE$0$0 == 0x00bb _T3IE = 0x00bb Fradio_com$T4IE$0$0 == 0x00bc _T4IE = 0x00bc Fradio_com$P0IE$0$0 == 0x00bd _P0IE = 0x00bd Fradio_com$_IEN16$0$0 == 0x00be __IEN16 = 0x00be Fradio_com$_IEN17$0$0 == 0x00bf __IEN17 = 0x00bf Fradio_com$DMAIF$0$0 == 0x00c0 _DMAIF = 0x00c0 Fradio_com$T1IF$0$0 == 0x00c1 _T1IF = 0x00c1 Fradio_com$T2IF$0$0 == 0x00c2 _T2IF = 0x00c2 Fradio_com$T3IF$0$0 == 0x00c3 _T3IF = 0x00c3 Fradio_com$T4IF$0$0 == 0x00c4 _T4IF = 0x00c4 Fradio_com$P0IF$0$0 == 0x00c5 _P0IF = 0x00c5 Fradio_com$_IRCON6$0$0 == 0x00c6 __IRCON6 = 0x00c6 Fradio_com$STIF$0$0 == 0x00c7 _STIF = 0x00c7 Fradio_com$P$0$0 == 0x00d0 _P = 0x00d0 Fradio_com$F1$0$0 == 0x00d1 _F1 = 0x00d1 Fradio_com$OV$0$0 == 0x00d2 _OV = 0x00d2 Fradio_com$RS0$0$0 == 0x00d3 _RS0 = 0x00d3 Fradio_com$RS1$0$0 == 0x00d4 _RS1 = 0x00d4 Fradio_com$F0$0$0 == 0x00d5 _F0 = 0x00d5 Fradio_com$AC$0$0 == 0x00d6 _AC = 0x00d6 Fradio_com$CY$0$0 == 0x00d7 _CY = 0x00d7 Fradio_com$T3OVFIF$0$0 == 0x00d8 _T3OVFIF = 0x00d8 Fradio_com$T3CH0IF$0$0 == 0x00d9 _T3CH0IF = 0x00d9 Fradio_com$T3CH1IF$0$0 == 0x00da _T3CH1IF = 0x00da Fradio_com$T4OVFIF$0$0 == 0x00db _T4OVFIF = 0x00db Fradio_com$T4CH0IF$0$0 == 0x00dc _T4CH0IF = 0x00dc Fradio_com$T4CH1IF$0$0 == 0x00dd _T4CH1IF = 0x00dd Fradio_com$OVFIM$0$0 == 0x00de _OVFIM = 0x00de Fradio_com$_TIMIF7$0$0 == 0x00df __TIMIF7 = 0x00df Fradio_com$ACC_0$0$0 == 0x00e0 _ACC_0 = 0x00e0 Fradio_com$ACC_1$0$0 == 0x00e1 _ACC_1 = 0x00e1 Fradio_com$ACC_2$0$0 == 0x00e2 _ACC_2 = 0x00e2 Fradio_com$ACC_3$0$0 == 0x00e3 _ACC_3 = 0x00e3 Fradio_com$ACC_4$0$0 == 0x00e4 _ACC_4 = 0x00e4 Fradio_com$ACC_5$0$0 == 0x00e5 _ACC_5 = 0x00e5 Fradio_com$ACC_6$0$0 == 0x00e6 _ACC_6 = 0x00e6 Fradio_com$ACC_7$0$0 == 0x00e7 _ACC_7 = 0x00e7 Fradio_com$P2IF$0$0 == 0x00e8 _P2IF = 0x00e8 Fradio_com$UTX0IF$0$0 == 0x00e9 _UTX0IF = 0x00e9 Fradio_com$UTX1IF$0$0 == 0x00ea _UTX1IF = 0x00ea Fradio_com$P1IF$0$0 == 0x00eb _P1IF = 0x00eb Fradio_com$WDTIF$0$0 == 0x00ec _WDTIF = 0x00ec Fradio_com$_IRCON25$0$0 == 0x00ed __IRCON25 = 0x00ed Fradio_com$_IRCON26$0$0 == 0x00ee __IRCON26 = 0x00ee Fradio_com$_IRCON27$0$0 == 0x00ef __IRCON27 = 0x00ef Fradio_com$B_0$0$0 == 0x00f0 _B_0 = 0x00f0 Fradio_com$B_1$0$0 == 0x00f1 _B_1 = 0x00f1 Fradio_com$B_2$0$0 == 0x00f2 _B_2 = 0x00f2 Fradio_com$B_3$0$0 == 0x00f3 _B_3 = 0x00f3 Fradio_com$B_4$0$0 == 0x00f4 _B_4 = 0x00f4 Fradio_com$B_5$0$0 == 0x00f5 _B_5 = 0x00f5 Fradio_com$B_6$0$0 == 0x00f6 _B_6 = 0x00f6 Fradio_com$B_7$0$0 == 0x00f7 _B_7 = 0x00f7 Fradio_com$U1ACTIVE$0$0 == 0x00f8 _U1ACTIVE = 0x00f8 Fradio_com$U1TX_BYTE$0$0 == 0x00f9 _U1TX_BYTE = 0x00f9 Fradio_com$U1RX_BYTE$0$0 == 0x00fa _U1RX_BYTE = 0x00fa Fradio_com$U1ERR$0$0 == 0x00fb _U1ERR = 0x00fb Fradio_com$U1FE$0$0 == 0x00fc _U1FE = 0x00fc Fradio_com$U1SLAVE$0$0 == 0x00fd _U1SLAVE = 0x00fd Fradio_com$U1RE$0$0 == 0x00fe _U1RE = 0x00fe Fradio_com$U1MODE$0$0 == 0x00ff _U1MODE = 0x00ff ;-------------------------------------------------------- ; overlayable register banks ;-------------------------------------------------------- .area REG_BANK_0 (REL,OVR,DATA) .ds 8 ;-------------------------------------------------------- ; internal ram data ;-------------------------------------------------------- .area DSEG (DATA) Fradio_com$txBytesLoaded$0$0==. _txBytesLoaded: .ds 1 Fradio_com$rxBytesLeft$0$0==. _rxBytesLeft: .ds 1 Fradio_com$rxPointer$0$0==. _rxPointer: .ds 2 Fradio_com$txPointer$0$0==. _txPointer: .ds 2 Fradio_com$packetPointer$0$0==. _packetPointer: .ds 2 ;-------------------------------------------------------- ; overlayable items in internal ram ;-------------------------------------------------------- .area OSEG (OVR,DATA) ;-------------------------------------------------------- ; indirectly addressable internal ram data ;-------------------------------------------------------- .area ISEG (DATA) ;-------------------------------------------------------- ; absolute internal ram data ;-------------------------------------------------------- .area IABS (ABS,DATA) .area IABS (ABS,DATA) ;-------------------------------------------------------- ; bit data ;-------------------------------------------------------- .area BSEG (BIT) G$radioComRxEnforceOrdering$0$0==. _radioComRxEnforceOrdering:: .ds 1 Fradio_com$sendSignalsSoon$0$0==. _sendSignalsSoon: .ds 1 ;-------------------------------------------------------- ; paged external ram data ;-------------------------------------------------------- .area PSEG (PAG,XDATA) Fradio_com$radioComRxSignals$0$0==. _radioComRxSignals: .ds 1 Fradio_com$radioComTxSignals$0$0==. _radioComTxSignals: .ds 1 Fradio_com$lastRxSignals$0$0==. _lastRxSignals: .ds 1 ;-------------------------------------------------------- ; external ram data ;-------------------------------------------------------- .area XSEG (XDATA) Fradio_com$SYNC1$0$0 == 0xdf00 _SYNC1 = 0xdf00 Fradio_com$SYNC0$0$0 == 0xdf01 _SYNC0 = 0xdf01 Fradio_com$PKTLEN$0$0 == 0xdf02 _PKTLEN = 0xdf02 Fradio_com$PKTCTRL1$0$0 == 0xdf03 _PKTCTRL1 = 0xdf03 Fradio_com$PKTCTRL0$0$0 == 0xdf04 _PKTCTRL0 = 0xdf04 Fradio_com$ADDR$0$0 == 0xdf05 _ADDR = 0xdf05 Fradio_com$CHANNR$0$0 == 0xdf06 _CHANNR = 0xdf06 Fradio_com$FSCTRL1$0$0 == 0xdf07 _FSCTRL1 = 0xdf07 Fradio_com$FSCTRL0$0$0 == 0xdf08 _FSCTRL0 = 0xdf08 Fradio_com$FREQ2$0$0 == 0xdf09 _FREQ2 = 0xdf09 Fradio_com$FREQ1$0$0 == 0xdf0a _FREQ1 = 0xdf0a Fradio_com$FREQ0$0$0 == 0xdf0b _FREQ0 = 0xdf0b Fradio_com$MDMCFG4$0$0 == 0xdf0c _MDMCFG4 = 0xdf0c Fradio_com$MDMCFG3$0$0 == 0xdf0d _MDMCFG3 = 0xdf0d Fradio_com$MDMCFG2$0$0 == 0xdf0e _MDMCFG2 = 0xdf0e Fradio_com$MDMCFG1$0$0 == 0xdf0f _MDMCFG1 = 0xdf0f Fradio_com$MDMCFG0$0$0 == 0xdf10 _MDMCFG0 = 0xdf10 Fradio_com$DEVIATN$0$0 == 0xdf11 _DEVIATN = 0xdf11 Fradio_com$MCSM2$0$0 == 0xdf12 _MCSM2 = 0xdf12 Fradio_com$MCSM1$0$0 == 0xdf13 _MCSM1 = 0xdf13 Fradio_com$MCSM0$0$0 == 0xdf14 _MCSM0 = 0xdf14 Fradio_com$FOCCFG$0$0 == 0xdf15 _FOCCFG = 0xdf15 Fradio_com$BSCFG$0$0 == 0xdf16 _BSCFG = 0xdf16 Fradio_com$AGCCTRL2$0$0 == 0xdf17 _AGCCTRL2 = 0xdf17 Fradio_com$AGCCTRL1$0$0 == 0xdf18 _AGCCTRL1 = 0xdf18 Fradio_com$AGCCTRL0$0$0 == 0xdf19 _AGCCTRL0 = 0xdf19 Fradio_com$FREND1$0$0 == 0xdf1a _FREND1 = 0xdf1a Fradio_com$FREND0$0$0 == 0xdf1b _FREND0 = 0xdf1b Fradio_com$FSCAL3$0$0 == 0xdf1c _FSCAL3 = 0xdf1c Fradio_com$FSCAL2$0$0 == 0xdf1d _FSCAL2 = 0xdf1d Fradio_com$FSCAL1$0$0 == 0xdf1e _FSCAL1 = 0xdf1e Fradio_com$FSCAL0$0$0 == 0xdf1f _FSCAL0 = 0xdf1f Fradio_com$TEST2$0$0 == 0xdf23 _TEST2 = 0xdf23 Fradio_com$TEST1$0$0 == 0xdf24 _TEST1 = 0xdf24 Fradio_com$TEST0$0$0 == 0xdf25 _TEST0 = 0xdf25 Fradio_com$PA_TABLE0$0$0 == 0xdf2e _PA_TABLE0 = 0xdf2e Fradio_com$IOCFG2$0$0 == 0xdf2f _IOCFG2 = 0xdf2f Fradio_com$IOCFG1$0$0 == 0xdf30 _IOCFG1 = 0xdf30 Fradio_com$IOCFG0$0$0 == 0xdf31 _IOCFG0 = 0xdf31 Fradio_com$PARTNUM$0$0 == 0xdf36 _PARTNUM = 0xdf36 Fradio_com$VERSION$0$0 == 0xdf37 _VERSION = 0xdf37 Fradio_com$FREQEST$0$0 == 0xdf38 _FREQEST = 0xdf38 Fradio_com$LQI$0$0 == 0xdf39 _LQI = 0xdf39 Fradio_com$RSSI$0$0 == 0xdf3a _RSSI = 0xdf3a Fradio_com$MARCSTATE$0$0 == 0xdf3b _MARCSTATE = 0xdf3b Fradio_com$PKTSTATUS$0$0 == 0xdf3c _PKTSTATUS = 0xdf3c Fradio_com$VCO_VC_DAC$0$0 == 0xdf3d _VCO_VC_DAC = 0xdf3d Fradio_com$I2SCFG0$0$0 == 0xdf40 _I2SCFG0 = 0xdf40 Fradio_com$I2SCFG1$0$0 == 0xdf41 _I2SCFG1 = 0xdf41 Fradio_com$I2SDATL$0$0 == 0xdf42 _I2SDATL = 0xdf42 Fradio_com$I2SDATH$0$0 == 0xdf43 _I2SDATH = 0xdf43 Fradio_com$I2SWCNT$0$0 == 0xdf44 _I2SWCNT = 0xdf44 Fradio_com$I2SSTAT$0$0 == 0xdf45 _I2SSTAT = 0xdf45 Fradio_com$I2SCLKF0$0$0 == 0xdf46 _I2SCLKF0 = 0xdf46 Fradio_com$I2SCLKF1$0$0 == 0xdf47 _I2SCLKF1 = 0xdf47 Fradio_com$I2SCLKF2$0$0 == 0xdf48 _I2SCLKF2 = 0xdf48 Fradio_com$USBADDR$0$0 == 0xde00 _USBADDR = 0xde00 Fradio_com$USBPOW$0$0 == 0xde01 _USBPOW = 0xde01 Fradio_com$USBIIF$0$0 == 0xde02 _USBIIF = 0xde02 Fradio_com$USBOIF$0$0 == 0xde04 _USBOIF = 0xde04 Fradio_com$USBCIF$0$0 == 0xde06 _USBCIF = 0xde06 Fradio_com$USBIIE$0$0 == 0xde07 _USBIIE = 0xde07 Fradio_com$USBOIE$0$0 == 0xde09 _USBOIE = 0xde09 Fradio_com$USBCIE$0$0 == 0xde0b _USBCIE = 0xde0b Fradio_com$USBFRML$0$0 == 0xde0c _USBFRML = 0xde0c Fradio_com$USBFRMH$0$0 == 0xde0d _USBFRMH = 0xde0d Fradio_com$USBINDEX$0$0 == 0xde0e _USBINDEX = 0xde0e Fradio_com$USBMAXI$0$0 == 0xde10 _USBMAXI = 0xde10 Fradio_com$USBCSIL$0$0 == 0xde11 _USBCSIL = 0xde11 Fradio_com$USBCSIH$0$0 == 0xde12 _USBCSIH = 0xde12 Fradio_com$USBMAXO$0$0 == 0xde13 _USBMAXO = 0xde13 Fradio_com$USBCSOL$0$0 == 0xde14 _USBCSOL = 0xde14 Fradio_com$USBCSOH$0$0 == 0xde15 _USBCSOH = 0xde15 Fradio_com$USBCNTL$0$0 == 0xde16 _USBCNTL = 0xde16 Fradio_com$USBCNTH$0$0 == 0xde17 _USBCNTH = 0xde17 Fradio_com$USBF0$0$0 == 0xde20 _USBF0 = 0xde20 Fradio_com$USBF1$0$0 == 0xde22 _USBF1 = 0xde22 Fradio_com$USBF2$0$0 == 0xde24 _USBF2 = 0xde24 Fradio_com$USBF3$0$0 == 0xde26 _USBF3 = 0xde26 Fradio_com$USBF4$0$0 == 0xde28 _USBF4 = 0xde28 Fradio_com$USBF5$0$0 == 0xde2a _USBF5 = 0xde2a ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area XABS (ABS,XDATA) ;-------------------------------------------------------- ; external initialized ram data ;-------------------------------------------------------- .area XISEG (XDATA) .area HOME (CODE) .area GSINIT0 (CODE) .area GSINIT1 (CODE) .area GSINIT2 (CODE) .area GSINIT3 (CODE) .area GSINIT4 (CODE) .area GSINIT5 (CODE) .area GSINIT (CODE) .area GSFINAL (CODE) .area CSEG (CODE) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area HOME (CODE) .area GSINIT (CODE) .area GSFINAL (CODE) .area GSINIT (CODE) G$radioComTxControlSignals$0$0 ==. C$radio_com.c$9$2$1 ==. ; libraries/src/radio_com/radio_com.c:9: static uint8 DATA txBytesLoaded = 0; mov _txBytesLoaded,#0x00 G$radioComTxControlSignals$0$0 ==. C$radio_com.c$10$2$1 ==. ; libraries/src/radio_com/radio_com.c:10: static uint8 DATA rxBytesLeft = 0; mov _rxBytesLeft,#0x00 G$radioComTxControlSignals$0$0 ==. C$radio_com.c$12$2$1 ==. ; libraries/src/radio_com/radio_com.c:12: static uint8 XDATA * DATA rxPointer = 0; clr a mov _rxPointer,a mov (_rxPointer + 1),a G$radioComTxControlSignals$0$0 ==. C$radio_com.c$13$2$1 ==. ; libraries/src/radio_com/radio_com.c:13: static uint8 XDATA * DATA txPointer = 0; clr a mov _txPointer,a mov (_txPointer + 1),a G$radioComTxControlSignals$0$0 ==. C$radio_com.c$14$2$1 ==. ; libraries/src/radio_com/radio_com.c:14: static uint8 XDATA * DATA packetPointer = 0; clr a mov _packetPointer,a mov (_packetPointer + 1),a G$radioComTxControlSignals$0$0 ==. C$radio_com.c$7$2$1 ==. ; libraries/src/radio_com/radio_com.c:7: BIT radioComRxEnforceOrdering = 0; clr _radioComRxEnforceOrdering G$radioComTxControlSignals$0$0 ==. C$radio_com.c$19$2$1 ==. ; libraries/src/radio_com/radio_com.c:19: static BIT sendSignalsSoon = 0; // 1 iff we should transmit control signals soon clr _sendSignalsSoon G$radioComTxControlSignals$0$0 ==. C$radio_com.c$16$2$1 ==. ; libraries/src/radio_com/radio_com.c:16: static uint8 radioComRxSignals = 0; mov r0,#_radioComRxSignals clr a movx @r0,a G$radioComTxControlSignals$0$0 ==. C$radio_com.c$17$2$1 ==. ; libraries/src/radio_com/radio_com.c:17: static uint8 radioComTxSignals = 0; mov r0,#_radioComTxSignals clr a movx @r0,a G$radioComTxControlSignals$0$0 ==. C$radio_com.c$18$2$1 ==. ; libraries/src/radio_com/radio_com.c:18: static uint8 lastRxSignals = 0; // The last RX signals sent to the higher-level code. mov r0,#_lastRxSignals clr a movx @r0,a ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area HOME (CODE) .area HOME (CODE) ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area CSEG (CODE) ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComInit' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComInit$0$0 ==. C$radio_com.c$32$0$0 ==. ; libraries/src/radio_com/radio_com.c:32: void radioComInit() ; ----------------------------------------- ; function radioComInit ; ----------------------------------------- _radioComInit: ar2 = 0x02 ar3 = 0x03 ar4 = 0x04 ar5 = 0x05 ar6 = 0x06 ar7 = 0x07 ar0 = 0x00 ar1 = 0x01 C$radio_com.c$34$1$1 ==. ; libraries/src/radio_com/radio_com.c:34: radioLinkInit(); C$radio_com.c$35$1$1 ==. XG$radioComInit$0$0 ==. ljmp _radioLinkInit ;------------------------------------------------------------ ;Allocation info for local variables in function 'receiveMorePackets' ;------------------------------------------------------------ ;------------------------------------------------------------ Fradio_com$receiveMorePackets$0$0 ==. C$radio_com.c$41$1$1 ==. ; libraries/src/radio_com/radio_com.c:41: static void receiveMorePackets(void) ; ----------------------------------------- ; function receiveMorePackets ; ----------------------------------------- _receiveMorePackets: C$radio_com.c$45$1$1 ==. ; libraries/src/radio_com/radio_com.c:45: if (rxBytesLeft != 0) mov a,_rxBytesLeft jz 00102$ C$radio_com.c$49$2$2 ==. ; libraries/src/radio_com/radio_com.c:49: return; ret 00102$: C$radio_com.c$52$1$1 ==. ; libraries/src/radio_com/radio_com.c:52: if (WAITING_TO_REPORT_RX_SIGNALS) jnb _radioComRxEnforceOrdering,00112$ mov r0,#_radioComRxSignals mov r1,#_lastRxSignals movx a,@r0 mov b,a movx a,@r1 C$radio_com.c$56$2$3 ==. ; libraries/src/radio_com/radio_com.c:56: return; C$radio_com.c$62$1$1 ==. ; libraries/src/radio_com/radio_com.c:62: while(packet = radioLinkRxCurrentPacket()) cjne a,b,00115$ 00112$: lcall _radioLinkRxCurrentPacket mov r2,dpl mov r3,dph mov ar4,r2 mov ar5,r3 mov a,r2 orl a,r3 jz 00115$ C$radio_com.c$64$2$4 ==. ; libraries/src/radio_com/radio_com.c:64: switch(radioLinkRxCurrentPayloadType()) push ar4 push ar5 lcall _radioLinkRxCurrentPayloadType mov r2,dpl pop ar5 pop ar4 cjne r2,#0x00,00130$ sjmp 00106$ 00130$: C$radio_com.c$66$3$5 ==. ; libraries/src/radio_com/radio_com.c:66: case PAYLOAD_TYPE_DATA: cjne r2,#0x01,00112$ sjmp 00107$ 00106$: C$radio_com.c$73$3$5 ==. ; libraries/src/radio_com/radio_com.c:73: rxBytesLeft = packet[0]; // Read the packet length. mov dpl,r4 mov dph,r5 movx a,@dptr mov _rxBytesLeft,a C$radio_com.c$74$3$5 ==. ; libraries/src/radio_com/radio_com.c:74: rxPointer = packet+1; // Make rxPointer point to the data. mov a,#0x01 add a,r4 mov _rxPointer,a clr a addc a,r5 mov (_rxPointer + 1),a C$radio_com.c$75$3$5 ==. ; libraries/src/radio_com/radio_com.c:75: return; C$radio_com.c$77$3$5 ==. ; libraries/src/radio_com/radio_com.c:77: case PAYLOAD_TYPE_CONTROL_SIGNALS: ret 00107$: C$radio_com.c$79$3$5 ==. ; libraries/src/radio_com/radio_com.c:79: radioComRxSignals = packet[1]; mov dpl,r4 mov dph,r5 inc dptr movx a,@dptr mov r0,#_radioComRxSignals movx @r0,a C$radio_com.c$81$3$5 ==. ; libraries/src/radio_com/radio_com.c:81: radioLinkRxDoneWithPacket(); lcall _radioLinkRxDoneWithPacket C$radio_com.c$83$3$5 ==. ; libraries/src/radio_com/radio_com.c:83: if (WAITING_TO_REPORT_RX_SIGNALS) jnb _radioComRxEnforceOrdering,00112$ mov r0,#_radioComRxSignals mov r1,#_lastRxSignals movx a,@r0 mov b,a movx a,@r1 cjne a,b,00133$ sjmp 00112$ 00133$: C$radio_com.c$88$4$6 ==. ; libraries/src/radio_com/radio_com.c:88: return; C$radio_com.c$94$1$1 ==. ; libraries/src/radio_com/radio_com.c:94: } 00115$: C$radio_com.c$96$1$1 ==. XFradio_com$receiveMorePackets$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComRxAvailable' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComRxAvailable$0$0 ==. C$radio_com.c$103$1$1 ==. ; libraries/src/radio_com/radio_com.c:103: uint8 radioComRxAvailable(void) ; ----------------------------------------- ; function radioComRxAvailable ; ----------------------------------------- _radioComRxAvailable: C$radio_com.c$105$1$1 ==. ; libraries/src/radio_com/radio_com.c:105: receiveMorePackets(); lcall _receiveMorePackets C$radio_com.c$106$1$1 ==. ; libraries/src/radio_com/radio_com.c:106: return rxBytesLeft; mov dpl,_rxBytesLeft C$radio_com.c$107$1$1 ==. XG$radioComRxAvailable$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComRxReceiveByte' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComRxReceiveByte$0$0 ==. C$radio_com.c$111$1$1 ==. ; libraries/src/radio_com/radio_com.c:111: uint8 radioComRxReceiveByte(void) ; ----------------------------------------- ; function radioComRxReceiveByte ; ----------------------------------------- _radioComRxReceiveByte: C$radio_com.c$113$1$1 ==. ; libraries/src/radio_com/radio_com.c:113: uint8 tmp = *rxPointer; // Read a byte from the current RX packet. mov dpl,_rxPointer mov dph,(_rxPointer + 1) movx a,@dptr mov r2,a C$radio_com.c$114$1$1 ==. ; libraries/src/radio_com/radio_com.c:114: rxPointer++; // Update pointer and counter. inc _rxPointer clr a cjne a,_rxPointer,00106$ inc (_rxPointer + 1) 00106$: C$radio_com.c$115$1$1 ==. ; libraries/src/radio_com/radio_com.c:115: rxBytesLeft--; C$radio_com.c$117$1$1 ==. ; libraries/src/radio_com/radio_com.c:117: if (rxBytesLeft == 0) // If there are no bytes left in this packet... djnz _rxBytesLeft,00102$ C$radio_com.c$119$2$2 ==. ; libraries/src/radio_com/radio_com.c:119: radioLinkRxDoneWithPacket(); // Tell the radio link layer we are done with it so we can receive more. push ar2 lcall _radioLinkRxDoneWithPacket pop ar2 00102$: C$radio_com.c$122$1$1 ==. ; libraries/src/radio_com/radio_com.c:122: return tmp; mov dpl,r2 C$radio_com.c$123$1$1 ==. XG$radioComRxReceiveByte$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComRxControlSignals' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComRxControlSignals$0$0 ==. C$radio_com.c$125$1$1 ==. ; libraries/src/radio_com/radio_com.c:125: uint8 radioComRxControlSignals(void) ; ----------------------------------------- ; function radioComRxControlSignals ; ----------------------------------------- _radioComRxControlSignals: C$radio_com.c$127$1$1 ==. ; libraries/src/radio_com/radio_com.c:127: receiveMorePackets(); lcall _receiveMorePackets C$radio_com.c$128$1$1 ==. ; libraries/src/radio_com/radio_com.c:128: lastRxSignals = radioComRxSignals; mov r0,#_radioComRxSignals movx a,@r0 mov r2,a mov r0,#_lastRxSignals movx @r0,a C$radio_com.c$129$1$1 ==. ; libraries/src/radio_com/radio_com.c:129: return lastRxSignals; mov dpl,r2 C$radio_com.c$130$1$1 ==. XG$radioComRxControlSignals$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComSendDataNow' ;------------------------------------------------------------ ;------------------------------------------------------------ Fradio_com$radioComSendDataNow$0$0 ==. C$radio_com.c$134$1$1 ==. ; libraries/src/radio_com/radio_com.c:134: static void radioComSendDataNow() ; ----------------------------------------- ; function radioComSendDataNow ; ----------------------------------------- _radioComSendDataNow: C$radio_com.c$136$1$1 ==. ; libraries/src/radio_com/radio_com.c:136: *packetPointer = txBytesLoaded; mov dpl,_packetPointer mov dph,(_packetPointer + 1) mov a,_txBytesLoaded movx @dptr,a C$radio_com.c$137$1$1 ==. ; libraries/src/radio_com/radio_com.c:137: radioLinkTxSendPacket(PAYLOAD_TYPE_DATA); mov dpl,#0x00 lcall _radioLinkTxSendPacket C$radio_com.c$138$1$1 ==. ; libraries/src/radio_com/radio_com.c:138: txBytesLoaded = 0; mov _txBytesLoaded,#0x00 C$radio_com.c$139$1$1 ==. XFradio_com$radioComSendDataNow$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComSendControlSignalsNow' ;------------------------------------------------------------ ;------------------------------------------------------------ Fradio_com$radioComSendControlSignalsNow$0$0 ==. C$radio_com.c$141$1$1 ==. ; libraries/src/radio_com/radio_com.c:141: static void radioComSendControlSignalsNow() ; ----------------------------------------- ; function radioComSendControlSignalsNow ; ----------------------------------------- _radioComSendControlSignalsNow: C$radio_com.c$148$1$1 ==. ; libraries/src/radio_com/radio_com.c:148: packet = radioLinkTxCurrentPacket(); lcall _radioLinkTxCurrentPacket C$radio_com.c$149$1$1 ==. ; libraries/src/radio_com/radio_com.c:149: packet[0] = 1; // Payload length is one byte. mov r2,dpl mov r3,dph mov a,#0x01 movx @dptr,a C$radio_com.c$150$1$1 ==. ; libraries/src/radio_com/radio_com.c:150: packet[1] = radioComTxSignals; mov dpl,r2 mov dph,r3 inc dptr mov r0,#_radioComTxSignals movx a,@r0 movx @dptr,a C$radio_com.c$151$1$1 ==. ; libraries/src/radio_com/radio_com.c:151: sendSignalsSoon = 0; clr _sendSignalsSoon C$radio_com.c$152$1$1 ==. ; libraries/src/radio_com/radio_com.c:152: radioLinkTxSendPacket(PAYLOAD_TYPE_CONTROL_SIGNALS); mov dpl,#0x01 C$radio_com.c$153$1$1 ==. XFradio_com$radioComSendControlSignalsNow$0$0 ==. ljmp _radioLinkTxSendPacket ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComTxService' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComTxService$0$0 ==. C$radio_com.c$155$1$1 ==. ; libraries/src/radio_com/radio_com.c:155: void radioComTxService(void) ; ----------------------------------------- ; function radioComTxService ; ----------------------------------------- _radioComTxService: C$radio_com.c$157$1$1 ==. ; libraries/src/radio_com/radio_com.c:157: if (radioLinkResetPacketReceived) C$radio_com.c$161$2$2 ==. ; libraries/src/radio_com/radio_com.c:161: radioLinkResetPacketReceived = 0; jbc _radioLinkResetPacketReceived,00121$ sjmp 00102$ 00121$: C$radio_com.c$162$2$2 ==. ; libraries/src/radio_com/radio_com.c:162: sendSignalsSoon = 1; setb _sendSignalsSoon 00102$: C$radio_com.c$165$1$1 ==. ; libraries/src/radio_com/radio_com.c:165: if (sendSignalsSoon) jnb _sendSignalsSoon,00111$ C$radio_com.c$172$2$3 ==. ; libraries/src/radio_com/radio_com.c:172: if (txBytesLoaded != 0) mov a,_txBytesLoaded jz 00104$ C$radio_com.c$176$3$4 ==. ; libraries/src/radio_com/radio_com.c:176: radioComSendDataNow(); lcall _radioComSendDataNow 00104$: C$radio_com.c$179$2$3 ==. ; libraries/src/radio_com/radio_com.c:179: if (radioLinkTxAvailable()) lcall _radioLinkTxAvailable mov a,dpl jz 00113$ C$radio_com.c$181$3$5 ==. ; libraries/src/radio_com/radio_com.c:181: radioComSendControlSignalsNow(); ljmp _radioComSendControlSignalsNow 00111$: C$radio_com.c$190$2$6 ==. ; libraries/src/radio_com/radio_com.c:190: if (txBytesLoaded != 0 && radioLinkTxQueued() <= TX_QUEUE_THRESHOLD) mov a,_txBytesLoaded jz 00113$ lcall _radioLinkTxQueued mov r2,dpl mov a,#0x01 cjne a,ar2,00126$ 00126$: jc 00113$ C$radio_com.c$192$3$7 ==. ; libraries/src/radio_com/radio_com.c:192: radioComSendDataNow(); C$radio_com.c$195$1$1 ==. XG$radioComTxService$0$0 ==. ljmp _radioComSendDataNow 00113$: ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComTxAvailable' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComTxAvailable$0$0 ==. C$radio_com.c$197$1$1 ==. ; libraries/src/radio_com/radio_com.c:197: uint8 radioComTxAvailable(void) ; ----------------------------------------- ; function radioComTxAvailable ; ----------------------------------------- _radioComTxAvailable: C$radio_com.c$199$1$1 ==. ; libraries/src/radio_com/radio_com.c:199: if (sendSignalsSoon) jnb _sendSignalsSoon,00102$ C$radio_com.c$205$2$2 ==. ; libraries/src/radio_com/radio_com.c:205: return 0; mov dpl,#0x00 ret 00102$: C$radio_com.c$212$2$3 ==. ; libraries/src/radio_com/radio_com.c:212: return radioLinkTxAvailable()*RADIO_LINK_PAYLOAD_SIZE - txBytesLoaded; lcall _radioLinkTxAvailable mov a,dpl mov b,#0x12 mul ab clr c subb a,_txBytesLoaded mov dpl,a C$radio_com.c$214$1$1 ==. XG$radioComTxAvailable$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComTxSendByte' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComTxSendByte$0$0 ==. C$radio_com.c$216$1$1 ==. ; libraries/src/radio_com/radio_com.c:216: void radioComTxSendByte(uint8 byte) ; ----------------------------------------- ; function radioComTxSendByte ; ----------------------------------------- _radioComTxSendByte: mov r2,dpl C$radio_com.c$219$1$1 ==. ; libraries/src/radio_com/radio_com.c:219: if (txBytesLoaded == 0) mov a,_txBytesLoaded jnz 00102$ C$radio_com.c$221$2$2 ==. ; libraries/src/radio_com/radio_com.c:221: txPointer = packetPointer = radioLinkTxCurrentPacket(); push ar2 lcall _radioLinkTxCurrentPacket mov r3,dpl mov r4,dph pop ar2 mov _packetPointer,r3 mov (_packetPointer + 1),r4 mov _txPointer,r3 mov (_txPointer + 1),r4 00102$: C$radio_com.c$224$1$1 ==. ; libraries/src/radio_com/radio_com.c:224: txPointer++; inc _txPointer clr a cjne a,_txPointer,00110$ inc (_txPointer + 1) 00110$: C$radio_com.c$225$1$1 ==. ; libraries/src/radio_com/radio_com.c:225: *txPointer = byte; mov dpl,_txPointer mov dph,(_txPointer + 1) mov a,r2 movx @dptr,a C$radio_com.c$226$1$1 ==. ; libraries/src/radio_com/radio_com.c:226: txBytesLoaded++; inc _txBytesLoaded C$radio_com.c$228$1$1 ==. ; libraries/src/radio_com/radio_com.c:228: if (txBytesLoaded == RADIO_LINK_PAYLOAD_SIZE) mov a,#0x12 cjne a,_txBytesLoaded,00105$ C$radio_com.c$230$2$3 ==. ; libraries/src/radio_com/radio_com.c:230: radioComSendDataNow(); C$radio_com.c$232$2$1 ==. XG$radioComTxSendByte$0$0 ==. ljmp _radioComSendDataNow 00105$: ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'radioComTxControlSignals' ;------------------------------------------------------------ ;------------------------------------------------------------ G$radioComTxControlSignals$0$0 ==. C$radio_com.c$235$2$1 ==. ; libraries/src/radio_com/radio_com.c:235: void radioComTxControlSignals(uint8 controlSignals) ; ----------------------------------------- ; function radioComTxControlSignals ; ----------------------------------------- _radioComTxControlSignals: mov r2,dpl C$radio_com.c$237$1$1 ==. ; libraries/src/radio_com/radio_com.c:237: if(controlSignals != radioComTxSignals) mov r0,#_radioComTxSignals movx a,@r0 cjne a,ar2,00106$ ret 00106$: C$radio_com.c$239$2$2 ==. ; libraries/src/radio_com/radio_com.c:239: radioComTxSignals = controlSignals; mov r0,#_radioComTxSignals mov a,r2 movx @r0,a C$radio_com.c$240$2$2 ==. ; libraries/src/radio_com/radio_com.c:240: sendSignalsSoon = 1; setb _sendSignalsSoon C$radio_com.c$241$2$2 ==. ; libraries/src/radio_com/radio_com.c:241: radioComTxService(); C$radio_com.c$243$2$1 ==. XG$radioComTxControlSignals$0$0 ==. ljmp _radioComTxService .area CSEG (CODE) .area CONST (CODE) .area XINIT (CODE) .area CABS (ABS,CODE)