<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Code for GCC</TITLE>
<META NAME="description" CONTENT="Code for GCC">
<META NAME="keywords" CONTENT="manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="manual.css">
<LINK REL="next" HREF="node91.html">
<LINK REL="previous" HREF="node89.html">
<LINK REL="up" HREF="node89.html">
<LINK REL="next" HREF="node91.html">
</HEAD>
<BODY >
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html1341"
HREF="node91.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html1337"
HREF="node89.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html1331"
HREF="node89.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<A NAME="tex2html1339"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1342"
HREF="node91.html">Code for CodeWarrior</A>
<B> Up:</B> <A NAME="tex2html1338"
HREF="node89.html">Initialize function</A>
<B> Previous:</B> <A NAME="tex2html1332"
HREF="node89.html">Initialize function</A>
<B> <A NAME="tex2html1340"
HREF="node1.html">Contents</A></B>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->
<H5><A NAME="SECTION000114231000000000000">
Code for GCC</A>
</H5>
<TT>void initCanHCS12 (void)
<BR>
{
<BR>
newline
/Init the HCS12 microcontroler for CanOpen <BR>
12();
<BR>
<BR>// Init the HCS12 driver
<BR>
canBusInit bi0 = {
<BR>
<BR>,
<BR>* no low power
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>*/
<BR>
<BR>,
<BR>* no time stamp
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>&sstarf#star;/
<BR>
<BR>,
<BR>* enable MSCAN
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>*/
<BR>
<BR>,
<BR>* clock source : oscillator (In fact, it is not used)
<BR>*/
<BR>
<BR>,
<BR>* no loop back
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>*/
<BR>
<BR>,
<BR>* no listen only
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>*/
<BR>
<BR>,
<BR>* no low pass filter for wk up */
<BR>
_Baudrates[CAN_BAUDRATE_250K],
<BR>
<BR>
<BR>{
<BR>
<BR>
<BR>
x00,
<BR>* Filter on 16 bits.
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Motorola Block Guide V02.14 fig
4-3 */
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 0 hight accept all msg
<BR>
<BR>&sstarf#star;/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 0 low accept all msg
<BR>
<BR>
<BR>&sstarf#star;/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 1 hight filter all of
&sstarf#star;/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 1 low filter all of
<BR>&sstarf#star;/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 2 hight filter most of
*/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 2 low filter most of
<BR>*/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 3 hight filter most of
*/
<BR>
<BR>
<BR>
x00, 0xFF, /* filter 3 low filter most of
<BR>*/
<BR>
<BR>
<BR>}
<BR>
<BR>};</TT>
<P>
<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A NAME="tex2html1341"
HREF="node91.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html1337"
HREF="node89.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html1331"
HREF="node89.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<A NAME="tex2html1339"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1342"
HREF="node91.html">Code for CodeWarrior</A>
<B> Up:</B> <A NAME="tex2html1338"
HREF="node89.html">Initialize function</A>
<B> Previous:</B> <A NAME="tex2html1332"
HREF="node89.html">Initialize function</A>
<B> <A NAME="tex2html1340"
HREF="node1.html">Contents</A></B> </DIV>
<!--End of Navigation Panel-->
<ADDRESS>
epimerde
2007-06-08
</ADDRESS>
</BODY>
</HTML>