hal_dma.s51

来自「TI的基于ZIGBEE2006的协议栈」· S51 代码 · 共 408 行 · 第 1/2 页

S51
408
字号
        CFI Resource PSW:8, DPL0:8, DPH0:8, R0:8, R1:8, R2:8, R3:8, R4:8, R5:8
        CFI Resource R6:8, R7:8, V0:8, V1:8, V2:8, V3:8, V4:8, V5:8, V6:8, V7:8
        CFI Resource SP:8, PSPH:8, PSPL:8, PSP16:16, XSPH:8, XSPL:8, XSP16:16
        CFI VirtualResource ?RET:24
        CFI Resource ?BRET_EXT:8
        CFI VirtualResource ?RET_HIGH:8, ?RET_LOW:8
        CFI ResourceParts PSP16 PSPH, PSPL
        CFI ResourceParts XSP16 XSPH, XSPL
        CFI ResourceParts ?RET ?BRET_EXT, ?RET_HIGH, ?RET_LOW
        CFI EndNames cfiNames0
        
        CFI Common cfiCommon0 Using cfiNames0
        CFI CodeAlign 1
        CFI DataAlign -1
        CFI ReturnAddress ?RET CODE
        CFI CFA_DOVERLAY Used
        CFI CFA_IOVERLAY Used
        CFI CFA_SP SP+-3
        CFI CFA_PSP16 PSP16+0
        CFI CFA_XSP16 XSP16+0
        CFI `PSW.CY` SameValue
        CFI `B.BR0` SameValue
        CFI `B.BR1` SameValue
        CFI `B.BR2` SameValue
        CFI `B.BR3` SameValue
        CFI `B.BR4` SameValue
        CFI `B.BR5` SameValue
        CFI `B.BR6` SameValue
        CFI `B.BR7` SameValue
        CFI `VB.BR8` SameValue
        CFI `VB.BR9` SameValue
        CFI `VB.BR10` SameValue
        CFI `VB.BR11` SameValue
        CFI `VB.BR12` SameValue
        CFI `VB.BR13` SameValue
        CFI `VB.BR14` SameValue
        CFI `VB.BR15` SameValue
        CFI VB SameValue
        CFI B Undefined
        CFI A Undefined
        CFI PSW SameValue
        CFI DPL0 SameValue
        CFI DPH0 SameValue
        CFI R0 Undefined
        CFI R1 Undefined
        CFI R2 Undefined
        CFI R3 Undefined
        CFI R4 Undefined
        CFI R5 Undefined
        CFI R6 SameValue
        CFI R7 SameValue
        CFI V0 SameValue
        CFI V1 SameValue
        CFI V2 SameValue
        CFI V3 SameValue
        CFI V4 SameValue
        CFI V5 SameValue
        CFI V6 SameValue
        CFI V7 SameValue
        CFI PSPH Undefined
        CFI PSPL Undefined
        CFI XSPH Undefined
        CFI XSPL Undefined
        CFI ?RET Concat
        CFI ?BRET_EXT Frame(CFA_SP, 3)
        CFI ?RET_HIGH Frame(CFA_SP, 2)
        CFI ?RET_LOW Frame(CFA_SP, 1)
        CFI EndCommon cfiCommon0
        
// C:\Texas Instruments\ZStack-1.4.2\Components\hal\target\CC2430EB\hal_dma.c
//    1 /******************************************************************************
//    2     Filename:       _hal_dma.c
//    3     Revised:        $Date: 2007-03-13 14:24:09 -0700 (Tue, 13 Mar 2007) $
//    4     Revision:       $Revision: 13747 $
//    5 
//    6     Description: This file contains the interface to the DMA.
//    7 
//    8     Copyright (c) 2007 by Texas Instruments, Inc.
//    9     All Rights Reserved.  Permission to use, reproduce, copy, prepare
//   10     derivative works, modify, distribute, perform, display or sell this
//   11     software and/or its documentation for any purpose is prohibited
//   12     without the express written consent of Texas Instruments, Inc.
//   13 ******************************************************************************/
//   14 
//   15 /*********************************************************************
//   16  * INCLUDES
//   17  */
//   18 
//   19 #include "hal_types.h"
//   20 #include "hal_defs.h"
//   21 #include "hal_dma.h"

        ASEGN SFR_AN:DATA:NOROOT,0d2H
