⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hal_dma.s51

📁 用IAR开发的ZIGBEE网络路由例子
💻 S51
📖 第 1 页 / 共 2 页
字号:
        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\CC2430DB\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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -