doc/doxygen/latex/hcs12_2applicfg_8h.tex
author nico
Thu, 07 Jun 2007 09:03:41 +0200
changeset 213 1df3055de547
parent 207 b6572d0336c3
permissions -rw-r--r--
Manual and Documentation finish
\hypertarget{hcs12_2applicfg_8h}{
\section{/home/epimerde/documents/tc11/Can\-Festival-3/include/hcs12/applicfg.h File Reference}
\label{hcs12_2applicfg_8h}\index{/home/epimerde/documents/tc11/CanFestival-3/include/hcs12/applicfg.h@{/home/epimerde/documents/tc11/CanFestival-3/include/hcs12/applicfg.h}}
}
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$../include/hcs12/asm-m68hc12/portsaccess.h$>$}\par
{\tt \#include $<$../include/hcs12/asm-m68hc12/ports\_\-def.h$>$}\par
{\tt \#include $<$../include/hcs12/asm-m68hc12/ports.h$>$}\par
{\tt \#include $<$../include/hcs12/interrupt.h$>$}\par
{\tt \#include \char`\"{}can.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}{CANOPEN\_\-BIG\_\-ENDIAN}~1
\begin{CompactList}\small\item\em Define the architecture : little\_\-endian or big\_\-endian. \item\end{CompactList}\item 
\#define \hyperlink{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}{BUS\_\-CLOCK}~8
\item 
\#define \hyperlink{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}~38400
\begin{CompactList}\small\item\em Configuration of the serials port SCI0 and SCI1. \item\end{CompactList}\item 
\#define \hyperlink{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}~9600
\item 
\#define \hyperlink{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}{INTEGER8}~signed char
\item 
\#define \hyperlink{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}{INTEGER16}~short
\item 
\#define \hyperlink{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}{INTEGER24}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}{INTEGER32}~long
\item 
\#define \hyperlink{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}{INTEGER40}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}{INTEGER48}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}{INTEGER56}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}{INTEGER64}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}{UNS8}~unsigned char
\item 
\#define \hyperlink{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}{UNS16}~unsigned short
\item 
\#define \hyperlink{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}{UNS32}~unsigned long
\item 
\#define \hyperlink{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}{UNS24}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}{UNS40}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}{UNS48}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}{UNS56}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}{UNS64}
\item 
\#define \hyperlink{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}{TIMEVAL}~UNS32
\item 
\#define \hyperlink{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}{TIMEVAL\_\-MAX}~0x\-FFFF
\item 
\#define \hyperlink{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}{MS\_\-TO\_\-TIMEVAL}(ms)~(ms $\ast$ 250)
\item 
\#define \hyperlink{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}{US\_\-TO\_\-TIMEVAL}(us)~(us$>$$>$2)
\item 
\#define \hyperlink{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}{REAL32}~float
\item 
\#define \hyperlink{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}{REAL64}~double
\item 
\#define \hyperlink{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}{MSG\_\-ERR}(num, str, val)
\begin{CompactList}\small\item\em Definition of MSG\_\-ERR. \item\end{CompactList}\item 
\#define \hyperlink{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}{MSG\_\-WAR}(num, str, val)
\begin{CompactList}\small\item\em Definition of MSG\_\-WAR. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}{init\-SCI\_\-0} (void)
\begin{CompactList}\small\item\em Initialisation of the serial port 0. \item\end{CompactList}\item 
void \hyperlink{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}{init\-SCI\_\-1} (void)
\begin{CompactList}\small\item\em Initialisation of the serial port 1. \item\end{CompactList}\item 
char $\ast$ \hyperlink{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}{hex\_\-convert} (char $\ast$buf, unsigned long value, char last\-Car)
\item 
void \hyperlink{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}{print\-SCI\_\-str} (char sci, const char $\ast$str)
\item 
void \hyperlink{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{print\-SCI\_\-nbr} (char sci, unsigned long nbr, char last\-Car)
\item 
void \hyperlink{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}{init\-PLL} (void)
\item 
void \hyperlink{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}{init\-HCS12} (void)
\begin{CompactList}\small\item\em Put here all the code to init the HCS12. \item\end{CompactList}\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!BUS_CLOCK@{BUS\_\-CLOCK}}
\index{BUS_CLOCK@{BUS\_\-CLOCK}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[BUS\_\-CLOCK]{\setlength{\rightskip}{0pt plus 5cm}\#define BUS\_\-CLOCK~8}}
\label{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}




Definition at line 65 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!CANOPEN_BIG_ENDIAN@{CANOPEN\_\-BIG\_\-ENDIAN}}
\index{CANOPEN_BIG_ENDIAN@{CANOPEN\_\-BIG\_\-ENDIAN}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[CANOPEN\_\-BIG\_\-ENDIAN]{\setlength{\rightskip}{0pt plus 5cm}\#define CANOPEN\_\-BIG\_\-ENDIAN~1}}
\label{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}


Define the architecture : little\_\-endian or big\_\-endian. 



Definition at line 55 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER16@{INTEGER16}}
\index{INTEGER16@{INTEGER16}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER16]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER16~short}}
\label{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}




Definition at line 130 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER24@{INTEGER24}}
\index{INTEGER24@{INTEGER24}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER24]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER24}}
\label{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}




