b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

tms320f2808中文资料_tms320f2808_MAX5541ESA(3)

电脑杂谈  发布时间:2017-02-21 12:00:19  来源:网络整理

.sect "codestart"

code_start:

.if WD_DISABLE == 1

LB wd_disable ;Branch to watchdog disable code

.else

LB copy_sections ;Branch to copy_sections

.endif

这个函数从the C/C Header Files and Peripheral Examples提供的CodeStartBranch.asm文件修改而来,只是第二个调用用copy_sections代替了_c_int00。这个调用仅仅在WD_DISABLE为0时执行。 上面的代码,WD_DISABLE 被设置为1。这使得wd_disable运行。wd_disable的代码如下:

***********************************************************************

* Function: wd_disable

*

* Description: Disables the watchdog timer

***********************************************************************

.if WD_DISABLE == 1

.sect "wddisable"

wd_disable:

SETC OMODE ;Set OMODE for 28x object code

EALLOW ;Enable EALLOW protected register access

MOVZ DP, #7029h>>6 ;Set data page for WDCR register

MOV @7029h, #0068h ;Set WDDIS bit in WDCR to disable WD

EDIS ;Disable EALLOW protected register access

LB copy_sections ;Branch to copy_sections

.endif

***********************************************************************

* Function: wd_disable

*

* Description: Disables the watchdog timer

***********************************************************************

.if WD_DISABLE == 1

.sect "wddisable"

wd_disable:

SETC OMODE ;Set OMODE for 28x object code

EALLOW ;Enable EALLOW protected register access

MOVZ DP, #7029h>>6 ;Set data page for WDCR register

MOV @7029h, #0068h ;Set WDDIS bit in WDCR to disable WD

EDIS ;Disable EALLOW protected register access

LB copy_sections ;Branch to copy_sections


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-33664-3.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 苏检
      苏检

      我们希望能有更多的好心人可以帮帮她们

    • 董禹
      董禹

      mynameisbadgirl

    热点图片
    拼命载入中...