сделаны базовые хедеры: - mylibs_config - mylibs_defs - mylibs_include - trace - trackers - bit_access также сделан модуль general_gpio.c/.h Но надо проверить переструктуризированные модули Остальные модули __general_XXX в целом готовы и как-то работают (на МЗКТЭ) но не структуризированы
664 lines
76 KiB
TeX
664 lines
76 KiB
TeX
\doxysection{\+\_\+\+\_\+general\+\_\+tim.\+c}
|
||
\hypertarget{____general__tim_8c_source}{}\label{____general__tim_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_tim.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_tim.c}}
|
||
|
||
\begin{DoxyCode}{0}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00002}00002\ \textcolor{comment}{\ \ **************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00003}00003\ \textcolor{comment}{\ \ *\ @file\ general\_tim.c}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00004}00004\ \textcolor{comment}{\ \ *\ @brief\ Модуль\ для\ инициализации\ таймеров.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00005}00005\ \textcolor{comment}{\ \ **************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00006}00006\ \textcolor{comment}{\ \ @verbatim}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00007}00007\ \textcolor{comment}{\ \ //-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/Функции-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\///}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00008}00008\ \textcolor{comment}{\ \ Functions:\ user\ init}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00009}00009\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_Base\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ TIM}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00010}00010\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_Encoder\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ режима\ энкодера}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00011}00011\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_Output\_PWM\_Init\ \ \ \ \ \ \ \ \ \ \ Инициализация\ PWM\ с\ выводом\ на\ GPIO}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00012}00012\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_OC\_Comparator\_Init\ \ \ \ \ \ \ \ Инициализация\ TIM\ как\ компаратора}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00013}00013\ \textcolor{comment}{\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00014}00014\ \textcolor{comment}{\ \ Functions:\ user}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00015}00015\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_Delay\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Задержка\ с\ помощью\ TIM}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00016}00016\ \textcolor{comment}{\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00017}00017\ \textcolor{comment}{\ \ Functions:\ tim\ initialize}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00018}00018\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_Base\_MspInit\ \ \ \ \ \ \ \ \ \ \ \ \ \ Аналог\ HAL\_MspInit\ для\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00019}00019\ \textcolor{comment}{\ \ \ \ -\/\ TIM\_Base\_MspDeInit\ \ \ \ \ \ \ \ \ \ \ \ Аналог\ HAL\_MspDeInit\ для\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00020}00020\ \textcolor{comment}{\ \ @endverbatim}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00021}00021\ \textcolor{comment}{\ \ *************************************************************************/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00022}00022\ \textcolor{preprocessor}{\#include\ "{}general\_tim.h"{}}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00023}00023\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__gpio_8h}{general\_gpio.h}}"{}}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00024}00024\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00025}00025\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00026}00026\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/TIM\ INIT\ FUNCTIONS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\ }\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00027}00027\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00028}00028\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ TIM\ with\ TIM\_SettingsTypeDef\ structure.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00029}00029\ \textcolor{comment}{\ \ *\ @param\ \ stim\ -\/\ указатель\ на\ структуру\ с\ настройками\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00030}00030\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00031}00031\ \textcolor{comment}{\ \ *\ @note\ \ \ Данная\ структура\ содержит\ хендл\ таймера\ и\ структуры\ для\ его\ настройки.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00032}00032\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00033}00033\ HAL\_StatusTypeDef\ TIM\_Base\_Init(\mbox{\hyperlink{struct_t_i_m___settings_type_def}{TIM\_SettingsTypeDef}}\ *stim)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00034}00034\ \{\ \textcolor{comment}{//\ function\ takes\ structure\ for\ init}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00035}00035\ \ \ \textcolor{comment}{//\ check\ that\ htim\ is\ defined}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00036}00036\ \ \ \textcolor{keywordflow}{if}\ (stim-\/>htim.Instance\ ==\ NULL)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00037}00037\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00038}00038\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00039}00039\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00040}00040\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00041}00041\ \ \ \textcolor{keywordflow}{if}(stim-\/>sTickBaseUS)\ \textcolor{comment}{//\ if\ tickbase\ isnt\ disable}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00042}00042\ \ \ \{\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00043}00043\ \ \ \ \ \textcolor{keywordflow}{if}(stim-\/>sTimAHBFreqMHz\ ==\ NULL)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00044}00044\ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00045}00045\ \ \ \ \ stim-\/>htim.Init.Prescaler\ =\ (stim-\/>sTimAHBFreqMHz*stim-\/>sTickBaseUS)\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00046}00046\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00047}00047\ \ \ \ \ \textcolor{keywordflow}{if}\ ((stim-\/>sTimFreqHz\ !=\ NULL))}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00048}00048\ \ \ \ \ \ \ stim-\/>htim.Init.Period\ =\ ((1000000/stim-\/>sTickBaseUS)\ /\ stim-\/>sTimFreqHz)\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00049}00049\ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (stim-\/>htim.Init.Period\ ==\ NULL)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00050}00050\ \ \ \ \ \ \ stim-\/>htim.Init.Period\ =\ 0xFFFF;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00051}00051\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00052}00052\ \ \ \ \ \textcolor{keywordflow}{if}(stim-\/>sTickBasePrescaler)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00053}00053\ \ \ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00054}00054\ \ \ \ \ \ \ stim-\/>htim.Init.Prescaler\ =\ (stim-\/>htim.Init.Prescaler\ +\ 1)/stim-\/>sTickBasePrescaler\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00055}00055\ \ \ \ \ \ \ stim-\/>htim.Init.Period\ \ \ \ =\ (stim-\/>htim.Init.Period\ +\ 1)*stim-\/>sTickBasePrescaler\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00056}00056\ \ \ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00057}00057\ \ \ \ \ \textcolor{keywordflow}{else}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00058}00058\ \ \ \ \ \ \ stim-\/>sTickBasePrescaler\ =\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00059}00059\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00060}00060\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00061}00061\ \ \ \textcolor{comment}{//\ fix\ overflow\ of\ presc\ and\ period\ if\ need}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00062}00062\ \ \ \textcolor{keywordflow}{for}(\textcolor{keywordtype}{int}\ i\ =\ 0;\ (stim-\/>htim.Init.Prescaler\ >\ 0xFFFF)\ ||\ (stim-\/>htim.Init.Period\ >\ 0xFFFF);\ i++)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00063}00063\ \ \ \{\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00064}00064\ \ \ \ \ \textcolor{keywordflow}{if}\ (i>10)\ \textcolor{comment}{//\ if\ it\ isnt\ fixed\ after\ 10\ itteration\ -\/\ return\ HAL\_ERRPOR}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00065}00065\ \ \ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00066}00066\ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00067}00067\ \ \ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00068}00068\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00069}00069\ \ \ \ \ \textcolor{comment}{//\ if\ timbase\ is\ too\ big\ (prescaller\ too\ big\ for\ choosen\ base\ from\ MHZ)}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00070}00070\ \ \ \ \ \textcolor{keywordflow}{if}(stim-\/>htim.Init.Prescaler\ >\ 0xFFFF)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00071}00071\ \ \ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00072}00072\ \ \ \ \ \ \ \textcolor{comment}{//\ переносим\ часть\ пресскалера\ в\ период}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00073}00073\ \ \ \ \ \ \ stim-\/>htim.Init.Prescaler\ =\ ((stim-\/>htim.Init.Prescaler\ +\ 1)/2)\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00074}00074\ \ \ \ \ \ \ stim-\/>htim.Init.Period\ =\ ((stim-\/>htim.Init.Period\ +\ 1)*2)\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00075}00075\ \ \ \ \ \ \ \textcolor{comment}{//\ обновляем\ TickBase,\ если\ есть\ куда\ обновлять}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00076}00076\ \ \ \ \ \ \ \textcolor{keywordflow}{if}(stim-\/>sTickBaseUS\ >\ 1)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00077}00077\ \ \ \ \ \ \ \ \ stim-\/>sTickBaseUS\ /=\ 2;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00078}00078\ \ \ \ \ \ \ \textcolor{comment}{//\ обновляем\ sTickBasePrescaler,\ если\ sTickBaseUS\ -\/\ уже\ в\ минимуме}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00079}00079\ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (stim-\/>sTickBaseUS\ ==\ 1)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00080}00080\ \ \ \ \ \ \ \ \ stim-\/>sTickBasePrescaler\ *=\ 2;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00081}00081\ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{comment}{//\ if\ TickBase\ =\ 0\ -\/\ return\ error}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00082}00082\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00083}00083\ \ \ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00084}00084\ \ \ \ \ \textcolor{comment}{//\ if\ freq\ is\ too\ low\ (period\ too\ big\ for\ choosen\ base)}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00085}00085\ \ \ \ \ \textcolor{keywordflow}{if}(stim-\/>htim.Init.Period\ >\ 0xFFFF)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00086}00086\ \ \ \ \ \{\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00087}00087\ \ \ \ \ \ \ \textcolor{comment}{//\ переносим\ часть\ периода\ в\ прескалер}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00088}00088\ \ \ \ \ \ \ stim-\/>htim.Init.Period\ =\ ((stim-\/>htim.Init.Period\ +\ 1)/2)\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00089}00089\ \ \ \ \ \ \ stim-\/>htim.Init.Prescaler\ =\ ((stim-\/>htim.Init.Prescaler\ +\ 1)*2)\ -\/\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00090}00090\ \ \ \ \ \ \ \textcolor{comment}{//\ обновляем\ TickBase}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00091}00091\ \ \ \ \ \ \ stim-\/>sTickBaseUS\ *=\ 2;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00092}00092\ \ \ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00093}00093\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00094}00094\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00095}00095\ \ \ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/TIM\ BASE\ INIT-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00096}00096\ \ \ \textcolor{comment}{//\ tim\ base\ init\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00097}00097\ \ \ TIM\_Base\_MspInit(\&stim-\/>htim,\ stim-\/>sTimMode);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00098}00098\ \ \ \textcolor{keywordflow}{if}\ (HAL\_TIM\_Base\_Init(\&stim-\/>htim)\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00099}00099\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00100}00100\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00101}00101\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00102}00102\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00103}00103\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00104}00104\ \ \ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/CLOCK\ SRC\ INIT-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00105}00105\ \ \ \textcolor{comment}{//\ fill\ sClockSourceConfig\ if\ its\ NULL}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00106}00106\ \ \ \textcolor{keywordflow}{if}\ (stim-\/>sClockSourceConfig.ClockSource\ ==\ NULL)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00107}00107\ \ \ \ \ stim-\/>sClockSourceConfig.ClockSource\ =\ TIM\_CLOCKSOURCE\_INTERNAL;\ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00108}00108\ \ \ \textcolor{comment}{//\ clock\ source\ init\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00109}00109\ \ \ \textcolor{keywordflow}{if}\ (HAL\_TIM\_ConfigClockSource(\&stim-\/>htim,\ \&stim-\/>sClockSourceConfig)\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00110}00110\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00111}00111\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00112}00112\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00113}00113\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00114}00114\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00115}00115\ \ \ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/SLAVE\ INIT-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00116}00116\ \ \ \textcolor{comment}{//\ if\ slave\ mode\ enables\ -\/\ config\ it}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00117}00117\ \ \ \textcolor{keywordflow}{if}\ (stim-\/>sSlaveConfig.SlaveMode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00118}00118\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00119}00119\ \ \ \ \ \textcolor{comment}{//\ slave\ mode\ init\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00120}00120\ \ \ \ \ \textcolor{keywordflow}{if}\ (HAL\_TIM\_SlaveConfigSynchro(\&stim-\/>htim,\ \&stim-\/>sSlaveConfig)\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00121}00121\ \ \ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00122}00122\ \ \ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00123}00123\ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00124}00124\ \ \ \ \ \}\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00125}00125\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00126}00126\ \ \ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/MASTER\ INIT-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00127}00127\ \ \ \textcolor{comment}{//\ master\ mode\ init\ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00128}00128\ \ \ \textcolor{keywordflow}{if}\ (HAL\_TIMEx\_MasterConfigSynchronization(\&stim-\/>htim,\ \&stim-\/>sMasterConfig)\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00129}00129\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00130}00130\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00131}00131\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00132}00132\ \ \ \}\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00133}00133\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00134}00134\ \ \ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/BDTR\ INIT-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00135}00135\ \ \ \textcolor{keywordflow}{if}\ (HAL\_TIMEx\_ConfigBreakDeadTime(\&stim-\/>htim,\ \&stim-\/>sBreakDeadTimeConfig)\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00136}00136\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00137}00137\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00138}00138\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00139}00139\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00140}00140\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00141}00141\ \ \ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/IT\ CLEAR-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00142}00142\ \ \ \_\_HAL\_TIM\_CLEAR\_IT(\&stim-\/>htim,\ TIM\_IT\_UPDATE);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00143}00143\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00144}00144\ \ \ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00145}00145\ \ \ \textcolor{comment}{//\ обновляем\ TickBase}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00146}00146\ \textcolor{preprocessor}{\ \ \#ifdef\ UPDATE\_TIM\_PARAMS\_AFTER\_INITIALIZATION}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00147}00147\ \ \ stim-\/>sTickBaseUS\ =\ (stim-\/>htim.Instance-\/>PSC+1)*stim-\/>sTickBasePrescaler/(stim-\/>sTimAHBFreqMHz);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00148}00148\ \ \ \textcolor{keywordflow}{if}(stim-\/>sTickBaseUS\ ==\ 0)\ \ \textcolor{comment}{//\ if\ prescaler\ is\ too\ high}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00149}00149\ \ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ recalc\ what\ is\ prescaler\ irl}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00150}00150\ \ \ \ \ stim-\/>sTickBaseUS\ =\ 1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00151}00151\ \ \ \ \ stim-\/>sTickBasePrescaler\ =\ stim-\/>sTimAHBFreqMHz/(stim-\/>htim.Instance-\/>PSC+1);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00152}00152\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00153}00153\ \textcolor{preprocessor}{\ \ \#endif}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00154}00154\ \ \ stim-\/>htim.Instance-\/>CNT\ =\ 0;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00155}00155\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00156}00156\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00157}00157\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00158}00158\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00159}00159\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00160}00160\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00161}00161\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ TIM\ Encoder\ functional.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00162}00162\ \textcolor{comment}{\ \ *\ @param\ \ htim\ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00163}00163\ \textcolor{comment}{\ \ *\ @param\ \ sConfigOC\ \ \ -\/\ указатель\ на\ настрйоки\ канала\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00164}00164\ \textcolor{comment}{\ \ *\ @param\ \ GPIOx\ \ \ \ \ \ \ -\/\ порт\ для\ приема\ енкодера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00165}00165\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN1\ \ \ -\/\ первый\ пин\ для\ енкодера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00166}00166\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN2\ \ \ -\/\ второй\ пин\ для\ енкодера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00167}00167\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_SW\ -\/\ пин\ для\ кнопки\ енкодера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00168}00168\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00169}00169\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00170}00170\ HAL\_StatusTypeDef\ TIM\_Encoder\_Init(\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}}\ *henc,\ TIM\_HandleTypeDef\ *htim)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00171}00171\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00172}00172\ \ \ GPIO\_InitTypeDef\ GPIO\_InitStruct\ =\ \{0\};}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00173}00173\ \ \ HAL\_StatusTypeDef\ RES\ =\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00174}00174\ \ \ henc-\/>htim\ =\ htim;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00175}00175\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00176}00176\ \ \ \textcolor{comment}{//\ setup\ channel\ for\ pwm}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00177}00177\ \ \ RES\ =\ HAL\_TIM\_Encoder\_Init(henc-\/>htim,\ \&henc-\/>sConfig);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00178}00178\ \ \ \textcolor{keywordflow}{if}\ (RES\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00179}00179\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00180}00180\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00181}00181\ \ \ \ \ \textcolor{keywordflow}{return}\ RES;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00182}00182\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00183}00183\ \ \ \textcolor{comment}{//\ choose\ port\ for\ enable\ clock}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00184}00184\ \ \ RES\ =\ \mbox{\hyperlink{group___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\_Clock\_Enable}}(henc-\/>GPIOx);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00185}00185\ \ \ \textcolor{keywordflow}{if}(RES\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00186}00186\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00187}00187\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00188}00188\ \ \ \ \ \textcolor{keywordflow}{return}\ RES;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00189}00189\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00190}00190\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00191}00191\ \ \ GPIO\_InitStruct.Pin\ =\ henc-\/>GPIO\_PIN\_TI1|henc-\/>GPIO\_PIN\_TI2;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00192}00192\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00193}00193\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_PULLUP;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00194}00194\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_LOW;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00195}00195\ \ \ GPIO\_InitStruct.Alternate\ =\ \mbox{\hyperlink{group___g_p_i_o___g_e_n_e_r_a_l_ga34242874b455a72aa6e25841678ed105}{TIM\_Alternate\_Mapping}}(henc-\/>htim-\/>Instance);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00196}00196\ \ \ \textcolor{keywordflow}{if}(GPIO\_InitStruct.Alternate)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00197}00197\ \ \ \ \ HAL\_GPIO\_Init(henc-\/>GPIOx,\ \&GPIO\_InitStruct);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00198}00198\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00199}00199\ \ \ \textcolor{keywordflow}{if}(henc-\/>GPIO\_PIN\_SW)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00200}00200\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00201}00201\ \ \ \ \ \textcolor{comment}{/*Configure\ switch\ pin\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00202}00202\ \ \ \ \ GPIO\_InitStruct.Pin\ =\ henc-\/>GPIO\_PIN\_SW;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00203}00203\ \ \ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_INPUT;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00204}00204\ \ \ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_PULLUP;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00205}00205\ \ \ \ \ HAL\_GPIO\_Init(GPIOA,\ \&GPIO\_InitStruct);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00206}00206\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00207}00207\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00208}00208\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00209}00209\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00210}00210\ \ \ \ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00211}00211\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00212}00212\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ PWM\ Channel\ and\ GPIO\ for\ output.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00213}00213\ \textcolor{comment}{\ \ *\ @param\ \ htim\ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00214}00214\ \textcolor{comment}{\ \ *\ @param\ \ sConfigOC\ \ \ -\/\ указатель\ на\ настрйоки\ канала\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00215}00215\ \textcolor{comment}{\ \ *\ @param\ \ TIM\_CHANNEL\ -\/\ канал\ таймера\ для\ настройки.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00216}00216\ \textcolor{comment}{\ \ *\ @param\ \ GPIOx\ \ \ \ \ \ \ -\/\ порт\ для\ вывода\ ШИМ.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00217}00217\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\ \ \ \ -\/\ пин\ для\ вывода\ ШИМ.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00218}00218\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00219}00219\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00220}00220\ HAL\_StatusTypeDef\ TIM\_Output\_PWM\_Init(TIM\_HandleTypeDef\ *htim,\ TIM\_OC\_InitTypeDef\ *sConfigOC,\ uint32\_t\ TIM\_CHANNEL,\ GPIO\_TypeDef\ *GPIOx,\ uint32\_t\ GPIO\_PIN)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00221}00221\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00222}00222\ \ \ GPIO\_InitTypeDef\ GPIO\_InitStruct\ =\ \{0\};}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00223}00223\ \ \ HAL\_StatusTypeDef\ RES\ =\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00224}00224\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00225}00225\ \ \ \textcolor{comment}{//\ setup\ channel\ for\ pwm}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00226}00226\ \ \ RES\ =\ HAL\_TIM\_PWM\_ConfigChannel(htim,\ sConfigOC,\ TIM\_CHANNEL);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00227}00227\ \ \ \textcolor{keywordflow}{if}\ (RES\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00228}00228\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00229}00229\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00230}00230\ \ \ \ \ \textcolor{keywordflow}{return}\ RES;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00231}00231\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00232}00232\ \ \ \textcolor{comment}{//\ choose\ port\ for\ enable\ clock}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00233}00233\ \ \ RES\ =\ \mbox{\hyperlink{group___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\_Clock\_Enable}}(GPIOx);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00234}00234\ \ \ \textcolor{keywordflow}{if}(RES\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00235}00235\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00236}00236\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00237}00237\ \ \ \ \ \textcolor{keywordflow}{return}\ RES;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00238}00238\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00239}00239\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00240}00240\ \ \ GPIO\_InitStruct.Pin\ =\ GPIO\_PIN;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00241}00241\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00242}00242\ \ \ \textcolor{keywordflow}{if}(sConfigOC-\/>OCPolarity\ ==\ TIM\_OCNPOLARITY\_HIGH)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00243}00243\ \ \ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_PULLDOWN;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00244}00244\ \ \ \textcolor{keywordflow}{else}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00245}00245\ \ \ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_PULLUP;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00246}00246\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_LOW;\ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00247}00247\ \ \ GPIO\_InitStruct.Alternate\ =\ \mbox{\hyperlink{group___g_p_i_o___g_e_n_e_r_a_l_ga34242874b455a72aa6e25841678ed105}{TIM\_Alternate\_Mapping}}(htim-\/>Instance);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00248}00248\ \ \ \textcolor{keywordflow}{if}(GPIO\_InitStruct.Alternate)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00249}00249\ \ \ \ \ HAL\_GPIO\_Init(GPIOx,\ \&GPIO\_InitStruct);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00250}00250\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00251}00251\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00252}00252\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00253}00253\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00254}00254\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00255}00255\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ OC\ Comparator.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00256}00256\ \textcolor{comment}{\ \ *\ @param\ \ htim\ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00257}00257\ \textcolor{comment}{\ \ *\ @param\ \ TIM\_CHANNEL\ -\/\ канал\ таймера\ для\ настройки.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00258}00258\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00259}00259\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00260}00260\ HAL\_StatusTypeDef\ TIM\_OC\_Comparator\_Init(TIM\_HandleTypeDef\ *htim,\ uint32\_t\ TIM\_CHANNEL)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00261}00261\ \{\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00262}00262\ \ \ TIM\_OC\_InitTypeDef\ \ \ \ \ \ sConfigOC\ =\ \{0\};}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00263}00263\ \ \ HAL\_StatusTypeDef\ RES\ =\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00264}00264\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00265}00265\ \ \ sConfigOC.OCMode\ =\ TIM\_OCMODE\_ACTIVE;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00266}00266\ \ \ sConfigOC.Pulse\ =\ 0;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00267}00267\ \ \ sConfigOC.OCPolarity\ =\ TIM\_OCPOLARITY\_HIGH;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00268}00268\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00269}00269\ \ \ RES\ =\ HAL\_TIM\_OC\_ConfigChannel(htim,\ \&sConfigOC,\ TIM\_CHANNEL);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00270}00270\ \ \ \textcolor{keywordflow}{if}\ (RES\ !=\ HAL\_OK)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00271}00271\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00272}00272\ \ \ \ \ \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{MyLibs\_Error\_Handler}}();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00273}00273\ \ \ \ \ \textcolor{keywordflow}{return}\ RES;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00274}00274\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00275}00275\ \ \ \textcolor{keywordflow}{return}\ RES;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00276}00276\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00277}00277\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00278}00278\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00279}00279\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00280}00280\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00281}00281\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/TIM\ USER\ FUNCTIONS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\ }\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00282}00282\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00283}00283\ \textcolor{comment}{\ \ *\ @brief\ \ Delay\ via\ TIM.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00284}00284\ \textcolor{comment}{\ \ *\ @param\ \ htim\ \ \ \ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00285}00285\ \textcolor{comment}{\ \ *\ @param\ \ delay\ \ \ -\/\ задержка\ в\ тиках\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00286}00286\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00287}00287\ \textcolor{comment}{\ \ *\ @note\ \ \ Таймер\ должен\ быть\ уже\ запущен.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00288}00288\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00289}00289\ HAL\_StatusTypeDef\ TIM\_Delay(TIM\_HandleTypeDef\ *htim,\ uint16\_t\ delay)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00290}00290\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00291}00291\ \ \ \textcolor{keywordflow}{if}(delay\ >=\ htim-\/>Instance-\/>ARR)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00292}00292\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00293}00293\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00294}00294\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00295}00295\ \ \ htim-\/>Instance-\/>CNT\ =\ 0;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00296}00296\ \ \ \textcolor{keywordflow}{while}(1)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00297}00297\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00298}00298\ \ \ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance-\/>CNT\ >\ delay)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00299}00299\ \ \ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00300}00300\ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00301}00301\ \ \ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00302}00302\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00303}00303\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00304}00304\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00305}00305\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00306}00306\ \textcolor{comment}{\ \ *\ @brief\ \ Start\ delay\ via\ TIM.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00307}00307\ \textcolor{comment}{\ \ *\ @param\ \ htim\ \ \ \ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00308}00308\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00309}00309\ \textcolor{comment}{\ \ *\ @note\ \ \ Таймер\ должен\ быть\ уже\ запущен.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00310}00310\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00311}00311\ HAL\_StatusTypeDef\ TIM\_Delay\_Start(TIM\_HandleTypeDef\ *htim)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00312}00312\ \{\ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00313}00313\ \ \ htim-\/>Instance-\/>CNT\ =\ 0;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00314}00314\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00315}00315\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00316}00316\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00317}00317\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00318}00318\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00319}00319\ \textcolor{comment}{\ \ *\ @brief\ \ Wait\ Delay\ via\ TIM\ without\ blocking\ app.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00320}00320\ \textcolor{comment}{\ \ *\ @param\ \ htim\ \ \ \ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00321}00321\ \textcolor{comment}{\ \ *\ @param\ \ delay\ \ \ -\/\ задержка\ в\ тиках\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00322}00322\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00323}00323\ \textcolor{comment}{\ \ *\ @note\ \ \ Перед\ ожиданием\ задержки\ надо\ запутстить\ таймер\ её\ @ref\ TIM\_Delay\_Start}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00324}00324\ \textcolor{comment}{\ \ *\ @note\ \ \ Таймер\ не\ должен\ использоваться\ на\ время\ этой\ задержки}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00325}00325\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00326}00326\ HAL\_StatusTypeDef\ TIM\_Delay\_NonBlocking(TIM\_HandleTypeDef\ *htim,\ uint16\_t\ delay)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00327}00327\ \{\ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00328}00328\ \ \ \textcolor{keywordflow}{if}(delay\ >=\ htim-\/>Instance-\/>ARR)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00329}00329\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00330}00330\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00331}00331\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00332}00332\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00333}00333\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance-\/>CNT\ <=\ delay)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00334}00334\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00335}00335\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_BUSY;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00336}00336\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00337}00337\ \ \ \textcolor{keywordflow}{else}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00338}00338\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00339}00339\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00340}00340\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00341}00341\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00342}00342\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00343}00343\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00344}00344\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ TIMs\ clock\ and\ interrupt.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00345}00345\ \textcolor{comment}{\ \ *\ @param\ \ htim\ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00346}00346\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ иницилизацией\ неиспользуемых\ таймеров,}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00347}00347\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ general\_tim.h\ определяются\ используемые\ таймеры.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00348}00348\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00349}00349\ \textcolor{keywordtype}{void}\ TIM\_Base\_MspInit(TIM\_HandleTypeDef*\ htim,\ TIM\_ITModeTypeDef\ it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00350}00350\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00351}00351\ \ \ it\_mode\ =\ it\_mode\&TIM\_IT\_CONF;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00352}00352\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM1}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00353}00353\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM1)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00354}00354\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00355}00355\ \ \ \ \ \textcolor{comment}{/*\ TIM2\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00356}00356\ \ \ \ \ \_\_HAL\_RCC\_TIM1\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00357}00357\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00358}00358\ \ \ \ \ \textcolor{comment}{/*\ TIM2\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00359}00359\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00360}00360\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00361}00361\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM1\_UP\_TIM10\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00362}00362\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM1\_UP\_TIM10\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00363}00363\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00364}00364\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00365}00365\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00366}00366\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM2}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00367}00367\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM2)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00368}00368\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00369}00369\ \ \ \ \ \textcolor{comment}{/*\ TIM2\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00370}00370\ \ \ \ \ \_\_HAL\_RCC\_TIM2\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00371}00371\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00372}00372\ \ \ \ \ \textcolor{comment}{/*\ TIM2\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00373}00373\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00374}00374\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00375}00375\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM2\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00376}00376\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM2\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00377}00377\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00378}00378\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00379}00379\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00380}00380\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM3}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00381}00381\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM3)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00382}00382\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00383}00383\ \ \ \ \ \textcolor{comment}{/*\ TIM3\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00384}00384\ \ \ \ \ \_\_HAL\_RCC\_TIM3\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00385}00385\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00386}00386\ \ \ \ \ \textcolor{comment}{/*\ TIM3\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00387}00387\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00388}00388\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00389}00389\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM3\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00390}00390\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM3\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00391}00391\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00392}00392\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00393}00393\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00394}00394\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM4}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00395}00395\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM4)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00396}00396\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00397}00397\ \ \ \ \ \textcolor{comment}{/*\ TIM4\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00398}00398\ \ \ \ \ \_\_HAL\_RCC\_TIM4\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00399}00399\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00400}00400\ \ \ \ \ \textcolor{comment}{/*\ TIM4\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00401}00401\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00402}00402\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00403}00403\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM4\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00404}00404\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM4\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00405}00405\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00406}00406\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00407}00407\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00408}00408\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM5}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00409}00409\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM5)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00410}00410\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00411}00411\ \ \ \ \ \textcolor{comment}{/*\ TIM5\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00412}00412\ \ \ \ \ \_\_HAL\_RCC\_TIM5\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00413}00413\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00414}00414\ \ \ \ \ \textcolor{comment}{/*\ TIM5\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00415}00415\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00416}00416\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00417}00417\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM5\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00418}00418\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM5\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00419}00419\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00420}00420\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00421}00421\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00422}00422\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM6}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00423}00423\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM6)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00424}00424\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00425}00425\ \ \ \ \ \textcolor{comment}{/*\ TIM6\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00426}00426\ \ \ \ \ \_\_HAL\_RCC\_TIM6\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00427}00427\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00428}00428\ \ \ \ \ \textcolor{comment}{/*\ TIM6\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00429}00429\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00430}00430\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00431}00431\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM6\_DAC\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00432}00432\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM6\_DAC\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00433}00433\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00434}00434\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00435}00435\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00436}00436\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM7}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00437}00437\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM7)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00438}00438\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00439}00439\ \ \ \ \ \textcolor{comment}{/*\ TIM7\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00440}00440\ \ \ \ \ \_\_HAL\_RCC\_TIM7\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00441}00441\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00442}00442\ \ \ \ \ \textcolor{comment}{/*\ TIM7\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00443}00443\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00444}00444\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00445}00445\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM7\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00446}00446\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM7\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00447}00447\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00448}00448\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00449}00449\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00450}00450\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM8}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00451}00451\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM8)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00452}00452\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00453}00453\ \ \ \ \ \textcolor{comment}{/*\ TIM8\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00454}00454\ \ \ \ \ \_\_HAL\_RCC\_TIM8\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00455}00455\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00456}00456\ \ \ \ \ \textcolor{comment}{/*\ TIM8\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00457}00457\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00458}00458\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00459}00459\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM8\_UP\_TIM13\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00460}00460\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM8\_UP\_TIM13\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00461}00461\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00462}00462\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00463}00463\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00464}00464\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM9}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00465}00465\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM9)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00466}00466\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00467}00467\ \ \ \ \ \textcolor{comment}{/*\ TIM9\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00468}00468\ \ \ \ \ \_\_HAL\_RCC\_TIM9\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00469}00469\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00470}00470\ \ \ \ \ \textcolor{comment}{/*\ TIM9\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00471}00471\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00472}00472\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00473}00473\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM1\_BRK\_TIM9\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00474}00474\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM1\_BRK\_TIM9\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00475}00475\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00476}00476\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00477}00477\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00478}00478\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM10}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00479}00479\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM10)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00480}00480\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00481}00481\ \ \ \ \ \textcolor{comment}{/*\ TIM10\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00482}00482\ \ \ \ \ \_\_HAL\_RCC\_TIM10\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00483}00483\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00484}00484\ \ \ \ \ \textcolor{comment}{/*\ TIM10\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00485}00485\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00486}00486\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00487}00487\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM1\_UP\_TIM10\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00488}00488\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM1\_UP\_TIM10\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00489}00489\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00490}00490\ \ \ \}\ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00491}00491\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00492}00492\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM11}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00493}00493\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM11)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00494}00494\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00495}00495\ \ \ \ \ \textcolor{comment}{/*\ TIM11\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00496}00496\ \ \ \ \ \_\_HAL\_RCC\_TIM11\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00497}00497\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00498}00498\ \ \ \ \ \textcolor{comment}{/*\ TIM11\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00499}00499\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00500}00500\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00501}00501\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM1\_TRG\_COM\_TIM11\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00502}00502\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM1\_TRG\_COM\_TIM11\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00503}00503\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00504}00504\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00505}00505\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00506}00506\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM12}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00507}00507\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM12)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00508}00508\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00509}00509\ \ \ \ \ \textcolor{comment}{/*\ TIM12\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00510}00510\ \ \ \ \ \_\_HAL\_RCC\_TIM12\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00511}00511\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00512}00512\ \ \ \ \ \textcolor{comment}{/*\ TIM12\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00513}00513\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00514}00514\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00515}00515\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM8\_BRK\_TIM12\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00516}00516\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM8\_BRK\_TIM12\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00517}00517\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00518}00518\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00519}00519\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00520}00520\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM13}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00521}00521\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM13)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00522}00522\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00523}00523\ \ \ \ \ \textcolor{comment}{/*\ TIM13\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00524}00524\ \ \ \ \ \_\_HAL\_RCC\_TIM13\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00525}00525\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00526}00526\ \ \ \ \ \textcolor{comment}{/*\ TIM13\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00527}00527\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00528}00528\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00529}00529\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM8\_UP\_TIM13\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00530}00530\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM8\_UP\_TIM13\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00531}00531\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00532}00532\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00533}00533\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00534}00534\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM14}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00535}00535\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM14)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00536}00536\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00537}00537\ \ \ \ \ \textcolor{comment}{/*\ TIM14\ clock\ enable\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00538}00538\ \ \ \ \ \_\_HAL\_RCC\_TIM14\_CLK\_ENABLE();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00539}00539\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00540}00540\ \ \ \ \ \textcolor{comment}{/*\ TIM14\ interrupt\ Init\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00541}00541\ \ \ \textcolor{keywordflow}{if}(it\_mode)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00542}00542\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00543}00543\ \ \ \ \ HAL\_NVIC\_SetPriority(TIM8\_TRG\_COM\_TIM14\_IRQn,\ 0,\ 0);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00544}00544\ \ \ \ \ HAL\_NVIC\_EnableIRQ(TIM8\_TRG\_COM\_TIM14\_IRQn);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00545}00545\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00546}00546\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00547}00547\ \textcolor{preprocessor}{\#endif}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00548}00548\ \}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00549}00549\ \textcolor{comment}{/**\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00550}00550\ \textcolor{comment}{\ \ *\ @brief\ \ DeInitialize\ TIMs\ clock\ and\ interrupt.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00551}00551\ \textcolor{comment}{\ \ *\ @param\ \ htim\ -\/\ указатель\ на\ хендл\ таймера.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00552}00552\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ деиницилизацией\ неиспользуемых\ таймеров,}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00553}00553\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ general\_tim.h\ определяются\ используемые\ таймеры.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00554}00554\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00555}00555\ \textcolor{keywordtype}{void}\ TIM\_Base\_MspDeInit(TIM\_HandleTypeDef*\ htim)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00556}00556\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00557}00557\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM1}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00558}00558\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM1)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00559}00559\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00560}00560\ \ \ \ \ \_\_HAL\_RCC\_TIM1\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00561}00561\ \ \ \ \ \_\_HAL\_RCC\_TIM1\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00562}00562\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00563}00563\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00564}00564\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM2}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00565}00565\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM2)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00566}00566\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00567}00567\ \ \ \ \ \_\_HAL\_RCC\_TIM2\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00568}00568\ \ \ \ \ \_\_HAL\_RCC\_TIM2\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00569}00569\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00570}00570\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00571}00571\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM3}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00572}00572\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM3)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00573}00573\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00574}00574\ \ \ \ \ \_\_HAL\_RCC\_TIM3\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00575}00575\ \ \ \ \ \_\_HAL\_RCC\_TIM3\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00576}00576\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00577}00577\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00578}00578\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM4}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00579}00579\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM4)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00580}00580\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00581}00581\ \ \ \ \ \_\_HAL\_RCC\_TIM4\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00582}00582\ \ \ \ \ \_\_HAL\_RCC\_TIM4\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00583}00583\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00584}00584\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00585}00585\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM5}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00586}00586\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM5)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00587}00587\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00588}00588\ \ \ \ \ \_\_HAL\_RCC\_TIM5\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00589}00589\ \ \ \ \ \_\_HAL\_RCC\_TIM5\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00590}00590\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00591}00591\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00592}00592\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM6}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00593}00593\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM6)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00594}00594\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00595}00595\ \ \ \ \ \_\_HAL\_RCC\_TIM6\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00596}00596\ \ \ \ \ \_\_HAL\_RCC\_TIM6\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00597}00597\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00598}00598\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00599}00599\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM7}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00600}00600\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM7)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00601}00601\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00602}00602\ \ \ \ \ \_\_HAL\_RCC\_TIM7\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00603}00603\ \ \ \ \ \_\_HAL\_RCC\_TIM7\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00604}00604\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00605}00605\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00606}00606\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM8}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00607}00607\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM8)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00608}00608\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00609}00609\ \ \ \ \ \_\_HAL\_RCC\_TIM8\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00610}00610\ \ \ \ \ \_\_HAL\_RCC\_TIM8\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00611}00611\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00612}00612\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00613}00613\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM9}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00614}00614\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM9)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00615}00615\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00616}00616\ \ \ \ \ \_\_HAL\_RCC\_TIM9\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00617}00617\ \ \ \ \ \_\_HAL\_RCC\_TIM9\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00618}00618\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00619}00619\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00620}00620\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM10}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00621}00621\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM10)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00622}00622\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00623}00623\ \ \ \ \ \_\_HAL\_RCC\_TIM10\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00624}00624\ \ \ \ \ \_\_HAL\_RCC\_TIM10\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00625}00625\ \ \ \}\ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00626}00626\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00627}00627\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM11}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00628}00628\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM11)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00629}00629\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00630}00630\ \ \ \ \ \_\_HAL\_RCC\_TIM11\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00631}00631\ \ \ \ \ \_\_HAL\_RCC\_TIM11\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00632}00632\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00633}00633\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00634}00634\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM12}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00635}00635\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM12)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00636}00636\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00637}00637\ \ \ \ \ \_\_HAL\_RCC\_TIM12\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00638}00638\ \ \ \ \ \_\_HAL\_RCC\_TIM12\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00639}00639\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00640}00640\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00641}00641\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM13}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00642}00642\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM13)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00643}00643\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00644}00644\ \ \ \ \ \_\_HAL\_RCC\_TIM13\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00645}00645\ \ \ \ \ \_\_HAL\_RCC\_TIM13\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00646}00646\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00647}00647\ \textcolor{preprocessor}{\#endif\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00648}00648\ \textcolor{preprocessor}{\#ifdef\ USE\_TIM14}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00649}00649\ \ \ \textcolor{keywordflow}{if}(htim-\/>Instance==TIM14)}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00650}00650\ \ \ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00651}00651\ \ \ \ \ \_\_HAL\_RCC\_TIM14\_FORCE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00652}00652\ \ \ \ \ \_\_HAL\_RCC\_TIM14\_RELEASE\_RESET();}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00653}00653\ \ \ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00654}00654\ \textcolor{preprocessor}{\#endif}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00655}00655\ \}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00656}00656\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/TIM\ INIT\ FUNCTIONS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8c_source_l00657}00657\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
|
||
\end{DoxyCode}
|