Definition at line 131 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER32@{INTEGER32}}
\index{INTEGER32@{INTEGER32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER32]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER32~long}}
\label{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}




Definition at line 132 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER40@{INTEGER40}}
\index{INTEGER40@{INTEGER40}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER40]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER40}}
\label{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}




Definition at line 133 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER48@{INTEGER48}}
\index{INTEGER48@{INTEGER48}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER48]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER48}}
\label{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}




Definition at line 134 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER56@{INTEGER56}}
\index{INTEGER56@{INTEGER56}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER56]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER56}}
\label{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}




Definition at line 135 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER64@{INTEGER64}}
\index{INTEGER64@{INTEGER64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER64]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER64}}
\label{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}




Definition at line 136 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER8@{INTEGER8}}
\index{INTEGER8@{INTEGER8}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[INTEGER8]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER8~signed char}}
\label{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}




Definition at line 129 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!MS_TO_TIMEVAL@{MS\_\-TO\_\-TIMEVAL}}
\index{MS_TO_TIMEVAL@{MS\_\-TO\_\-TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[MS\_\-TO\_\-TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define MS\_\-TO\_\-TIMEVAL(ms)~(ms $\ast$ 250)}}
\label{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}




Definition at line 156 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!MSG_ERR@{MSG\_\-ERR}}
\index{MSG_ERR@{MSG\_\-ERR}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[MSG\_\-ERR]{\setlength{\rightskip}{0pt plus 5cm}\#define MSG\_\-ERR(num, str, val)}}
\label{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}


Definition of MSG\_\-ERR. 



Definition at line 177 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!MSG_WAR@{MSG\_\-WAR}}
\index{MSG_WAR@{MSG\_\-WAR}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[MSG\_\-WAR]{\setlength{\rightskip}{0pt plus 5cm}\#define MSG\_\-WAR(num, str, val)}}
\label{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}


Definition of MSG\_\-WAR. 



Definition at line 190 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!REAL32@{REAL32}}
\index{REAL32@{REAL32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[REAL32]{\setlength{\rightskip}{0pt plus 5cm}\#define REAL32~float}}
\label{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}




Definition at line 161 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!REAL64@{REAL64}}
\index{REAL64@{REAL64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[REAL64]{\setlength{\rightskip}{0pt plus 5cm}\#define REAL64~double}}
\label{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}




Definition at line 162 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!SERIAL_SCI0_BAUD_RATE@{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}}
\index{SERIAL_SCI0_BAUD_RATE@{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[SERIAL\_\-SCI0\_\-BAUD\_\-RATE]{\setlength{\rightskip}{0pt plus 5cm}\#define SERIAL\_\-SCI0\_\-BAUD\_\-RATE~38400}}
\label{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}


Configuration of the serials port SCI0 and SCI1. 



Definition at line 82 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!SERIAL_SCI1_BAUD_RATE@{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}}
\index{SERIAL_SCI1_BAUD_RATE@{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[SERIAL\_\-SCI1\_\-BAUD\_\-RATE]{\setlength{\rightskip}{0pt plus 5cm}\#define SERIAL\_\-SCI1\_\-BAUD\_\-RATE~9600}}
\label{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}




Definition at line 83 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!TIMEVAL@{TIMEVAL}}
\index{TIMEVAL@{TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define TIMEVAL~UNS32}}
\label{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}




Definition at line 150 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!TIMEVAL_MAX@{TIMEVAL\_\-MAX}}
\index{TIMEVAL_MAX@{TIMEVAL\_\-MAX}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[TIMEVAL\_\-MAX]{\setlength{\rightskip}{0pt plus 5cm}\#define TIMEVAL\_\-MAX~0x\-FFFF}}
\label{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}




Definition at line 153 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS16@{UNS16}}
\index{UNS16@{UNS16}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS16]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS16~unsigned short}}
\label{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}




Definition at line 140 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS24@{UNS24}}
\index{UNS24@{UNS24}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS24]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS24}}
\label{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}




Definition at line 142 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS32@{UNS32}}
\index{UNS32@{UNS32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS32]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS32~unsigned long}}
\label{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}




Definition at line 141 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS40@{UNS40}}
\index{UNS40@{UNS40}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS40]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS40}}
\label{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}




