# HG changeset patch # User greg # Date 1210172780 -7200 # Node ID 3c5b2eb519228356077726f77decd126db6e7609 # Parent 51cf26e3f3526ef6b84dcccb69976c3dee0f5af8 add TimerInit, TimerCleanup and Exit functions diff -r 51cf26e3f352 -r 3c5b2eb51922 doc/manual/en/canfestival_OS.svg --- a/doc/manual/en/canfestival_OS.svg Wed May 07 16:59:50 2008 +0200 +++ b/doc/manual/en/canfestival_OS.svg Wed May 07 17:06:20 2008 +0200 @@ -12,15 +12,14 @@ height="595.27557pt" id="svg2" sodipodi:version="0.32" - inkscape:version="0.45" - sodipodi:docbase="/home/edouard/workspace/CanFestival-3/doc" + inkscape:version="0.45.1" + sodipodi:docbase="/home/kgad/CVS/CanFestival-3/doc/manual/en" sodipodi:docname="canfestival_OS.svg" version="1.0" inkscape:export-filename="/home/edouard/workspace/CanFestival-3/doc/canfestival_OS.png" inkscape:export-xdpi="87.57" inkscape:export-ydpi="87.57" - inkscape:output_extension="org.inkscape.output.svg.inkscape" - sodipodi:modified="true"> + inkscape:output_extension="org.inkscape.output.svg.inkscape"> void Exit(CO_Data*d, UNS32 id){}void Operational(){ /* Your code for Operational State */}int main(int argc, char *argv[]){ LoadCanDriver("can_peak_win32.dll"); MyNode_Data.operational = Operational; s_BOARD MyBoard = {"0", "500K"}; s_BOARD MyBoard = {"0", "500K"}; MyCanHandle = canOpen(&MyBoard,&MyNode_Data); TimerInit(); StartTimerLoop(&InitNode); StartTimerLoop(&InitNode); /* Your Code Here */ StopTimerLoop(); StopTimerLoop(&Exit); TimerCleanup(); canClose(&MyNode_Data); canClose(&MyNode_Data);} + y="765.16717" /> OS - + +