initdpi.asm

来自「ADI 公司的DSP ADSP21369 EZ-KIT LITE开发板的全部源代」· 汇编 代码 · 共 22 行

ASM
22
字号
// The following definition allows the SRU macro to check for errors. Once the routings have
// been verified, this definition can be removed to save some program memory space.
// The preprocessor will issue a warning stating this when using the SRU macro without this
// definition
#define SRUDEBUG  // Check SRU Routings for errors.
#include <SRU.h>

.section/pm seg_pmco;
.global _initDPI;

_initDPI:

SRU2(UART0_TX_O,DPI_PB09_I); // UART transmit signal is connected to DPI pin 9
SRU2(HIGH,DPI_PBEN09_I);
SRU2(DPI_PB10_O,UART0_RX_I); // connect the pin buffer output signal to the UART0 receive
SRU2(LOW,DPI_PB10_I);
SRU2(LOW,DPI_PBEN10_I);      // disables DPI pin10 as input

_initDPI.end:
rts;

⌨️ 快捷键说明

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