doc/manual/en/html/node91.html
author nico
Fri, 08 Jun 2007 09:23:56 +0200
changeset 215 f49e5a6b7804
parent 211 2a4c2ca03555
permissions -rw-r--r--
Manual and Documentation finish
<!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 CodeWarrior</TITLE>
<META NAME="description" CONTENT="Code for CodeWarrior">
<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="previous" HREF="node90.html">
<LINK REL="up" HREF="node89.html">
<LINK REL="next" HREF="node92.html">
</HEAD>

<BODY >

<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html1351"
  HREF="node92.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html1347"
  HREF="node89.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html1343"
  HREF="node90.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A> 
<A NAME="tex2html1349"
  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="tex2html1352"
  HREF="node92.html">Who to use warnings</A>
<B> Up:</B> <A NAME="tex2html1348"
  HREF="node89.html">Initialize function</A>
<B> Previous:</B> <A NAME="tex2html1344"
  HREF="node90.html">Code for GCC</A>
 &nbsp; <B>  <A NAME="tex2html1350"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR></DIV>
<!--End of Navigation Panel-->

<H5><A NAME="SECTION000114232000000000000">
Code for CodeWarrior</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>
  
<BR>
<BR>{
<BR>
  
<BR>
<BR>
1, /* clksrc */
<BR>
  
<BR>
<BR>
3, /* brp 
<BR>&sstarf#star;/
<BR>
  
<BR>
<BR>
0, /* sjw 
<BR>&sstarf#star;/
<BR>
  
<BR>
<BR>
0, /* samp 
<BR>*/
<BR>
  
<BR>
<BR>
1, /* tseg2 &sstarf#star;/
<BR>
  
<BR>
<BR>
12,/* tseg1 &sstarf#star;/
<BR>
  
<BR>
<BR>},
<BR>
  
<BR>
<BR>{
<BR>
  
<BR>
<BR>
x00, 
<BR>* Filter on 16 bits.
<BR>
  
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
See 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="tex2html1351"
  HREF="node92.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html1347"
  HREF="node89.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html1343"
  HREF="node90.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A> 
<A NAME="tex2html1349"
  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="tex2html1352"
  HREF="node92.html">Who to use warnings</A>
<B> Up:</B> <A NAME="tex2html1348"
  HREF="node89.html">Initialize function</A>
<B> Previous:</B> <A NAME="tex2html1344"
  HREF="node90.html">Code for GCC</A>
 &nbsp; <B>  <A NAME="tex2html1350"
  HREF="node1.html">Contents</A></B> </DIV>
<!--End of Navigation Panel-->
<ADDRESS>
epimerde
2007-06-08
</ADDRESS>
</BODY>
</HTML>