📄 hal_dma.lst
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -