doc/doxygen/latex/hcs12_2applicfg_8h.tex
changeset 207 b6572d0336c3
equal deleted inserted replaced
206:6787754b251b 207:b6572d0336c3
       
     1 \hypertarget{hcs12_2applicfg_8h}{
       
     2 \section{/home/epimerde/documents/tc11/Can\-Festival-3/include/hcs12/applicfg.h File Reference}
       
     3 \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}}
       
     4 }
       
     5 {\tt \#include $<$string.h$>$}\par
       
     6 {\tt \#include $<$stdio.h$>$}\par
       
     7 {\tt \#include $<$../include/hcs12/asm-m68hc12/portsaccess.h$>$}\par
       
     8 {\tt \#include $<$../include/hcs12/asm-m68hc12/ports\_\-def.h$>$}\par
       
     9 {\tt \#include $<$../include/hcs12/asm-m68hc12/ports.h$>$}\par
       
    10 {\tt \#include $<$../include/hcs12/interrupt.h$>$}\par
       
    11 {\tt \#include \char`\"{}can.h\char`\"{}}\par
       
    12 \subsection*{Defines}
       
    13 \begin{CompactItemize}
       
    14 \item 
       
    15 \#define \hyperlink{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}{CANOPEN\_\-BIG\_\-ENDIAN}~1
       
    16 \begin{CompactList}\small\item\em Define the architecture : little\_\-endian or big\_\-endian. \item\end{CompactList}\item 
       
    17 \#define \hyperlink{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}{BUS\_\-CLOCK}~8
       
    18 \item 
       
    19 \#define \hyperlink{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}~38400
       
    20 \begin{CompactList}\small\item\em Configuration of the serials port SCI0 and SCI1. \item\end{CompactList}\item 
       
    21 \#define \hyperlink{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}~9600
       
    22 \item 
       
    23 \#define \hyperlink{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}{INTEGER8}~signed char
       
    24 \item 
       
    25 \#define \hyperlink{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}{INTEGER16}~short
       
    26 \item 
       
    27 \#define \hyperlink{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}{INTEGER24}
       
    28 \item 
       
    29 \#define \hyperlink{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}{INTEGER32}~long
       
    30 \item 
       
    31 \#define \hyperlink{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}{INTEGER40}
       
    32 \item 
       
    33 \#define \hyperlink{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}{INTEGER48}
       
    34 \item 
       
    35 \#define \hyperlink{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}{INTEGER56}
       
    36 \item 
       
    37 \#define \hyperlink{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}{INTEGER64}
       
    38 \item 
       
    39 \#define \hyperlink{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}{UNS8}~unsigned char
       
    40 \item 
       
    41 \#define \hyperlink{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}{UNS16}~unsigned short
       
    42 \item 
       
    43 \#define \hyperlink{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}{UNS32}~unsigned long
       
    44 \item 
       
    45 \#define \hyperlink{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}{UNS24}
       
    46 \item 
       
    47 \#define \hyperlink{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}{UNS40}
       
    48 \item 
       
    49 \#define \hyperlink{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}{UNS48}
       
    50 \item 
       
    51 \#define \hyperlink{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}{UNS56}
       
    52 \item 
       
    53 \#define \hyperlink{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}{UNS64}
       
    54 \item 
       
    55 \#define \hyperlink{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}{TIMEVAL}~UNS32
       
    56 \item 
       
    57 \#define \hyperlink{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}{TIMEVAL\_\-MAX}~0x\-FFFF
       
    58 \item 
       
    59 \#define \hyperlink{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}{MS\_\-TO\_\-TIMEVAL}(ms)~(ms $\ast$ 250)
       
    60 \item 
       
    61 \#define \hyperlink{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}{US\_\-TO\_\-TIMEVAL}(us)~(us$>$$>$2)
       
    62 \item 
       
    63 \#define \hyperlink{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}{REAL32}~float
       
    64 \item 
       
    65 \#define \hyperlink{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}{REAL64}~double
       
    66 \item 
       
    67 \#define \hyperlink{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}{MSG\_\-ERR}(num, str, val)
       
    68 \begin{CompactList}\small\item\em Definition of MSG\_\-ERR. \item\end{CompactList}\item 
       
    69 \#define \hyperlink{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}{MSG\_\-WAR}(num, str, val)
       
    70 \begin{CompactList}\small\item\em Definition of MSG\_\-WAR. \item\end{CompactList}\end{CompactItemize}
       
    71 \subsection*{Functions}
       
    72 \begin{CompactItemize}
       
    73 \item 
       
    74 void \hyperlink{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}{init\-SCI\_\-0} (void)
       
    75 \begin{CompactList}\small\item\em Initialisation of the serial port 0. \item\end{CompactList}\item 
       
    76 void \hyperlink{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}{init\-SCI\_\-1} (void)
       
    77 \begin{CompactList}\small\item\em Initialisation of the serial port 1. \item\end{CompactList}\item 
       
    78 char $\ast$ \hyperlink{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}{hex\_\-convert} (char $\ast$buf, unsigned long value, char last\-Car)
       
    79 \item 
       
    80 void \hyperlink{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}{print\-SCI\_\-str} (char sci, const char $\ast$str)
       
    81 \item 
       
    82 void \hyperlink{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{print\-SCI\_\-nbr} (char sci, unsigned long nbr, char last\-Car)
       
    83 \item 
       
    84 void \hyperlink{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}{init\-PLL} (void)
       
    85 \item 
       
    86 void \hyperlink{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}{init\-HCS12} (void)
       
    87 \begin{CompactList}\small\item\em Put here all the code to init the HCS12. \item\end{CompactList}\end{CompactItemize}
       
    88 
       
    89 
       
    90 \subsection{Define Documentation}
       
    91 \hypertarget{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}{
       
    92 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!BUS_CLOCK@{BUS\_\-CLOCK}}
       
    93 \index{BUS_CLOCK@{BUS\_\-CLOCK}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
    94 \subsubsection[BUS\_\-CLOCK]{\setlength{\rightskip}{0pt plus 5cm}\#define BUS\_\-CLOCK~8}}
       
    95 \label{hcs12_2applicfg_8h_1caba0e524eb249e9f6bf160b74aa14e}
       
    96 
       
    97 
       
    98 
       
    99 
       
   100 Definition at line 65 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}{
       
   101 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!CANOPEN_BIG_ENDIAN@{CANOPEN\_\-BIG\_\-ENDIAN}}
       
   102 \index{CANOPEN_BIG_ENDIAN@{CANOPEN\_\-BIG\_\-ENDIAN}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   103 \subsubsection[CANOPEN\_\-BIG\_\-ENDIAN]{\setlength{\rightskip}{0pt plus 5cm}\#define CANOPEN\_\-BIG\_\-ENDIAN~1}}
       
   104 \label{hcs12_2applicfg_8h_751707f06cc1e5a62a109e6ad780b631}
       
   105 
       
   106 
       
   107 Define the architecture : little\_\-endian or big\_\-endian. 
       
   108 
       
   109 
       
   110 
       
   111 Definition at line 55 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}{
       
   112 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER16@{INTEGER16}}
       
   113 \index{INTEGER16@{INTEGER16}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   114 \subsubsection[INTEGER16]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER16~short}}
       
   115 \label{hcs12_2applicfg_8h_ef74ac6cf2d7e6e7ceb25199c0a4e8d9}
       
   116 
       
   117 
       
   118 
       
   119 
       
   120 Definition at line 130 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}{
       
   121 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER24@{INTEGER24}}
       
   122 \index{INTEGER24@{INTEGER24}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   123 \subsubsection[INTEGER24]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER24}}
       
   124 \label{hcs12_2applicfg_8h_b5cc60bcec9bf20f8565a80fe68ab8f6}
       
   125 
       
   126 
       
   127 
       
   128 
       
   129 Definition at line 131 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}{
       
   130 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER32@{INTEGER32}}
       
   131 \index{INTEGER32@{INTEGER32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   132 \subsubsection[INTEGER32]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER32~long}}
       
   133 \label{hcs12_2applicfg_8h_88a720c5453c6335aa3784ee788ec8cd}
       
   134 
       
   135 
       
   136 
       
   137 
       
   138 Definition at line 132 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}{
       
   139 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER40@{INTEGER40}}
       
   140 \index{INTEGER40@{INTEGER40}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   141 \subsubsection[INTEGER40]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER40}}
       
   142 \label{hcs12_2applicfg_8h_161c8f6e6a63ce9ed9966896f211b8a8}
       
   143 
       
   144 
       
   145 
       
   146 
       
   147 Definition at line 133 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}{
       
   148 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER48@{INTEGER48}}
       
   149 \index{INTEGER48@{INTEGER48}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   150 \subsubsection[INTEGER48]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER48}}
       
   151 \label{hcs12_2applicfg_8h_0c5278d056153e1ff380e759c884f479}
       
   152 
       
   153 
       
   154 
       
   155 
       
   156 Definition at line 134 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}{
       
   157 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER56@{INTEGER56}}
       
   158 \index{INTEGER56@{INTEGER56}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   159 \subsubsection[INTEGER56]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER56}}
       
   160 \label{hcs12_2applicfg_8h_9543c1a090746b76b7972dcb7cc7483e}
       
   161 
       
   162 
       
   163 
       
   164 
       
   165 Definition at line 135 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}{
       
   166 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER64@{INTEGER64}}
       
   167 \index{INTEGER64@{INTEGER64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   168 \subsubsection[INTEGER64]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER64}}
       
   169 \label{hcs12_2applicfg_8h_4e3182e4d79fdb99c05d57a3abe5ae4e}
       
   170 
       
   171 
       
   172 
       
   173 
       
   174 Definition at line 136 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}{
       
   175 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!INTEGER8@{INTEGER8}}
       
   176 \index{INTEGER8@{INTEGER8}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   177 \subsubsection[INTEGER8]{\setlength{\rightskip}{0pt plus 5cm}\#define INTEGER8~signed char}}
       
   178 \label{hcs12_2applicfg_8h_662ebb8e51dc6acbd8850e22f172c5bf}
       
   179 
       
   180 
       
   181 
       
   182 
       
   183 Definition at line 129 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}{
       
   184 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!MS_TO_TIMEVAL@{MS\_\-TO\_\-TIMEVAL}}
       
   185 \index{MS_TO_TIMEVAL@{MS\_\-TO\_\-TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   186 \subsubsection[MS\_\-TO\_\-TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define MS\_\-TO\_\-TIMEVAL(ms)~(ms $\ast$ 250)}}
       
   187 \label{hcs12_2applicfg_8h_ee85d2eeabff670269ebc2e00251ac6d}
       
   188 
       
   189 
       
   190 
       
   191 
       
   192 Definition at line 156 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}{
       
   193 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!MSG_ERR@{MSG\_\-ERR}}
       
   194 \index{MSG_ERR@{MSG\_\-ERR}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   195 \subsubsection[MSG\_\-ERR]{\setlength{\rightskip}{0pt plus 5cm}\#define MSG\_\-ERR(num, str, val)}}
       
   196 \label{hcs12_2applicfg_8h_99178e2619db849578b20df5aa241844}
       
   197 
       
   198 
       
   199 Definition of MSG\_\-ERR. 
       
   200 
       
   201 
       
   202 
       
   203 Definition at line 177 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}{
       
   204 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!MSG_WAR@{MSG\_\-WAR}}
       
   205 \index{MSG_WAR@{MSG\_\-WAR}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   206 \subsubsection[MSG\_\-WAR]{\setlength{\rightskip}{0pt plus 5cm}\#define MSG\_\-WAR(num, str, val)}}
       
   207 \label{hcs12_2applicfg_8h_5f4e5133c4c3113931684d3aba518bba}
       
   208 
       
   209 
       
   210 Definition of MSG\_\-WAR. 
       
   211 
       
   212 
       
   213 
       
   214 Definition at line 190 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}{
       
   215 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!REAL32@{REAL32}}
       
   216 \index{REAL32@{REAL32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   217 \subsubsection[REAL32]{\setlength{\rightskip}{0pt plus 5cm}\#define REAL32~float}}
       
   218 \label{hcs12_2applicfg_8h_a317e78f368f51a31a7ea72ea7afbc89}
       
   219 
       
   220 
       
   221 
       
   222 
       
   223 Definition at line 161 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}{
       
   224 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!REAL64@{REAL64}}
       
   225 \index{REAL64@{REAL64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   226 \subsubsection[REAL64]{\setlength{\rightskip}{0pt plus 5cm}\#define REAL64~double}}
       
   227 \label{hcs12_2applicfg_8h_3c2031a645686699b0f1e3b0ceaac6ee}
       
   228 
       
   229 
       
   230 
       
   231 
       
   232 Definition at line 162 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}{
       
   233 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!SERIAL_SCI0_BAUD_RATE@{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}}
       
   234 \index{SERIAL_SCI0_BAUD_RATE@{SERIAL\_\-SCI0\_\-BAUD\_\-RATE}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   235 \subsubsection[SERIAL\_\-SCI0\_\-BAUD\_\-RATE]{\setlength{\rightskip}{0pt plus 5cm}\#define SERIAL\_\-SCI0\_\-BAUD\_\-RATE~38400}}
       
   236 \label{hcs12_2applicfg_8h_759dabd0f6ef66964bb0b0bf8c426398}
       
   237 
       
   238 
       
   239 Configuration of the serials port SCI0 and SCI1. 
       
   240 
       
   241 
       
   242 
       
   243 Definition at line 82 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}{
       
   244 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!SERIAL_SCI1_BAUD_RATE@{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}}
       
   245 \index{SERIAL_SCI1_BAUD_RATE@{SERIAL\_\-SCI1\_\-BAUD\_\-RATE}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   246 \subsubsection[SERIAL\_\-SCI1\_\-BAUD\_\-RATE]{\setlength{\rightskip}{0pt plus 5cm}\#define SERIAL\_\-SCI1\_\-BAUD\_\-RATE~9600}}
       
   247 \label{hcs12_2applicfg_8h_2831f0cbcc1686e98815825dba49c7f5}
       
   248 
       
   249 
       
   250 
       
   251 
       
   252 Definition at line 83 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}{
       
   253 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!TIMEVAL@{TIMEVAL}}
       
   254 \index{TIMEVAL@{TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   255 \subsubsection[TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define TIMEVAL~UNS32}}
       
   256 \label{hcs12_2applicfg_8h_6ae11f09e1ebf40f3562857272fab8bf}
       
   257 
       
   258 
       
   259 
       
   260 
       
   261 Definition at line 150 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}{
       
   262 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!TIMEVAL_MAX@{TIMEVAL\_\-MAX}}
       
   263 \index{TIMEVAL_MAX@{TIMEVAL\_\-MAX}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   264 \subsubsection[TIMEVAL\_\-MAX]{\setlength{\rightskip}{0pt plus 5cm}\#define TIMEVAL\_\-MAX~0x\-FFFF}}
       
   265 \label{hcs12_2applicfg_8h_35b2fd1a5f6b88bf3842ba3663e6f85e}
       
   266 
       
   267 
       
   268 
       
   269 
       
   270 Definition at line 153 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}{
       
   271 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS16@{UNS16}}
       
   272 \index{UNS16@{UNS16}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   273 \subsubsection[UNS16]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS16~unsigned short}}
       
   274 \label{hcs12_2applicfg_8h_5528eeccf214bfe021532622d78c6a96}
       
   275 
       
   276 
       
   277 
       
   278 
       
   279 Definition at line 140 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}{
       
   280 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS24@{UNS24}}
       
   281 \index{UNS24@{UNS24}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   282 \subsubsection[UNS24]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS24}}
       
   283 \label{hcs12_2applicfg_8h_7eec2f0575ec58202f7e7e8072722508}
       
   284 
       
   285 
       
   286 
       
   287 
       
   288 Definition at line 142 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}{
       
   289 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS32@{UNS32}}
       
   290 \index{UNS32@{UNS32}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   291 \subsubsection[UNS32]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS32~unsigned long}}
       
   292 \label{hcs12_2applicfg_8h_889a782714194ae2f780002d25d6e0be}
       
   293 
       
   294 
       
   295 
       
   296 
       
   297 Definition at line 141 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}{
       
   298 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS40@{UNS40}}
       
   299 \index{UNS40@{UNS40}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   300 \subsubsection[UNS40]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS40}}
       
   301 \label{hcs12_2applicfg_8h_e83de5a9f9a3ea891eb0ce1044277ee9}
       
   302 
       
   303 
       
   304 
       
   305 
       
   306 Definition at line 143 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}{
       
   307 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS48@{UNS48}}
       
   308 \index{UNS48@{UNS48}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   309 \subsubsection[UNS48]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS48}}
       
   310 \label{hcs12_2applicfg_8h_c67204750d2dc3f2681555bf81368765}
       
   311 
       
   312 
       
   313 
       
   314 
       
   315 Definition at line 144 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}{
       
   316 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS56@{UNS56}}
       
   317 \index{UNS56@{UNS56}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   318 \subsubsection[UNS56]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS56}}
       
   319 \label{hcs12_2applicfg_8h_0cba1f6285c9f23a663d56d0c99559da}
       
   320 
       
   321 
       
   322 
       
   323 
       
   324 Definition at line 145 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}{
       
   325 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS64@{UNS64}}
       
   326 \index{UNS64@{UNS64}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   327 \subsubsection[UNS64]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS64}}
       
   328 \label{hcs12_2applicfg_8h_55de1c7512d46f732dcaea5db4aa7fa9}
       
   329 
       
   330 
       
   331 
       
   332 
       
   333 Definition at line 146 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}{
       
   334 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!UNS8@{UNS8}}
       
   335 \index{UNS8@{UNS8}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   336 \subsubsection[UNS8]{\setlength{\rightskip}{0pt plus 5cm}\#define UNS8~unsigned char}}
       
   337 \label{hcs12_2applicfg_8h_539234687760592d01a8b0d3357bc00e}
       
   338 
       
   339 
       
   340 
       
   341 
       
   342 Definition at line 139 of file applicfg.h.\hypertarget{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}{
       
   343 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!US_TO_TIMEVAL@{US\_\-TO\_\-TIMEVAL}}
       
   344 \index{US_TO_TIMEVAL@{US\_\-TO\_\-TIMEVAL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   345 \subsubsection[US\_\-TO\_\-TIMEVAL]{\setlength{\rightskip}{0pt plus 5cm}\#define US\_\-TO\_\-TIMEVAL(us)~(us$>$$>$2)}}
       
   346 \label{hcs12_2applicfg_8h_56849fe35cb6cbe17f7768a2d3af62f8}
       
   347 
       
   348 
       
   349 
       
   350 
       
   351 Definition at line 157 of file applicfg.h.
       
   352 
       
   353 \subsection{Function Documentation}
       
   354 \hypertarget{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}{
       
   355 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!hex_convert@{hex\_\-convert}}
       
   356 \index{hex_convert@{hex\_\-convert}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   357 \subsubsection[hex\_\-convert]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ hex\_\-convert (char $\ast$ {\em buf}, unsigned long {\em value}, char {\em last\-Car})}}
       
   358 \label{hcs12_2applicfg_8h_2a9aef0efc98c5b41ef97ef91ad403e5}
       
   359 
       
   360 
       
   361 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
       
   362 ' 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
       
   363 ' buf\mbox{[}9\mbox{]} = '' 
       
   364 
       
   365 Definition at line 135 of file can\-Open\-Driver.c.\hypertarget{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}{
       
   366 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initHCS12@{initHCS12}}
       
   367 \index{initHCS12@{initHCS12}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   368 \subsubsection[initHCS12]{\setlength{\rightskip}{0pt plus 5cm}void init\-HCS12 (void)}}
       
   369 \label{hcs12_2applicfg_8h_c71399958d35a7f703416f025603ee26}
       
   370 
       
   371 
       
   372 Put here all the code to init the HCS12. 
       
   373 
       
   374 
       
   375 
       
   376 Definition at line 199 of file can\-Open\-Driver.c.
       
   377 
       
   378 References init\-PLL(), and MSG\_\-WAR.\hypertarget{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}{
       
   379 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initPLL@{initPLL}}
       
   380 \index{initPLL@{initPLL}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   381 \subsubsection[initPLL]{\setlength{\rightskip}{0pt plus 5cm}void init\-PLL (void)}}
       
   382 \label{hcs12_2applicfg_8h_51e71c727eb7a49e2fde962a3d190a6b}
       
   383 
       
   384 
       
   385 to start using the PLL. Bus clock becomes 24 MHz if the quartz on the board is at 16 MHz 
       
   386 
       
   387 Definition at line 188 of file can\-Open\-Driver.c.
       
   388 
       
   389 References CLKSEL, CRGFLG, IO\_\-PORTS\_\-8, PLLCTL, REFDV, and SYNR.\hypertarget{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}{
       
   390 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initSCI_0@{initSCI\_\-0}}
       
   391 \index{initSCI_0@{initSCI\_\-0}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   392 \subsubsection[initSCI\_\-0]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-0 (void)}}
       
   393 \label{hcs12_2applicfg_8h_f86db4b817c1a59a819cbdd51779bfaa}
       
   394 
       
   395 
       
   396 Initialisation of the serial port 0. 
       
   397 
       
   398 
       
   399 
       
   400 Definition at line 115 of file can\-Open\-Driver.c.
       
   401 
       
   402 References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI0, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI0\_\-BAUD\_\-RATE.\hypertarget{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}{
       
   403 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!initSCI_1@{initSCI\_\-1}}
       
   404 \index{initSCI_1@{initSCI\_\-1}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   405 \subsubsection[initSCI\_\-1]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-1 (void)}}
       
   406 \label{hcs12_2applicfg_8h_b56fa1754706a57059103710178bdb68}
       
   407 
       
   408 
       
   409 Initialisation of the serial port 1. 
       
   410 
       
   411 
       
   412 
       
   413 Definition at line 124 of file can\-Open\-Driver.c.
       
   414 
       
   415 References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI1, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI1\_\-BAUD\_\-RATE.\hypertarget{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{
       
   416 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!printSCI_nbr@{printSCI\_\-nbr}}
       
   417 \index{printSCI_nbr@{printSCI\_\-nbr}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   418 \subsubsection[printSCI\_\-nbr]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-nbr (char {\em sci}, unsigned long {\em nbr}, char {\em last\-Car})}}
       
   419 \label{hcs12_2applicfg_8h_80f5dbbc046cba0e5e9cf2bcc4c1e78e}
       
   420 
       
   421 
       
   422 Print the number in hexadecimal to the serial port sci (sci takes the values SCI0 or SCI1) 
       
   423 
       
   424 Definition at line 179 of file can\-Open\-Driver.c.
       
   425 
       
   426 References hex\_\-convert(), and print\-SCI\_\-str().\hypertarget{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}{
       
   427 \index{hcs12/applicfg.h@{hcs12/applicfg.h}!printSCI_str@{printSCI\_\-str}}
       
   428 \index{printSCI_str@{printSCI\_\-str}!hcs12/applicfg.h@{hcs12/applicfg.h}}
       
   429 \subsubsection[printSCI\_\-str]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-str (char {\em sci}, const char $\ast$ {\em str})}}
       
   430 \label{hcs12_2applicfg_8h_6e3075ae435e83aefc018e5218c197d0}
       
   431 
       
   432 
       
   433 Print the string to the serial port sci (sci takes the values SCI0 or SCI1) 
       
   434 
       
   435 Definition at line 162 of file can\-Open\-Driver.c.
       
   436 
       
   437 References IO\_\-PORTS\_\-8, SCIDRL, and SCISR1.