Добавлено:

- максимально убрана зависимость от HAL - можно использовать и без него, чисто на cmsis
- документирован uart
- документирован spi
- добавлены примеры использования в general_periph
- всякие фиксы документации
This commit is contained in:
2025-10-21 03:27:45 +03:00
parent 81a0b1c010
commit 3fb3058a30
388 changed files with 20522 additions and 9544 deletions

View File

@@ -1,5 +1,5 @@
\doxysection{general\+\_\+tim.\+c}
\hypertarget{general__tim_8c_source}{}\label{general__tim_8c_source}\index{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_tim.c@{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Src/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}}
\mbox{\hyperlink{general__tim_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00001}00001\ \textcolor{comment}{/**\ }}
@@ -199,7 +199,7 @@
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00195}00195\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00196}00196\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_PULLUP;}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00197}00197\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_LOW;}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00198}00198\ \ \ GPIO\_InitStruct.Alternate\ =\ \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga580b842096340b066c28b24d6b315be6}{GPIO\_TIM\_Alternate\_Mapping}}(henc-\/>\mbox{\hyperlink{struct_t_i_m___encoder_type_def_adc80bd5a90444c31d84157f35c59b95c}{htim}}-\/>Instance);}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00198}00198\ \ \ GPIO\_InitStruct.Alternate\ =\ GPIO\_TIM\_Alternate\_Mapping(henc-\/>\mbox{\hyperlink{struct_t_i_m___encoder_type_def_adc80bd5a90444c31d84157f35c59b95c}{htim}}-\/>Instance);}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00199}00199\ \ \ \textcolor{keywordflow}{if}(GPIO\_InitStruct.Alternate)}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00200}00200\ \ \ \ \ HAL\_GPIO\_Init(henc-\/>\mbox{\hyperlink{struct_t_i_m___encoder_type_def_ad29873fc8cdc71462e6d8744621120e9}{GPIOx}},\ \&GPIO\_InitStruct);}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00201}00201\ \ \ }
@@ -259,7 +259,7 @@
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00255}00255\ \ \ \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00256}00256\ \ \ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_PULLUP;}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00257}00257\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_LOW;\ \ }
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00258}00258\ \ \ GPIO\_InitStruct.Alternate\ =\ \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga580b842096340b066c28b24d6b315be6}{GPIO\_TIM\_Alternate\_Mapping}}(htim-\/>Instance);}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00258}00258\ \ \ GPIO\_InitStruct.Alternate\ =\ GPIO\_TIM\_Alternate\_Mapping(htim-\/>Instance);}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00259}00259\ \ \ \textcolor{keywordflow}{if}(GPIO\_InitStruct.Alternate)}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00260}00260\ \ \ \ \ HAL\_GPIO\_Init(GPIOx,\ \&GPIO\_InitStruct);}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00261}00261\ \ \ }
@@ -407,7 +407,7 @@
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00403}00403\ \textcolor{comment}{\ \ *\ @brief\ \ Инициализация\ CLK\ и\ NVIC\ таймеров.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00404}00404\ \textcolor{comment}{\ \ *\ @param\ \ htim\ Указатель\ на\ хендл\ таймера.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00405}00405\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ иницилизацией\ неиспользуемых\ таймеров,}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00406}00406\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ general\_tim.h\ определяются\ используемые\ таймеры.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00406}00406\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ @ref\ TIM\_INIT\ в\ @ref\ general\_tim.h\ определяются\ используемые\ таймеры.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00407}00407\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00408}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaad47337be7ba2f6c0777c40d7278c931}{00408}}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaad47337be7ba2f6c0777c40d7278c931}{TIM\_Base\_MspInit}}(TIM\_HandleTypeDef*\ htim,\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaeb611874216a4661fb83366b99b9e787}{TIM\_ITModeTypeDef}}\ it\_mode)}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00409}00409\ \{}
@@ -616,7 +616,7 @@
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00612}00612\ \textcolor{comment}{\ \ *\ @brief\ \ Деинициализация\ CLK\ и\ NVIC\ таймеров.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00613}00613\ \textcolor{comment}{\ \ *\ @param\ \ htim\ Указатель\ на\ хендл\ таймера.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00614}00614\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ деиницилизацией\ неиспользуемых\ таймеров,}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00615}00615\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ general\_tim.h\ определяются\ используемые\ таймеры.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00615}00615\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ @ref\ TIM\_INIT\ в\ @ref\ general\_tim.h\ определяются\ используемые\ таймеры.}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00616}00616\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00617}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ga879e3f1c919c02990736730275367115}{00617}}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ga879e3f1c919c02990736730275367115}{TIM\_Base\_MspDeInit}}(TIM\_HandleTypeDef*\ htim)}
\DoxyCodeLine{\Hypertarget{general__tim_8c_source_l00618}00618\ \{}