hal_dma.lst
来自「TI的基于ZIGBEE2006的协议栈」· LST 代码 · 共 316 行 · 第 1/2 页
LST
316 行
# Object file = D:\#ZIGBEE开发之路\20081030101956Texas #
# Instruments\Texas Instruments\Texas #
# Instruments\ZStack-1.4.2\Projects\zstack\Samples\ #
# SampleApp\CC2430DB\CoordinatorEB\Obj\hal_dma.r51 #
# #
# #
##############################################################################
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"
\ In segment SFR_AN, at 0xd2
\ unsigned char volatile __sfr DMA1CFGL
\ DMA1CFGL:
\ 000000 DS 1
\ In segment SFR_AN, at 0xd3
\ unsigned char volatile __sfr DMA1CFGH
\ DMA1CFGH:
\ 000000 DS 1
\ In segment SFR_AN, at 0xd4
\ unsigned char volatile __sfr DMA0CFGL
\ DMA0CFGL:
\ 000000 DS 1
\ In segment SFR_AN, at 0xd5
\ unsigned char volatile __sfr DMA0CFGH
\ DMA0CFGH:
\ 000000 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
\ In segment XDATA_Z, align 1, keep-with-next
\ 000000 REQUIRE __INIT_XDATA_Z
43 halDMADesc_t dmaCh0;
\ dmaCh0:
\ 000000 DS 8
\ In segment XDATA_Z, align 1, keep-with-next
\ 000000 REQUIRE __INIT_XDATA_Z
44 halDMADesc_t dmaCh1234[4];
\ dmaCh1234:
\ 000000 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 *****************************************************************************/
\ In segment BANKED_CODE, align 1, keep-with-next
67 void HalDmaInit( void )
\ HalDmaInit:
68 {
\ 000000 ; Saved register size: 0
\ 000000 ; Auto size: 0
69 HAL_DMA_SET_ADDR_DESC0( &dmaCh0 );
\ 000000 74.. MOV A,#((dmaCh0 >> 8) & 0xff)
\ 000002 F5D5 MOV 0xd5,A
\ 000004 75D4.. MOV 0xd4,#(dmaCh0 & 0xff)
70 HAL_DMA_SET_ADDR_DESC1234( dmaCh1234 );
\ 000007 74.. MOV A,#((dmaCh1234 >> 8) & 0xff)
\ 000009 F5D3 MOV 0xd3,A
\ 00000B 75D2.. MOV 0xd2,#(dmaCh1234 & 0xff)
71 }
\ 00000E 02.... LJMP ?BRET
72
73 #endif // #if HAL_DMA
74 /******************************************************************************
75 ******************************************************************************/
Maximum stack usage in bytes:
Function ISTACK PSTACK XSTACK
-------- ------ ------ ------
HalDmaInit 0 0 0
Segment part sizes:
Function/Label Bytes
-------------- -----
DMA1CFGL 1
DMA1CFGH 1
DMA0CFGL 1
DMA0CFGH 1
dmaCh0 8
dmaCh1234 32
HalDmaInit 17
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 + -
显示快捷键?