
nico@207: \hypertarget{hcs12_2applicfg_8h}{
nico@207: \section{/home/epimerde/documents/tc11/Can\-Festival-3/include/hcs12/applicfg.h File Reference}
nico@207: \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}}
nico@207: }
nico@207: {\tt \#include $<$string.h$>$}\par
nico@207: {\tt \#include $<$stdio.h$>$}\par
nico@207: {\tt \#include $<$../include/hcs12/asm-m68hc12/portsaccess.h$>$}\par
nico@207: {\tt \#include $<$../include/hcs12/asm-m68hc12/ports\_\-def.h$>$}\par
nico@207: {\tt \#include $<$../include/hcs12/asm-m68hc12/ports.h$>$}\par
nico@207: {\tt \#include $<$../include/hcs12/interrupt.h$>$}\par
nico@207: {\tt \#include \char`\"{}can.h\char`\"{}}\par
nico@207: \subsection*{Defines}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}{CANOPEN\_\-BIG\_\-ENDIAN}~1
nico@207: \begin{CompactList}\small\item\em Define the architecture : little\_\-endian or big\_\-endian. \item\end{CompactList}\item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}{BUS\_\-CLOCK}~8
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}~38400
nico@207: \begin{CompactList}\small\item\em Configuration of the serials port SCI0 and SCI1. \item\end{CompactList}\item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}~9600
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}{INTEGER8}~signed char
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}{INTEGER16}~short
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}{INTEGER24}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}{INTEGER32}~long
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}{INTEGER40}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}{INTEGER48}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}{INTEGER56}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}{INTEGER64}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}{UNS8}~unsigned char
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}{UNS16}~unsigned short
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}{UNS32}~unsigned long
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}{UNS24}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}{UNS40}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}{UNS48}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}{UNS56}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}{UNS64}
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}{TIMEVAL}~UNS32
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}{TIMEVAL\_\-MAX}~0x\-FFFF
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}{MS\_\-TO\_\-TIMEVAL}(ms)~(ms $\ast$ 250)
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}{US\_\-TO\_\-TIMEVAL}(us)~(us$>$$>$2)
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}{REAL32}~float
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}{REAL64}~double
nico@207: \item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}{MSG\_\-ERR}(num, str, val)
nico@207: \begin{CompactList}\small\item\em Definition of MSG\_\-ERR. \item\end{CompactList}\item 
nico@207: \#define \hyperlink{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}{MSG\_\-WAR}(num, str, val)
nico@207: \begin{CompactList}\small\item\em Definition of MSG\_\-WAR. \item\end{CompactList}\end{CompactItemize}
nico@207: \subsection*{Functions}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: void \hyperlink{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}{init\-SCI\_\-0} (void)
nico@207: \begin{CompactList}\small\item\em Initialisation of the serial port 0. \item\end{CompactList}\item 
nico@207: void \hyperlink{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}{init\-SCI\_\-1} (void)
nico@207: \begin{CompactList}\small\item\em Initialisation of the serial port 1. \item\end{CompactList}\item 
nico@207: char $\ast$ \hyperlink{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}{hex\_\-convert} (char $\ast$buf, unsigned long value, char last\-Car)
nico@207: \item 
nico@207: void \hyperlink{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}{print\-SCI\_\-str} (char sci, const char $\ast$str)
nico@207: \item 
nico@207: void \hyperlink{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{print\-SCI\_\-nbr} (char sci, unsigned long nbr, char last\-Car)
nico@207: \item 
nico@207: void \hyperlink{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}{init\-PLL} (void)
nico@207: \item 
nico@207: void \hyperlink{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}{init\-HCS12} (void)
nico@207: \begin{CompactList}\small\item\em Put here all the code to init the HCS12. \item\end{CompactList}\end{CompactItemize}
nico@207: 
nico@207: 
nico@207: \subsection{Define Documentation}
nico@207: \hypertarget{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!BUS_CLOCK@{BUS\_\-CLOCK}}
nico@207: \index{BUS_CLOCK@{BUS\_\-CLOCK}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[BUS\_\-CLOCK]{\setlength{\rightskip}{0pt plus 5cm}\#define BUS\_\-CLOCK~8}}
nico@207: \label{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 65 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!CANOPEN_BIG_ENDIAN@{CANOPEN\_\-BIG\_\-ENDIAN}}
nico@207: \index{CANOPEN_BIG_ENDIAN@{CANOPEN\_\-BIG\_\-ENDIAN}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[CANOPEN\_\-BIG\_\-ENDIAN]{\setlength{\rightskip}{0pt plus 5cm}\#define CANOPEN\_\-BIG\_\-ENDIAN~1}}
nico@207: \label{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}
nico@207: 
nico@207: 
nico@207: Define the architecture : little\_\-endian or big\_\-endian. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 55 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER16@{INTEGER16}}
nico@207: \index{INTEGER16@{INTEGER16}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER16]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER16~short}}
nico@207: \label{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 130 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER24@{INTEGER24}}
nico@207: \index{INTEGER24@{INTEGER24}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER24]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER24}}
nico@207: \label{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 131 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER32@{INTEGER32}}
nico@207: \index{INTEGER32@{INTEGER32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER32]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER32~long}}
nico@207: \label{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 132 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER40@{INTEGER40}}
nico@207: \index{INTEGER40@{INTEGER40}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER40]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER40}}
nico@207: \label{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 133 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER48@{INTEGER48}}
nico@207: \index{INTEGER48@{INTEGER48}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER48]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER48}}
nico@207: \label{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 134 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER56@{INTEGER56}}
nico@207: \index{INTEGER56@{INTEGER56}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER56]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER56}}
nico@207: \label{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 135 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER64@{INTEGER64}}
nico@207: \index{INTEGER64@{INTEGER64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER64]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER64}}
nico@207: \label{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 136 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER8@{INTEGER8}}
nico@207: \index{INTEGER8@{INTEGER8}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[INTEGER8]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER8~signed char}}
nico@207: \label{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 129 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!MS_TO_TIMEVAL@{MS\_\-TO\_\-TIMEVAL}}
nico@207: \index{MS_TO_TIMEVAL@{MS\_\-TO\_\-TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[MS\_\-TO\_\-TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define MS\_\-TO\_\-TIMEVAL(ms)~(ms $\ast$ 250)}}
nico@207: \label{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 156 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!MSG_ERR@{MSG\_\-ERR}}
nico@207: \index{MSG_ERR@{MSG\_\-ERR}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[MSG\_\-ERR]{\setlength{\rightskip}{0pt plus 5cm}\#define MSG\_\-ERR(num, str, val)}}
nico@207: \label{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}
nico@207: 
nico@207: 
nico@207: Definition of MSG\_\-ERR. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 177 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!MSG_WAR@{MSG\_\-WAR}}
nico@207: \index{MSG_WAR@{MSG\_\-WAR}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[MSG\_\-WAR]{\setlength{\rightskip}{0pt plus 5cm}\#define MSG\_\-WAR(num, str, val)}}
nico@207: \label{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}
nico@207: 
nico@207: 
nico@207: Definition of MSG\_\-WAR. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 190 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!REAL32@{REAL32}}
nico@207: \index{REAL32@{REAL32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[REAL32]{\setlength{\rightskip}{0pt plus 5cm}\#define REAL32~float}}
nico@207: \label{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 161 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!REAL64@{REAL64}}
nico@207: \index{REAL64@{REAL64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[REAL64]{\setlength{\rightskip}{0pt plus 5cm}\#define REAL64~double}}
nico@207: \label{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 162 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!SERIAL_SCI0_BAUD_RATE@{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}}
nico@207: \index{SERIAL_SCI0_BAUD_RATE@{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[SERIAL\_\-SCI0\_\-BAUD\_\-RATE]{\setlength{\rightskip}{0pt plus 5cm}\#define SERIAL\_\-SCI0\_\-BAUD\_\-RATE~38400}}
nico@207: \label{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}
nico@207: 
nico@207: 
nico@207: Configuration of the serials port SCI0 and SCI1. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 82 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!SERIAL_SCI1_BAUD_RATE@{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}}
nico@207: \index{SERIAL_SCI1_BAUD_RATE@{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[SERIAL\_\-SCI1\_\-BAUD\_\-RATE]{\setlength{\rightskip}{0pt plus 5cm}\#define SERIAL\_\-SCI1\_\-BAUD\_\-RATE~9600}}
nico@207: \label{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 83 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!TIMEVAL@{TIMEVAL}}
nico@207: \index{TIMEVAL@{TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define TIMEVAL~UNS32}}
nico@207: \label{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 150 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!TIMEVAL_MAX@{TIMEVAL\_\-MAX}}
nico@207: \index{TIMEVAL_MAX@{TIMEVAL\_\-MAX}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[TIMEVAL\_\-MAX]{\setlength{\rightskip}{0pt plus 5cm}\#define TIMEVAL\_\-MAX~0x\-FFFF}}
nico@207: \label{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 153 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS16@{UNS16}}
nico@207: \index{UNS16@{UNS16}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS16]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS16~unsigned short}}
nico@207: \label{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 140 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS24@{UNS24}}
nico@207: \index{UNS24@{UNS24}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS24]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS24}}
nico@207: \label{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 142 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS32@{UNS32}}
nico@207: \index{UNS32@{UNS32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS32]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS32~unsigned long}}
nico@207: \label{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 141 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS40@{UNS40}}
nico@207: \index{UNS40@{UNS40}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS40]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS40}}
nico@207: \label{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 143 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS48@{UNS48}}
nico@207: \index{UNS48@{UNS48}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS48]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS48}}
nico@207: \label{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 144 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS56@{UNS56}}
nico@207: \index{UNS56@{UNS56}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS56]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS56}}
nico@207: \label{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 145 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS64@{UNS64}}
nico@207: \index{UNS64@{UNS64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS64]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS64}}
nico@207: \label{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 146 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS8@{UNS8}}
nico@207: \index{UNS8@{UNS8}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[UNS8]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS8~unsigned char}}
nico@207: \label{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 139 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!US_TO_TIMEVAL@{US\_\-TO\_\-TIMEVAL}}
nico@207: \index{US_TO_TIMEVAL@{US\_\-TO\_\-TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[US\_\-TO\_\-TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define US\_\-TO\_\-TIMEVAL(us)~(us$>$$>$2)}}
nico@207: \label{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 157 of file applicfg.h.
nico@207: 
nico@207: \subsection{Function Documentation}
nico@207: \hypertarget{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!hex_convert@{hex\_\-convert}}
nico@207: \index{hex_convert@{hex\_\-convert}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[hex\_\-convert]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ hex\_\-convert (char $\ast$ {\em buf}, unsigned long {\em value}, char {\em last\-Car})}}
nico@207: \label{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}
nico@207: 
nico@207: 
nico@207: 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
nico@207: ' 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
nico@207: ' buf\mbox{[}9\mbox{]} = '' 
nico@207: 
nico@207: Definition at line 135 of file can\-Open\-Driver.c.\hypertarget{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initHCS12@{initHCS12}}
nico@207: \index{initHCS12@{initHCS12}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[initHCS12]{\setlength{\rightskip}{0pt plus 5cm}void init\-HCS12 (void)}}
nico@207: \label{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}
nico@207: 
nico@207: 
nico@207: Put here all the code to init the HCS12. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 199 of file can\-Open\-Driver.c.
nico@207: 
nico@207: References init\-PLL(), and MSG\_\-WAR.\hypertarget{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initPLL@{initPLL}}
nico@207: \index{initPLL@{initPLL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[initPLL]{\setlength{\rightskip}{0pt plus 5cm}void init\-PLL (void)}}
nico@207: \label{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}
nico@207: 
nico@207: 
nico@207: to start using the PLL. Bus clock becomes 24 MHz if the quartz on the board is at 16 MHz 
nico@207: 
nico@207: Definition at line 188 of file can\-Open\-Driver.c.
nico@207: 
nico@207: References CLKSEL, CRGFLG, IO\_\-PORTS\_\-8, PLLCTL, REFDV, and SYNR.\hypertarget{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initSCI_0@{initSCI\_\-0}}
nico@207: \index{initSCI_0@{initSCI\_\-0}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[initSCI\_\-0]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-0 (void)}}
nico@207: \label{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}
nico@207: 
nico@207: 
nico@207: Initialisation of the serial port 0. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 115 of file can\-Open\-Driver.c.
nico@207: 
nico@207: References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI0, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI0\_\-BAUD\_\-RATE.\hypertarget{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initSCI_1@{initSCI\_\-1}}
nico@207: \index{initSCI_1@{initSCI\_\-1}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[initSCI\_\-1]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-1 (void)}}
nico@207: \label{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}
nico@207: 
nico@207: 
nico@207: Initialisation of the serial port 1. 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 124 of file can\-Open\-Driver.c.
nico@207: 
nico@207: References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI1, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI1\_\-BAUD\_\-RATE.\hypertarget{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!printSCI_nbr@{printSCI\_\-nbr}}
nico@207: \index{printSCI_nbr@{printSCI\_\-nbr}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[printSCI\_\-nbr]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-nbr (char {\em sci}, unsigned long {\em nbr}, char {\em last\-Car})}}
nico@207: \label{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}
nico@207: 
nico@207: 
nico@207: Print the number in hexadecimal to the serial port sci (sci takes the values SCI0 or SCI1) 
nico@207: 
nico@207: Definition at line 179 of file can\-Open\-Driver.c.
nico@207: 
nico@207: References hex\_\-convert(), and print\-SCI\_\-str().\hypertarget{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}{
nico@207: \index{hcs12/applicfg.h@{hcs12/applicfg.h}!printSCI_str@{printSCI\_\-str}}
nico@207: \index{printSCI_str@{printSCI\_\-str}!hcs12/applicfg.h@{hcs12/applicfg.h}}
nico@207: \subsubsection[printSCI\_\-str]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-str (char {\em sci}, const char $\ast$ {\em str})}}
nico@207: \label{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}
nico@207: 
nico@207: 
nico@207: Print the string to the serial port sci (sci takes the values SCI0 or SCI1) 
nico@207: 
nico@207: Definition at line 162 of file can\-Open\-Driver.c.
nico@207: 
nico@207: References IO\_\-PORTS\_\-8, SCIDRL, and SCISR1.