// unsigned char volatile __sfr DMA1CFGL
DMA1CFGL:
        DS 1

        ASEGN SFR_AN:DATA:NOROOT,0d3H
// unsigned char volatile __sfr DMA1CFGH
DMA1CFGH:
        DS 1

        ASEGN SFR_AN:DATA:NOROOT,0d4H
// unsigned char volatile __sfr DMA0CFGL
DMA0CFGL:
        DS 1

        ASEGN SFR_AN:DATA:NOROOT,0d5H
// unsigned char volatile __sfr DMA0CFGH
DMA0CFGH:
        DS 1
//   22 #include "hal_mcu.h"
//   23 #include "hal_uart.h"
//   24 
//   25 #if HAL_DMA
//   26 
//   27 /*********************************************************************
//   28  * MACROS
//   29  */
//   30 
//   31 /*********************************************************************
//   32  * CONSTANTS
//   33  */
//   34 
//   35 /*********************************************************************
//   36  * TYPEDEFS
//   37  */
//   38 
//   39 /*********************************************************************
//   40  * GLOBAL VARIABLES
//   41  */
//   42 

        RSEG XDATA_Z:XDATA:NOROOT(0)
        REQUIRE __INIT_XDATA_Z
//   43 halDMADesc_t dmaCh0;
dmaCh0:
        DS 8

        RSEG XDATA_Z:XDATA:NOROOT(0)
        REQUIRE __INIT_XDATA_Z
//   44 halDMADesc_t dmaCh1234[4];
dmaCh1234:
        DS 32
//   45 
//   46 /*********************************************************************
//   47  * GLOBAL FUNCTIONS
//   48  */
//   49 
//   50 /*********************************************************************
//   51  * LOCAL VARIABLES
//   52  */
//   53 
//   54 /*********************************************************************
//   55  * LOCAL FUNCTIONS
//   56  */
//   57 
//   58 /******************************************************************************
//   59  * @fn      HalDMAInit
//   60  *
//   61  * @brief   DMA Interrupt Service Routine
//   62  *
//   63  * @param   None
//   64  *
//   65  * @return  None
//   66  *****************************************************************************/

        RSEG BANKED_CODE:CODE:NOROOT(0)
//   67 void HalDmaInit( void )
HalDmaInit:
        CFI Block cfiBlock0 Using cfiCommon0
        CFI Function HalDmaInit
//   68 {
        ; Saved register size: 0
        ; Auto size: 0
//   69   HAL_DMA_SET_ADDR_DESC0( &dmaCh0 );
        MOV	A,#((dmaCh0 >> 8) & 0xff)
        MOV	0xd5,A
        MOV	0xd4,#(dmaCh0 & 0xff)
//   70   HAL_DMA_SET_ADDR_DESC1234( dmaCh1234 );
        MOV	A,#((dmaCh1234 >> 8) & 0xff)
        MOV	0xd3,A
        MOV	0xd2,#(dmaCh1234 & 0xff)
//   71 }
        LJMP	?BRET
        CFI EndBlock cfiBlock0

        END
//   72 
//   73 #endif  // #if HAL_DMA
//   74 /******************************************************************************
//   75 ******************************************************************************/
// 
// 17 bytes in segment BANKED_CODE
//  4 bytes in segment SFR_AN
// 40 bytes in segment XDATA_Z
// 
// 17 bytes of CODE  memory
//  0 bytes of DATA  memory (+ 4 bytes shared)
// 40 bytes of XDATA memory
//
//Errors: none
//Warnings: none

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?