WatchDogDRIVERIMPL.docx

上传人:b****1 文档编号:1676965 上传时间:2023-05-01 格式:DOCX 页数:7 大小:298.15KB
下载 相关 举报
WatchDogDRIVERIMPL.docx_第1页
第1页 / 共7页
WatchDogDRIVERIMPL.docx_第2页
第2页 / 共7页
WatchDogDRIVERIMPL.docx_第3页
第3页 / 共7页
WatchDogDRIVERIMPL.docx_第4页
第4页 / 共7页
WatchDogDRIVERIMPL.docx_第5页
第5页 / 共7页
WatchDogDRIVERIMPL.docx_第6页
第6页 / 共7页
WatchDogDRIVERIMPL.docx_第7页
第7页 / 共7页
亲,该文档总共7页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

WatchDogDRIVERIMPL.docx

《WatchDogDRIVERIMPL.docx》由会员分享,可在线阅读,更多相关《WatchDogDRIVERIMPL.docx(7页珍藏版)》请在冰点文库上搜索。

WatchDogDRIVERIMPL.docx

WatchDogDRIVERIMPL

CONFIDENTIAL

TJU—IFXAutomotiveElectronicJointLaboratory

StateKeyLaboratoryofEngines

TianJinUniversity,China

GEMS–K1

Watchdogdriverimplementationdocument

Revisionhistory

Version

By

Modifications

V0.1,6thNovember2008

Hoangchao.Zhang

Creation

Summary

Revisionhistory2

Summary3

1Introduction4

1.1Overview4

1.2Reference5

2.Typedefinition6

3GlobalVariable7

4FunctionDefinitions8

4.1SCU_vInit8

4.2SCU_vServiceWDT9

4.3SCU_vDisableWDT9

4.4SCU_vEnableWDT9

5ResourcesConfiguration10

5.1PeriperalConfig10

5.2InterruptConfig10

6CompileEnvironment10

1Introduction

1.1Overview

ThisdocumentdescribestheimplementationofthewatchdogdrivertobedevelopedintheframeoftheGEMS-K1project.Itisbasedonthewatchdogspecificationdocument.

ThesafetymonitordriverisimplementedbytricoreofTC1766

 

ThesoftwareisconfiguredtoalwaysservicetheWatchdogTimerbeforeitoverflows,theWatchdogTimerwillTime-outiftheprogramdoesnotprogressproperly.TheWatchdogTimeralsotimesoutifthesoftwareerrorwasduetohardware-relatedfailures.Thisoperationpreventsthecontrollerfrommalfunctioningforlongerthanauser-specifiedtime.

 

1.2Reference

[1]WatchDog_DRIVER_SPEC.doc

[2]

2.Typedefinition

Type

Description

Range

3GlobalVariable

Thischapterdescribestheglobalvariableusedbyscheduler.

Varialbes

Type

Description

4FunctionDefinitions

4.1SCU_vInit

Syntax

voidSCU_vInit(void)

Parameters

none

Return

none

Notification

Description

Thisfunctioninitializestheregistersrelatedtowatchdogdriver.

Indetailsthefunctionconfiguresthefollowing:

∙Configurethewatchdogmaxserviceinterval

∙initializestheregistersrelatedtowatchdog

 

Reentrancy

No

Remarks

 

4.2

SCU_vServiceWDT

Syntax

voidSCU_vServiceWDT(ushortusReload,ubyteubPassword)

Parameters

ushortusReload//reloadvalueforthewatchdogtimer

ubyteubPassword//password

Return

None

Notification

Description

Servicewatchdogtoavoidoverflowofwatchdog

Reentrancy

No

Remarks

 

4.3SCU_vDisableWDT

Syntax

voidSCU_vDisableWDT(void)

Parameters

None

Return

None

Notification

Description

Disablewatchdog

Reentrancy

No

Remarks

4.4SCU_vEnableWDT

Syntax

voidSCU_vEnableWDT(void)

Parameters

None

Return

None

Notification

Description

enablewatchdog

Reentrancy

No

Remarks

 

5ResourcesConfiguration

5.1PeriperalConfig

Source

Description

5.2InterruptConfig

Source

SRN

TOS

Priority

Name

Description

6CompileEnvironment

CompileTool:

TaskingVX-ToolsetforTricorev2.2r3

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2