STM32_ExtendedLibs/Doc/latex/mylibs__include_8h_source.tex
Razvalyaev 9d720767b0 Доработал модуль TIM (с точки зрения документции. Код не проверен)
Доработна документация в целом
	- добавелн main page
	- исправлены ошибки в шапках и коментах
	- добавлен граф инклюдов
2025-10-19 11:55:12 +03:00

191 lines
24 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\doxysection{mylibs\+\_\+include.\+h}
\hypertarget{mylibs__include_8h_source}{}\label{mylibs__include_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/mylibs\_include.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/mylibs\_include.h}}
\mbox{\hyperlink{mylibs__include_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00002}00002\ \textcolor{comment}{**************************************************************************}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ mylibs\_include.h}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Заголочный\ файл\ для\ всех\ библиотек}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00005}00005\ \textcolor{comment}{**************************************************************************}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00006}00006\ \textcolor{comment}{*\ @details}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00007}00007\ \textcolor{comment}{Здесь\ нужно\ собрать\ библиотеки\ и\ дефайны,\ которые\ должны\ быть\ видны\ во\ всем\ проекте,}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00008}00008\ \textcolor{comment}{чтобы\ не\ подключать\ 100\ инклюдов\ в\ каждом\ "{}.c"{}\ файле}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00009}00009\ \textcolor{comment}{**************************************************************************}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00010}00010\ \textcolor{comment}{*\ @defgroup\ MYLIBS\_ALL\ \ \ \ \ \ My\ Libs}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00011}00011\ \textcolor{comment}{*\ @brief\ \ \ \ Все\ используемые\ MyLibs\ библиотеки}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00012}00012\ \textcolor{comment}{*\ @details}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00013}00013\ \textcolor{comment}{Для\ подключения\ библиотеки\ необходимо:}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00014}00014\ \textcolor{comment}{-\/\ Сконфигурировать\ mylibs\_config.h:}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00015}00015\ \textcolor{comment}{\ \ -\/\ Подключить\ заголовочный\ файл\ HAL\ библиотеки\ конкретного\ МК\ (напр.\ stm32f4xx\_hal.h)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00016}00016\ \textcolor{comment}{\ \ -\/\ Подключить\ другие\ заголовочные\ файлы\ которые\ общие\ для\ всего\ проекта\ и\ должны\ быть\ видны}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00017}00017\ \textcolor{comment}{\ \ -\/\ }}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00018}00018\ \textcolor{comment}{-\/\ Подключить\ mylibs\_include.h\ туда,\ где\ необходим\ доступ\ к\ библиотекам.}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00019}00019\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00020}00020\ \textcolor{comment}{*\ @defgroup\ MYLIBS\_PERIPHERAL\ Peripheral}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00021}00021\ \textcolor{comment}{*\ @ingroup\ \ MYLIBS\_ALL}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00022}00022\ \textcolor{comment}{*\ @brief\ \ \ \ Модули\ для\ управления\ периферией}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00023}00023\ \textcolor{comment}{*}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00024}00024\ \textcolor{comment}{*************************************************************************/}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00025}00025\ \textcolor{preprocessor}{\#ifndef\ \_\_MYLIBS\_INCLUDE\_H\_}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00026}00026\ \textcolor{preprocessor}{\#define\ \_\_MYLIBS\_INCLUDE\_H\_}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00027}00027\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00028}00028\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00029}00029\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00030}00030\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00031}00031\ \textcolor{preprocessor}{\#ifdef\ ARM\_MATH\_CM4}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00032}00032\ \textcolor{preprocessor}{\ \ \#include\ "{}arm\_math.h"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00033}00033\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00034}00034\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00035}00035\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00036}00036\ \textcolor{preprocessor}{\#ifdef\ INCLUDE\_BIT\_ACCESS\_LIB}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00037}00037\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{bit__access_8h}{bit\_access.h}}"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00038}00038\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00039}00039\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00040}00040\ \textcolor{preprocessor}{\#ifdef\ INCLUDE\_TRACKERS\_LIB}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00041}00041\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{trackers_8h}{trackers.h}}"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00042}00042\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00043}00043\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00044}00044\ \textcolor{preprocessor}{\#ifdef\ INCLUDE\_TRACE\_LIB}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00045}00045\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{trace_8h}{trace.h}}"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00046}00046\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00047}00047\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00048}00048\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00049}00049\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00050}00050\ \textcolor{preprocessor}{\#ifdef\ INCLUDE\_GENERAL\_PERIPH\_LIBS}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00051}00051\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00052}00052\ \textcolor{preprocessor}{\#include\ "{}general\_flash.h"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00053}00053\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__gpio_8h}{general\_gpio.h}}"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00054}00054\ \textcolor{preprocessor}{\#ifdef\ HAL\_SPI\_MODULE\_ENABLED}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00055}00055\ \textcolor{preprocessor}{\#include\ "{}general\_spi.h"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00056}00056\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00057}00057\ \textcolor{preprocessor}{\#ifdef\ HAL\_UART\_MODULE\_ENABLED}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00058}00058\ \textcolor{preprocessor}{\#include\ "{}general\_uart.h"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00059}00059\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00060}00060\ \textcolor{preprocessor}{\#ifdef\ HAL\_TIM\_MODULE\_ENABLED}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00061}00061\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__tim_8h}{general\_tim.h}}"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00062}00062\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00063}00063\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00064}00064\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//INCLUDE\_GENERAL\_PERIPH\_LIBS}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00065}00065\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00066}00066\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00067}00067\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00068}00068\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00069}00069\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00070}00070\ \textcolor{comment}{//\ user\ includes}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00071}00071\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00072}00072\ \textcolor{comment}{//\ user\ settings}\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00073}00073\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00074}00074\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00075}00075\ }
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00076}00076\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_\_MYLIBS\_INCLUDE\_H\_}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00077}00077\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00078}00078\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00079}00079\ \textcolor{comment}{@mainpage}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00080}00080\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00081}00081\ \textcolor{comment}{@section\ overview\ Обзор}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00082}00082\ \textcolor{comment}{MyLibs\ -\/\ это\ набор\ библиотек\ для\ удобной\ работы\ с\ периферией\ микроконтроллеров\ STM32.}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00083}00083\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00084}00084\ \textcolor{comment}{@subsection\ features\ Основные\ возможности}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00085}00085\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00086}00086\ \textcolor{comment}{@subsubsection\ utils\_module\ Общие\ утилиты\ @ref\ MYLIBS\_DEFINES}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00087}00087\ \textcolor{comment}{-\/\ Битовый\ доступ\ к\ регистрам\ через\ union}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00088}00088\ \textcolor{comment}{-\/\ Трекеры\ для\ статистики\ и\ отладки}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00089}00089\ \textcolor{comment}{-\/\ Макросы\ для\ задержек\ и\ утилит}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00090}00090\ \textcolor{comment}{-\/\ Поддержка\ FreeRTOS}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00091}00091\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00092}00092\ \textcolor{comment}{@subsubsection\ trace\_module\ Трассировка\ @ref\ TRACE}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00093}00093\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00094}00094\ \textcolor{comment}{-\/\ Serial\ трассировка\ через\ SWO\ и\ RTT}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00095}00095\ \textcolor{comment}{-\/\ GPIO\ трассировка\ для\ отладки}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00096}00096\ \textcolor{comment}{-\/\ Сохранение\ логов\ в\ Flash\ память}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00097}00097\ \textcolor{comment}{-\/\ Обработка\ HardFault\ с\ сохранением\ контекста}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00098}00098\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00099}00099\ \textcolor{comment}{@subsubsection\ gpio\_module\ Модуль\ GPIO\ @ref\ MY\_LIBS\_GPIO}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00100}00100\ \textcolor{comment}{-\/\ Управление\ светодиодами\ (включение/выключение,\ моргание,\ плавное\ затухание)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00101}00101\ \textcolor{comment}{-\/\ Работа\ с\ кнопками\ (чтение\ состояния,\ фильтрация\ дребезга)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00102}00102\ \textcolor{comment}{-\/\ Инициализация\ портов\ и\ тактирования}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00103}00103\ \textcolor{comment}{-\/\ Поддержка\ альтернативных\ функций}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00104}00104\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00105}00105\ \textcolor{comment}{@subsubsection\ tim\_module\ Модуль\ таймеров\ @ref\ MY\_LIBS\_TIM}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00106}00106\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00107}00107\ \textcolor{comment}{-\/\ Базовая\ инициализация\ таймеров}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00108}00108\ \textcolor{comment}{-\/\ Режимы\ прерываний}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00109}00109\ \textcolor{comment}{-\/\ Формирование\ задержек\ (блокирующие\ и\ неблокирующие)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00110}00110\ \textcolor{comment}{-\/\ Работа\ с\ энкодерами\ (чтение\ положения,\ обработка\ кнопок)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00111}00111\ \textcolor{comment}{-\/\ Настройка\ ШИМ\ и\ Output\ Compare}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00112}00112\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00113}00113\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00114}00114\ \textcolor{comment}{@subsection\ structure\ Структура\ проекта}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00115}00115\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00116}00116\ \textcolor{comment}{@code}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00117}00117\ \textcolor{comment}{├──\ inc/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \#\ Заголовочные\ файлы}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00118}00118\ \textcolor{comment}{\ \ \ ├──\ mylibs\_include.h\ \ \ \ \ \#\ Главный\ include\ файл}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00119}00119\ \textcolor{comment}{\ \ \ ├──\ mylibs\_config.h\ \ \ \ \ \ \#\ Конфигурация\ библиотек}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00120}00120\ \textcolor{comment}{\ \ \ ├──\ mylibs\_defs.h\ \ \ \ \ \ \ \ \#\ Общие\ определения\ и\ макросы}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00121}00121\ \textcolor{comment}{\ \ \ ├──\ bit\_access.h\ \ \ \ \ \ \ \ \ \#\ Битовый\ доступ\ к\ регистрам}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00122}00122\ \textcolor{comment}{\ \ \ ├──\ trackers.h\ \ \ \ \ \ \ \ \ \ \ \#\ Трекеры\ для\ отладки}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00123}00123\ \textcolor{comment}{\ \ \ ├──\ trace.h\ \ \ \ \ \ \ \ \ \ \ \ \ \ \#\ Трассировка\ и\ логирование}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00124}00124\ \textcolor{comment}{\ \ \ ├──\ general\_gpio.h\ \ \ \ \ \ \ \#\ Работа\ с\ GPIO}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00125}00125\ \textcolor{comment}{\ \ \ └──\ general\_tim.h\ \ \ \ \ \ \ \ \#\ Работа\ с\ таймерами}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00126}00126\ \textcolor{comment}{└──\ src/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \#\ Исходные\ файлы}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00127}00127\ \textcolor{comment}{\ \ \ \ ├──\ general\_gpio.c\ \ \ \ \ \ \ \#\ Реализация\ GPIO}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00128}00128\ \textcolor{comment}{\ \ \ \ └──\ general\_tim.c\ \ \ \ \ \ \ \ \#\ Реализация\ TIM}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00129}00129\ \textcolor{comment}{@endcode}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00130}00130\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00131}00131\ \textcolor{comment}{@subsection\ usage\_basic\ Использование}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00132}00132\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00133}00133\ \textcolor{comment}{Инструкция\ по\ подключению:}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00134}00134\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00135}00135\ \textcolor{comment}{1.\ Настройте\ конфигурацию\ @ref\ MYLIBS\_CONFIG\ в\ @ref\ mylibs\_config.h\ }}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00136}00136\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00137}00137\ \textcolor{comment}{2.\ Подключите\ главный\ заголовочный\ файл:}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00138}00138\ \textcolor{comment}{@code}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00139}00139\ \textcolor{comment}{\#include\ "{}mylibs\_include.h"{}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00140}00140\ \textcolor{comment}{@endcode}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00141}00141\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00142}00142\ \textcolor{comment}{3.\ Используйте\ нужные\ модули\ в\ своем\ коде}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00143}00143\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00144}00144\ \textcolor{comment}{@subsubsection\ gpio\_example\ Пример\ работы\ с\ GPIO}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00145}00145\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00146}00146\ \textcolor{comment}{@code}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00147}00147\ \textcolor{comment}{//\ Инициализация\ светодиода}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00148}00148\ \textcolor{comment}{MX\_GPIO\_Init();}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00149}00149\ \textcolor{comment}{GPIO\_LEDTypeDef\ led;}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00150}00150\ \textcolor{comment}{GPIO\_LED\_Init(\&led,\ GPIOA,\ GPIO\_PIN\_5,\ 1);}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00151}00151\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00152}00152\ \textcolor{comment}{//\ Включение\ светодиода}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00153}00153\ \textcolor{comment}{GPIO\_LED\_On(\&led);}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00154}00154\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00155}00155\ \textcolor{comment}{//\ Запуск\ моргания}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00156}00156\ \textcolor{comment}{GPIO\_LED\_Blink\_Start(\&led,\ 500);\ //\ Период\ 500\ мс}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00157}00157\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00158}00158\ \textcolor{comment}{//\ В\ основном\ цикле}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00159}00159\ \textcolor{comment}{while\ (1)\ \{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00160}00160\ \textcolor{comment}{GPIO\_LED\_Dynamic\_Handle(\&led);}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00161}00161\ \textcolor{comment}{\}}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00162}00162\ \textcolor{comment}{@endcode}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00163}00163\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00164}00164\ \textcolor{comment}{@subsubsection\ tim\_example\ Пример\ работы\ с\ таймером}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00165}00165\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00166}00166\ \textcolor{comment}{@code}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00167}00167\ \textcolor{comment}{//\ Настройка\ таймера}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00168}00168\ \textcolor{comment}{TIM\_SettingsTypeDef\ tim\_settings\ =\ \{0\};}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00169}00169\ \textcolor{comment}{tim\_settings.htim.Instance\ =\ TIM2;}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00170}00170\ \textcolor{comment}{tim\_settings.sTimAHBFreqMHz\ =\ SystemCoreClock;}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00171}00171\ \textcolor{comment}{tim\_settings.sTickBaseUS\ =\ TIM\_TickBase\_1MS;}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00172}00172\ \textcolor{comment}{tim\_settings.sTimFreqHz\ =\ 1000;\ //\ 1\ кГц}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00173}00173\ \textcolor{comment}{tim\_settings.sTimMode\ =\ TIM\_IT\_CONF;}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00174}00174\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00175}00175\ \textcolor{comment}{TIM\_Base\_Init(\&tim\_settings);}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00176}00176\ \textcolor{comment}{HAL\_TIM\_Base\_Start(\&tim\_settings.htim);}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00177}00177\ \textcolor{comment}{@endcode}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00178}00178\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00179}00179\ \textcolor{comment}{@subsection\ dependencies\ Зависимости}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00180}00180\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00181}00181\ \textcolor{comment}{-\/\ HAL\ библиотека\ STM32}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00182}00182\ \textcolor{comment}{-\/\ SEGGER\ RTT\ (опционально,\ для\ RTT\ трассировки)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00183}00183\ \textcolor{comment}{-\/\ FreeRTOS\ (опционально,\ для\ FreeRTOS\ задержек)}}
\DoxyCodeLine{\Hypertarget{mylibs__include_8h_source_l00184}00184\ \textcolor{comment}{\ */}}
\end{DoxyCode}