From 851018e5bb9064933937513eb27e8c2ad631cda9 Mon Sep 17 00:00:00 2001 From: etisserant Date: Wed, 4 Jun 2008 08:59:55 +0000 Subject: [PATCH] Updated SVG drawing to reflect recent changes in API. --- doc/manual/en/canfestival_OS.svg | 194 ++++++++++++++++--------------- 1 file changed, 98 insertions(+), 96 deletions(-) diff --git a/doc/manual/en/canfestival_OS.svg b/doc/manual/en/canfestival_OS.svg index e21c153..57edf9c 100644 --- a/doc/manual/en/canfestival_OS.svg +++ b/doc/manual/en/canfestival_OS.svg @@ -2,7 +2,7 @@ + - - + @@ -150,14 +157,14 @@ ry="35.82243" y="173.54816" x="419.59946" - height="559.34753" - width="623.53339" + height="582.34222" + width="624.41779" id="rect11124" - style="color:#000000;fill:#6f6f6f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:4.34228134;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + style="fill:#6f6f6f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:4.34228134;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" rx="35.822395" /> //GUI generated header #include MyNode.hvoid InitNode(CO_Data* d, UNS32 id){ setNodeId(&MyNode_Data, 0x01); setState(&MyNode_Data, Initialisation);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(); TimerInit(); MyCanHandle = canOpen(&MyBoard,&MyNode_Data); StartTimerLoop(&InitNode); StartTimerLoop(&InitNode); /* Your Code Here */ StopTimerLoop(&Exit); TimerCleanup(); canClose(&MyNode_Data); canClose(&MyNode_Data); TimerCleanup();} + y="780.42712" /> Start the scheduler with InitNode as the firstStart the scheduler with InitNode as the firstscheduled function call. Always surround stack calls withEnterMutex()LeaveMutex() + d="M 157.46467,635.27754 L 87.505403,635.27754 L 17.546133,635.27754 L 52.525767,574.69104 L 87.505402,514.10453 L 122.48504,574.69103 L 157.46467,635.27754 z" + transform="matrix(0.6104602,0,0,0.6104602,742.90098,339.32963)" /> ! + x="786.69843" + y="716.24615">! it with the CanOpen node. OS - + + -- 2.39.2