\doxysubsubsubsection{General tools }
\hypertarget{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l}{}\label{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l}\index{General tools@{General tools}}


Общие функции/макросы для работы с GPIO.  


Collaboration diagram for General tools\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l}
\end{center}
\end{figure}
\doxysubsubsubsubsubsection*{Topics}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group___g_p_i_o___i_n_i_t}{Init defines}}
\begin{DoxyCompactList}\small\item\em Настройка состояний кнопок и количества тиков в периоде ШИМ \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \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}}(INSTANCE)
\begin{DoxyCompactList}\small\item\em Маппинг альтернативной функции SPI между GPIO. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
HAL\+\_\+\+Status\+Type\+Def \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\+\_\+\+Clock\+\_\+\+Enable}} (GPIO\+\_\+\+Type\+Def \texorpdfstring{$\ast$}{*}GPIOx)
\begin{DoxyCompactList}\small\item\em Включить тактирование порта GPIO. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsubsubsection{Detailed Description}
Общие функции/макросы для работы с GPIO. 



\label{doc-define-members}
\Hypertarget{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_doc-define-members}
\doxysubsubsubsubsection{Macro Definition Documentation}
\Hypertarget{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga580b842096340b066c28b24d6b315be6}\index{General tools@{General tools}!GPIO\_TIM\_Alternate\_Mapping@{GPIO\_TIM\_Alternate\_Mapping}}
\index{GPIO\_TIM\_Alternate\_Mapping@{GPIO\_TIM\_Alternate\_Mapping}!General tools@{General tools}}
\doxysubsubsubsubsubsection{\texorpdfstring{GPIO\_TIM\_Alternate\_Mapping}{GPIO\_TIM\_Alternate\_Mapping}}
{\footnotesize\ttfamily \label{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga580b842096340b066c28b24d6b315be6} 
\#define GPIO\+\_\+\+TIM\+\_\+\+Alternate\+\_\+\+Mapping(\begin{DoxyParamCaption}\item[{}]{INSTANCE}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((((INSTANCE)\ ==\ TIM1)\ \ ||\ ((INSTANCE)\ ==\ TIM2))?\ GPIO\_AF1\_TIM1:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{(((INSTANCE)\ ==\ TIM3)\ \ \ ||\ ((INSTANCE)\ ==\ TIM4)\ \ \ ||\ ((INSTANCE)\ ==\ TIM5))?\ GPIO\_AF2\_TIM3:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{(((INSTANCE)\ ==\ TIM8)\ \ \ ||\ ((INSTANCE)\ ==\ TIM9)\ \ \ ||\ ((INSTANCE)\ ==\ TIM10)\ ||\ ((INSTANCE)\ ==\ TIM11))?\ GPIO\_AF3\_TIM8:\ \ \(\backslash\)}
\DoxyCodeLine{(((INSTANCE)\ ==\ TIM12)\ \ ||\ ((INSTANCE)\ ==\ TIM13)\ \ ||\ ((INSTANCE)\ ==\ TIM14))?\ GPIO\_AF9\_TIM12:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{(0))}

\end{DoxyCode}


Маппинг альтернативной функции SPI между GPIO. 

Маппинг альтернативной функции TIM между GPIO 

Definition at line \mbox{\hyperlink{general__gpio_8h_source_l00069}{69}} of file \mbox{\hyperlink{general__gpio_8h_source}{general\+\_\+gpio.\+h}}.



\label{doc-func-members}
\Hypertarget{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_doc-func-members}
\doxysubsubsubsubsection{Function Documentation}
\Hypertarget{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}\index{General tools@{General tools}!GPIO\_Clock\_Enable@{GPIO\_Clock\_Enable}}
\index{GPIO\_Clock\_Enable@{GPIO\_Clock\_Enable}!General tools@{General tools}}
\doxysubsubsubsubsubsection{\texorpdfstring{GPIO\_Clock\_Enable()}{GPIO\_Clock\_Enable()}}
{\footnotesize\ttfamily \label{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6} 
HAL\+\_\+\+Status\+Type\+Def GPIO\+\_\+\+Clock\+\_\+\+Enable (\begin{DoxyParamCaption}\item[{GPIO\+\_\+\+Type\+Def \texorpdfstring{$\ast$}{*}}]{GPIOx}{}\end{DoxyParamCaption})}



Включить тактирование порта GPIO. 



Definition at line \mbox{\hyperlink{general__gpio_8c_source_l00022}{22}} of file \mbox{\hyperlink{general__gpio_8c_source}{general\+\_\+gpio.\+c}}.

\input{group___g_p_i_o___i_n_i_t}
