start.c
来自「这是几个TMS320F2812应用程序举例」· C语言 代码 · 共 18 行
C
18 行
/*---------------------------------------------
file name: start.c
2003/09/18 By RealSYS
-----------------------------------------------*/
asm(" .ref _c_int00 ");
asm(" .sect codestart ");
asm(" LB wd_disable ;Branch to watchdog disable code ");
asm(" .text ");
asm("wd_disable: ");
asm(" SETC OBJMODE ;Set OBJMODE for 28x object code ");
asm(" EALLOW ;Enable EALLOW protected register access ");
asm(" MOVZ DP, #7029h>>6 ;Set data page for WDCR register ");
asm(" MOV @7029h, #0068h ;Set WDDIS bit in WDCR to disable WD ");
asm(" EDIS ;Disable EALLOW protected register access ");
asm(" LB _c_int00 ;Branch to start of boot.asm in RTS library ");
asm(" .end ");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?