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