210
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2 |
|
|
3 |
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
|
|
4 |
original version by: Nikos Drakos, CBLU, University of Leeds
|
|
5 |
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
|
|
6 |
* with significant contributions from:
|
|
7 |
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
|
|
8 |
<HTML>
|
|
9 |
<HEAD>
|
|
10 |
<TITLE>CanFestival CAN interfaces</TITLE>
|
|
11 |
<META NAME="description" CONTENT="CanFestival CAN interfaces">
|
|
12 |
<META NAME="keywords" CONTENT="manual">
|
|
13 |
<META NAME="resource-type" CONTENT="document">
|
|
14 |
<META NAME="distribution" CONTENT="global">
|
|
15 |
|
|
16 |
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
|
|
17 |
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
|
18 |
|
|
19 |
<LINK REL="STYLESHEET" HREF="manual.css">
|
|
20 |
|
|
21 |
<LINK REL="next" HREF="node20.html">
|
|
22 |
<LINK REL="previous" HREF="node18.html">
|
|
23 |
<LINK REL="up" HREF="node16.html">
|
|
24 |
<LINK REL="next" HREF="node20.html">
|
|
25 |
</HEAD>
|
|
26 |
|
|
27 |
<BODY >
|
|
28 |
|
|
29 |
<DIV CLASS="navigation"><!--Navigation Panel-->
|
|
30 |
<A NAME="tex2html384"
|
|
31 |
HREF="node20.html">
|
|
32 |
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
|
33 |
SRC="/usr/share/latex2html/icons/next.png"></A>
|
|
34 |
<A NAME="tex2html380"
|
|
35 |
HREF="node16.html">
|
|
36 |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
|
37 |
SRC="/usr/share/latex2html/icons/up.png"></A>
|
|
38 |
<A NAME="tex2html374"
|
|
39 |
HREF="node18.html">
|
|
40 |
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
|
41 |
SRC="/usr/share/latex2html/icons/prev.png"></A>
|
|
42 |
<A NAME="tex2html382"
|
|
43 |
HREF="node1.html">
|
|
44 |
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
|
45 |
SRC="/usr/share/latex2html/icons/contents.png"></A>
|
|
46 |
<BR>
|
|
47 |
<B> Next:</B> <A NAME="tex2html385"
|
|
48 |
HREF="node20.html">CanFestival events scheduling</A>
|
|
49 |
<B> Up:</B> <A NAME="tex2html381"
|
|
50 |
HREF="node16.html">Understanding Canfestival</A>
|
|
51 |
<B> Previous:</B> <A NAME="tex2html375"
|
|
52 |
HREF="node18.html">Implement CanFestival in your</A>
|
|
53 |
<B> <A NAME="tex2html383"
|
|
54 |
HREF="node1.html">Contents</A></B>
|
|
55 |
<BR>
|
|
56 |
<BR></DIV>
|
|
57 |
<!--End of Navigation Panel-->
|
|
58 |
|
|
59 |
<H2><A NAME="SECTION00053000000000000000">
|
|
60 |
CanFestival CAN interfaces</A>
|
|
61 |
</H2>
|
|
62 |
Because most CAN controllers and drivers implement FIFOs, CanFestival
|
|
63 |
consider sending message as a non bloking operation.
|
|
64 |
|
|
65 |
<P>
|
|
66 |
In order to prevent reentrent calls to the stack, messages reception is
|
|
67 |
implemented differently on µC and OS.:
|
|
68 |
|
|
69 |
<P>
|
|
70 |
|
|
71 |
<OL>
|
|
72 |
<LI>µC must provide interuption masking for timer and can
|
|
73 |
receive IT
|
|
74 |
<BR>
|
|
75 |
<DIV ALIGN="CENTER">
|
|
76 |
<IMG
|
211
|
77 |
WIDTH="630" HEIGHT="233" ALIGN="BOTTOM" BORDER="0"
|
210
|
78 |
SRC="./10000201000003CA0000016604E6A5EF.png"
|
|
79 |
ALT="Image 10000201000003CA0000016604E6A5EF">
|
|
80 |
|
|
81 |
</DIV>
|
|
82 |
</LI>
|
|
83 |
<LI>OS must provide a receive thread, a timer thread and a mutex. CAN
|
|
84 |
reception is a bloking operation.
|
|
85 |
<BR>
|
|
86 |
<DIV ALIGN="CENTER">
|
|
87 |
<IMG
|
211
|
88 |
WIDTH="630" HEIGHT="446" ALIGN="BOTTOM" BORDER="0"
|
210
|
89 |
SRC="./10000201000003F9000002CF8B0CDAEA.png"
|
|
90 |
ALT="Image 10000201000003F9000002CF8B0CDAEA">
|
|
91 |
|
|
92 |
</DIV>
|
|
93 |
</LI>
|
|
94 |
</OL>
|
|
95 |
<BR><HR>
|
|
96 |
<ADDRESS>
|
|
97 |
epimerde
|
215
|
98 |
2007-06-08
|
210
|
99 |
</ADDRESS>
|
|
100 |
</BODY>
|
|
101 |
</HTML>
|