Definition at line 143 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS48@{UNS48}}
\index{UNS48@{UNS48}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS48]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS48}}
\label{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}




Definition at line 144 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS56@{UNS56}}
\index{UNS56@{UNS56}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS56]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS56}}
\label{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}




Definition at line 145 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS64@{UNS64}}
\index{UNS64@{UNS64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS64]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS64}}
\label{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}




Definition at line 146 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS8@{UNS8}}
\index{UNS8@{UNS8}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[UNS8]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS8~unsigned char}}
\label{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}




Definition at line 139 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!US_TO_TIMEVAL@{US\_\-TO\_\-TIMEVAL}}
\index{US_TO_TIMEVAL@{US\_\-TO\_\-TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[US\_\-TO\_\-TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define US\_\-TO\_\-TIMEVAL(us)~(us$>$$>$2)}}
\label{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}




Definition at line 157 of file applicfg.h.

\subsection{Function Documentation}
\hypertarget{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!hex_convert@{hex\_\-convert}}
\index{hex_convert@{hex\_\-convert}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[hex\_\-convert]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ hex\_\-convert (char $\ast$ {\em buf}, unsigned long {\em value}, char {\em last\-Car})}}
\label{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}


Convert an integer to a string in hexadecimal format If you do not wants to use a last\-Car, put last\-Car = '' (end of string) ex : value = 0XABCDEF and last\-Car = '\par
' buf\mbox{[}0\mbox{]} = '0' buf\mbox{[}1\mbox{]} = 'X' buf\mbox{[}2\mbox{]} = 'A' .... buf\mbox{[}7\mbox{]} = 'F' buf\mbox{[}8\mbox{]} = '\par
' buf\mbox{[}9\mbox{]} = '' 

Definition at line 135 of file can\-Open\-Driver.c.\hypertarget{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!initHCS12@{initHCS12}}
\index{initHCS12@{initHCS12}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[initHCS12]{\setlength{\rightskip}{0pt plus 5cm}void init\-HCS12 (void)}}
\label{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}


Put here all the code to init the HCS12. 



Definition at line 199 of file can\-Open\-Driver.c.

References init\-PLL(), and MSG\_\-WAR.\hypertarget{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!initPLL@{initPLL}}
\index{initPLL@{initPLL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[initPLL]{\setlength{\rightskip}{0pt plus 5cm}void init\-PLL (void)}}
\label{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}


to start using the PLL. Bus clock becomes 24 MHz if the quartz on the board is at 16 MHz 

Definition at line 188 of file can\-Open\-Driver.c.

References CLKSEL, CRGFLG, IO\_\-PORTS\_\-8, PLLCTL, REFDV, and SYNR.\hypertarget{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!initSCI_0@{initSCI\_\-0}}
\index{initSCI_0@{initSCI\_\-0}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[initSCI\_\-0]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-0 (void)}}
\label{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}


Initialisation of the serial port 0. 



Definition at line 115 of file can\-Open\-Driver.c.

References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI0, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI0\_\-BAUD\_\-RATE.\hypertarget{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!initSCI_1@{initSCI\_\-1}}
\index{initSCI_1@{initSCI\_\-1}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[initSCI\_\-1]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-1 (void)}}
\label{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}


Initialisation of the serial port 1. 



Definition at line 124 of file can\-Open\-Driver.c.

References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI1, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI1\_\-BAUD\_\-RATE.\hypertarget{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!printSCI_nbr@{printSCI\_\-nbr}}
\index{printSCI_nbr@{printSCI\_\-nbr}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[printSCI\_\-nbr]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-nbr (char {\em sci}, unsigned long {\em nbr}, char {\em last\-Car})}}
\label{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}


Print the number in hexadecimal to the serial port sci (sci takes the values SCI0 or SCI1) 

Definition at line 179 of file can\-Open\-Driver.c.

References hex\_\-convert(), and print\-SCI\_\-str().\hypertarget{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}{
\index{hcs12/applicfg.h@{hcs12/applicfg.h}!printSCI_str@{printSCI\_\-str}}
\index{printSCI_str@{printSCI\_\-str}!hcs12/applicfg.h@{hcs12/applicfg.h}}
\subsubsection[printSCI\_\-str]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-str (char {\em sci}, const char $\ast$ {\em str})}}
\label{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}


Print the string to the serial port sci (sci takes the values SCI0 or SCI1) 

Definition at line 162 of file can\-Open\-Driver.c.

References IO\_\-PORTS\_\-8, SCIDRL, and SCISR1.