Переструктурирование:
- MyLibs - максимально платформонезависимые библиотеки (кроме разве что RTT) - RTT - STM32_General - библиотеки для периферии stm32
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
\doxysection{\+\_\+\+\_\+general\+\_\+flash.\+c}
|
||||
\hypertarget{____general__flash_8c_source}{}\label{____general__flash_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_flash.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_flash.c}}
|
||||
\hypertarget{____general__flash_8c_source}{}\label{____general__flash_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/\_\_general\_flash.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/\_\_general\_flash.c}}
|
||||
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{____general__flash_8c_source_l00001}00001\ \textcolor{preprocessor}{\#include\ "{}\_\_general\_flash.h"{}}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{\+\_\+\+\_\+general\+\_\+flash.\+h}
|
||||
\hypertarget{____general__flash_8h_source}{}\label{____general__flash_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_flash.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_flash.h}}
|
||||
\hypertarget{____general__flash_8h_source}{}\label{____general__flash_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/\_\_general\_flash.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/\_\_general\_flash.h}}
|
||||
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{____general__flash_8h_source_l00001}00001\ \textcolor{comment}{/**************************************************************************}}
|
||||
|
||||
@@ -1,298 +0,0 @@
|
||||
\doxysection{\+\_\+\+\_\+general\+\_\+spi.\+c}
|
||||
\hypertarget{____general__spi_8c_source}{}\label{____general__spi_8c_source}\index{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_spi.c@{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_spi.c}}
|
||||
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00002}00002\ \textcolor{comment}{**************************************************************************}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00003}00003\ \textcolor{comment}{*\ @file\ general\_spi.c}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Модуль\ для\ инициализации\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00005}00005\ \textcolor{comment}{**************************************************************************}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00006}00006\ \textcolor{comment}{*\ @details}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00007}00007\ \textcolor{comment}{*}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00008}00008\ \textcolor{comment}{*\ Функции:}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00009}00009\ \textcolor{comment}{*\ \ \ -\/\ SPI\_Base\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ SPI\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00010}00010\ \textcolor{comment}{*\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00011}00011\ \textcolor{comment}{*\ Functions:\ spi\ initialize}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00012}00012\ \textcolor{comment}{*\ \ \ -\/\ SPI\_GPIO\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ GPIO\ для\ SPI}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00013}00013\ \textcolor{comment}{*\ \ \ -\/\ SPI\_DMA\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ DMA\ для\ SPI}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00014}00014\ \textcolor{comment}{*\ \ \ -\/\ SPI\_MspInit\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Аналог\ HAL\_MspInit\ для\ SPI}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00015}00015\ \textcolor{comment}{*\ \ \ -\/\ SPI\_MspDeInit\ \ \ \ \ \ \ \ \ \ \ \ \ Аналог\ HAL\_MspDeInit\ для\ SPI}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00016}00016\ \textcolor{comment}{*}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00017}00017\ \textcolor{comment}{*************************************************************************/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00018}00018\ \textcolor{preprocessor}{\#include\ "{}general\_spi.h"{}}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00019}00019\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__gpio_8h}{general\_gpio.h}}"{}}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00020}00020\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00021}00021\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00022}00022\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/SPI\ INIT\ FUNCTIONS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00023}00023\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00024}00024\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ SPI\ with\ SPI\_SettingsTypeDef\ structure.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00025}00025\ \textcolor{comment}{\ \ *\ @param\ \ sspi\ -\/\ указатель\ на\ структуру\ с\ настройками\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00026}00026\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00027}00027\ \textcolor{comment}{\ \ *\ @note\ \ \ SPI\_SettingsTypeDef\ структура\ содержит\ хендл\ SPI\ и\ настройки\ перефирии\ (GPIO)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00028}00028\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00029}00029\ HAL\_StatusTypeDef\ SPI\_Base\_Init(\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ *sspi)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00030}00030\ \{\ \textcolor{comment}{//\ function\ takes\ setting\ structure\ for\ init}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00031}00031\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00032}00032\ \ \ \textcolor{comment}{//\ check\ is\ settings\ are\ valid}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00033}00033\ \ \ \textcolor{keywordflow}{if}(Check\_SPI\_Init\_Struct(sspi)\ !=\ HAL\_OK)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00034}00034\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00035}00035\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00036}00036\ \ \ SPI\_MspInit(\&sspi-\/>hspi);\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00037}00037\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00038}00038\ \ \ \textcolor{keywordflow}{if}\ (HAL\_SPI\_Init(\&sspi-\/>hspi)\ !=\ HAL\_OK)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00039}00039\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00040}00040\ \ \ \ \ \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__spi_8c_source_l00041}00041\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00042}00042\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00043}00043\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00044}00044\ \ \ \textcolor{comment}{//\ init\ gpio\ from\ SPISettings\ structure}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00045}00045\ \ \ SPI\_GPIO\_Init(sspi);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00046}00046\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00047}00047\ \textcolor{comment}{//\ \ //\ init\ dma\ from\ SPISettings\ structure\ if\ need}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00048}00048\ \textcolor{comment}{//\ \ if\ (sspi-\/>DMAChannel\ !=\ 0)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00049}00049\ \textcolor{comment}{//\ \ \ \ SPI\_DMA\_Init(\&sspi-\/>hspi,\ sspi-\/>hspi.hdmarx,\ sspi-\/>DMAChannel,\ sspi-\/>DMA\_CHANNEL\_X);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00050}00050\ \ \ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00051}00051\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00052}00052\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00053}00053\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00054}00054\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00055}00055\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00056}00056\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ GPIO\ for\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00057}00057\ \textcolor{comment}{\ \ *\ @param\ \ GPIOx\ \ \ \ \ \ \ -\/\ порт\ для\ настройки.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00058}00058\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_RX\ -\/\ пин\ для\ настройки\ на\ прием.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00059}00059\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_TX\ -\/\ пин\ для\ настройки\ на\ передачу.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00060}00060\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00061}00061\ \textcolor{keywordtype}{void}\ SPI\_GPIO\_Init(\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ *sspi)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00062}00062\ \{\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00063}00063\ \ \ GPIO\_InitTypeDef\ GPIO\_InitStruct\ =\ \{0\};\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00064}00064\ \ \ \textcolor{comment}{//\ GPIO\ INIT\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00065}00065\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\_Clock\_Enable}}(sspi-\/>CLK\_GPIOx);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00066}00066\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\_Clock\_Enable}}(sspi-\/>MISO\_GPIOx);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00067}00067\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\_Clock\_Enable}}(sspi-\/>MOSI\_GPIOx);\ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00068}00068\ \ \ \ \ \textcolor{comment}{//\ CLK\ PIN\ INIT}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00069}00069\ \ \ GPIO\_InitStruct.Pin\ =\ sspi-\/>CLK\_PIN;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00070}00070\ \ \ GPIO\_InitStruct.Alternate\ =\ sspi-\/>CLK\_GPIO\_AlternageFunc;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00071}00071\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00072}00072\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_NOPULL;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00073}00073\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_VERY\_HIGH;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00074}00074\ \ \ HAL\_GPIO\_Init(sspi-\/>CLK\_GPIOx,\ \&GPIO\_InitStruct);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00075}00075\ \ \ \textcolor{comment}{//\ MISO\ PIN\ INIT}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00076}00076\ \ \ GPIO\_InitStruct.Pin\ =\ sspi-\/>MISO\_PIN;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00077}00077\ \ \ GPIO\_InitStruct.Alternate\ =\ sspi-\/>MISO\_GPIO\_AlternageFunc;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00078}00078\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00079}00079\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_NOPULL;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00080}00080\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_VERY\_HIGH;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00081}00081\ \ \ HAL\_GPIO\_Init(sspi-\/>MISO\_GPIOx,\ \&GPIO\_InitStruct);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00082}00082\ \ \ \textcolor{comment}{//\ MOSI\ PIN\ INIT}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00083}00083\ \ \ GPIO\_InitStruct.Pin\ =\ sspi-\/>MOSI\_PIN;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00084}00084\ \ \ GPIO\_InitStruct.Alternate\ =\ sspi-\/>MOSI\_GPIO\_AlternageFunc;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00085}00085\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00086}00086\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_NOPULL;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00087}00087\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_VERY\_HIGH;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00088}00088\ \ \ HAL\_GPIO\_Init(sspi-\/>MOSI\_GPIOx,\ \&GPIO\_InitStruct);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00089}00089\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00090}00090\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00091}00091\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00092}00092\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ DMA\ for\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00093}00093\ \textcolor{comment}{\ \ *\ @param\ \ hspi\ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ SPI\ для\ настройки\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00094}00094\ \textcolor{comment}{\ \ *\ @param\ \ hdma\_rx\ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ DMA\ для\ линии\ приема\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00095}00095\ \textcolor{comment}{\ \ *\ @param\ \ DMAChannel\ \ \ \ -\/\ указатель\ на\ канал\ DMA/поток\ DMA\ в\ STM32F407.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00096}00096\ \textcolor{comment}{\ \ *\ @param\ \ DMA\_CHANNEL\_X\ -\/\ канал\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00097}00097\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00098}00098\ \textcolor{keywordtype}{void}\ SPI\_DMA\_Init(SPI\_HandleTypeDef\ *hspi,\ DMA\_HandleTypeDef\ *hdma\_rx,\ DMA\_Stream\_TypeDef\ *DMAChannel,\ uint32\_t\ DMA\_CHANNEL\_X)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00099}00099\ \{\ \textcolor{comment}{//\ function\ takes\ spi\ and\ dma\ handlers\ and\ dmachannel\ for\ spi}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00100}00100\ \textcolor{comment}{//\ \ //\ for\ now\ only\ dma\ rx\ is\ supported,\ tx\ maybe\ later\ if\ needed}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00101}00101\ \textcolor{comment}{//\ \ \ \ //\ calc\ defines\ on\ boot\_project\_setup.h}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00102}00102\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00103}00103\ \textcolor{comment}{//\ \ /*\ SPI3\ DMA\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00104}00104\ \textcolor{comment}{//\ \ /*\ SPI3\_RX\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00105}00105\ \textcolor{comment}{//\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00106}00106\ \textcolor{comment}{//\ \ hdma\_rx-\/>Instance\ =\ DMAChannel;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00107}00107\ \textcolor{comment}{//\#if\ defined(STM32F407xx)\ //\ dma\ channel\ choose\ for\ 407}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00108}00108\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.Channel\ =\ DMA\_CHANNEL\_X;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00109}00109\ \textcolor{comment}{//\#endif}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00110}00110\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.Direction\ =\ DMA\_PERIPH\_TO\_MEMORY;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00111}00111\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.PeriphInc\ =\ DMA\_PINC\_DISABLE;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00112}00112\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.MemInc\ =\ DMA\_MINC\_ENABLE;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00113}00113\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.PeriphDataAlignment\ =\ DMA\_PDATAALIGN\_BYTE;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00114}00114\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.MemDataAlignment\ =\ DMA\_MDATAALIGN\_BYTE;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00115}00115\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.Mode\ =\ DMA\_CIRCULAR;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00116}00116\ \textcolor{comment}{//\ \ hdma\_rx-\/>Init.Priority\ =\ DMA\_PRIORITY\_LOW;}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00117}00117\ \textcolor{comment}{//\ \ if\ (HAL\_DMA\_Init(hdma\_rx)\ !=\ HAL\_OK)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00118}00118\ \textcolor{comment}{//\ \ \{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00119}00119\ \textcolor{comment}{//\ \ \ \ MyLibs\_Error\_Handler();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00120}00120\ \textcolor{comment}{//\ \ \}}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00121}00121\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00122}00122\ \textcolor{comment}{//\ \ \_\_USER\_LINKDMA(hspi,hdmarx,hdma\_rx);\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00123}00123\ \textcolor{comment}{//\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00124}00124\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00125}00125\ \textcolor{comment}{//\ \ //\ \_\_USER\_LINKDMA\ is\ need\ because\ \_\_HAL\_LINKDMA\ is\ written\ for\ global\ defined\ hdma\_rx}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00126}00126\ \textcolor{comment}{//\ \ //\ so\ you\ get\ error\ because\ hal\ uses\ .\ insted\ of\ -\/>}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00127}00127\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00128}00128\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00129}00129\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00130}00130\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ SPI\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00131}00131\ \textcolor{comment}{\ \ *\ @param\ \ hspi\ -\/\ указатель\ на\ хендл\ SPI\ для\ инициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00132}00132\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ иницилизацией\ неиспользуемых\ SPI,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00133}00133\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ general\_spi.h\ определяются\ используемые\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00134}00134\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00135}00135\ \textcolor{keywordtype}{void}\ SPI\_MspInit(SPI\_HandleTypeDef\ *hspi)\ \textcolor{comment}{//\ analog\ for\ hal\ function}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00136}00136\ \{\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00137}00137\ \ \ \textcolor{comment}{//\ rcc,\ dma\ and\ interrupt\ init\ for\ SPIs}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00138}00138\ \ \ \textcolor{comment}{//\ GPIO\ init\ was\ moved\ to\ own\ functions\ SPI\_GPIO\_Init\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00139}00139\ \ \ \textcolor{keywordflow}{if}(0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00140}00140\ \textcolor{preprocessor}{\#ifdef\ USE\_SPI1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00141}00141\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(hspi-\/>Instance==SPI1)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00142}00142\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00143}00143\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00144}00144\ \textcolor{comment}{//\ \ /*\ DMA2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00145}00145\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA2\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00146}00146\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00147}00147\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA2\_Stream2\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00148}00148\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA2\_Stream2\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00149}00149\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00150}00150\ \ \ \textcolor{comment}{/*\ SPI1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00151}00151\ \ \ \_\_HAL\_RCC\_SPI1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00152}00152\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00153}00153\ \ \ \textcolor{comment}{/*\ SPI1\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00154}00154\ \ \ HAL\_NVIC\_SetPriority(SPI1\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00155}00155\ \ \ HAL\_NVIC\_EnableIRQ(SPI1\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00156}00156\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00157}00157\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_SPI1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00158}00158\ \textcolor{preprocessor}{\#ifdef\ USE\_SPI2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00159}00159\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(hspi-\/>Instance==SPI2)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00160}00160\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00161}00161\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00162}00162\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00163}00163\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00164}00164\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream5\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00165}00165\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream5\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00166}00166\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00167}00167\ \ \ \textcolor{comment}{/*\ SPI2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00168}00168\ \ \ \_\_HAL\_RCC\_SPI2\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00169}00169\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00170}00170\ \ \ \textcolor{comment}{/*\ SPI2\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00171}00171\ \ \ HAL\_NVIC\_SetPriority(SPI2\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00172}00172\ \ \ HAL\_NVIC\_EnableIRQ(SPI2\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00173}00173\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00174}00174\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_SPI2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00175}00175\ \textcolor{preprocessor}{\#ifdef\ USE\_SPI3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00176}00176\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(hspi-\/>Instance==SPI3)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00177}00177\ \ \ \{\ \ \ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00178}00178\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00179}00179\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00180}00180\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00181}00181\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream1\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00182}00182\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream1\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00183}00183\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00184}00184\ \ \ \textcolor{comment}{/*\ SPI3\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00185}00185\ \ \ \_\_HAL\_RCC\_SPI3\_CLK\_ENABLE();\ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00186}00186\ \ \ \textcolor{comment}{/*\ SPI3\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00187}00187\ \ \ HAL\_NVIC\_SetPriority(SPI3\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00188}00188\ \ \ HAL\_NVIC\_EnableIRQ(SPI3\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00189}00189\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00190}00190\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_SPI3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00191}00191\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00192}00192\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00193}00193\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00194}00194\ \textcolor{comment}{\ \ *\ @brief\ \ Deinitialize\ SPI\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00195}00195\ \textcolor{comment}{\ \ *\ @param\ \ hspi\ -\/\ указатель\ на\ хендл\ SPI\ для\ деинициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00196}00196\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ деиницилизацией\ неиспользуемых\ SPI,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00197}00197\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ определяются\ используемые\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00198}00198\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00199}00199\ \textcolor{keywordtype}{void}\ SPI\_MspDeInit(SPI\_HandleTypeDef\ *hspi)\ \textcolor{comment}{//\ analog\ for\ hal\ function}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00200}00200\ \{\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00201}00201\ \ \ \textcolor{comment}{//\ rcc,\ dma\ and\ interrupt\ init\ for\ SPIs}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00202}00202\ \ \ \textcolor{comment}{//\ GPIO\ init\ was\ moved\ to\ own\ functions\ SPI\_GPIO\_Init\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00203}00203\ \ \ \textcolor{keywordflow}{if}(0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00204}00204\ \textcolor{preprocessor}{\#ifdef\ USE\_SPI1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00205}00205\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(hspi-\/>Instance==SPI1)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00206}00206\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00207}00207\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00208}00208\ \textcolor{comment}{//\ \ /*\ DMA2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00209}00209\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA2\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00210}00210\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00211}00211\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA2\_Stream2\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00212}00212\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA2\_Stream2\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00213}00213\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00214}00214\ \ \ \textcolor{comment}{/*\ SPI1\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00215}00215\ \ \ \_\_HAL\_RCC\_SPI1\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00216}00216\ \ \ \_\_HAL\_RCC\_SPI1\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00217}00217\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00218}00218\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_SPI1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00219}00219\ \textcolor{preprocessor}{\#ifdef\ USE\_SPI2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00220}00220\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(hspi-\/>Instance==SPI2)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00221}00221\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00222}00222\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00223}00223\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00224}00224\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00225}00225\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream5\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00226}00226\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream5\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00227}00227\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00228}00228\ \ \ \textcolor{comment}{/*\ SPI2\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00229}00229\ \ \ \_\_HAL\_RCC\_SPI2\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00230}00230\ \ \ \_\_HAL\_RCC\_SPI2\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00231}00231\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00232}00232\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_SPI2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00233}00233\ \textcolor{preprocessor}{\#ifdef\ USE\_SPI3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00234}00234\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(hspi-\/>Instance==SPI3)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00235}00235\ \ \ \{\ \ \ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00236}00236\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00237}00237\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00238}00238\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00239}00239\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream1\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00240}00240\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream1\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00241}00241\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00242}00242\ \ \ \textcolor{comment}{/*\ SPI3\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00243}00243\ \ \ \_\_HAL\_RCC\_SPI3\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00244}00244\ \ \ \_\_HAL\_RCC\_SPI3\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00245}00245\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00246}00246\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_SPI3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00247}00247\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00248}00248\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00249}00249\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00250}00250\ \textcolor{comment}{\ \ *\ @brief\ \ Check\ that\ spi\ init\ structure\ have\ correct\ values.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00251}00251\ \textcolor{comment}{\ \ *\ @param\ \ sspi\ -\/\ указатель\ на\ структуру\ с\ настройками\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00252}00252\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00253}00253\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00254}00254\ HAL\_StatusTypeDef\ Check\_SPI\_Init\_Struct(\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ *sspi)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00255}00255\ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00256}00256\ \ \ \textcolor{comment}{//\ check\ is\ settings\ are\ valid}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00257}00257\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_ALL\_INSTANCE(sspi-\/>hspi.Instance))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00258}00258\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00259}00259\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00260}00260\ \ \ \textcolor{comment}{//\ check\ init\ settings}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00261}00261\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_MODE(sspi-\/>hspi.Init.Mode))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00262}00262\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00263}00263\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_DIRECTION(sspi-\/>hspi.Init.Direction))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00264}00264\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00265}00265\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_DATASIZE(sspi-\/>hspi.Init.DataSize))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00266}00266\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00267}00267\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_BAUDRATE\_PRESCALER(sspi-\/>hspi.Init.BaudRatePrescaler))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00268}00268\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00269}00269\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_CPOL(sspi-\/>hspi.Init.CLKPolarity))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00270}00270\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00271}00271\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_CPHA(sspi-\/>hspi.Init.CLKPhase))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00272}00272\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00273}00273\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_NSS(sspi-\/>hspi.Init.NSS))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00274}00274\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00275}00275\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_FIRST\_BIT(sspi-\/>hspi.Init.FirstBit))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00276}00276\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00277}00277\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_CRC\_CALCULATION(sspi-\/>hspi.Init.CRCCalculation))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00278}00278\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00279}00279\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_CRC\_POLYNOMIAL(sspi-\/>hspi.Init.NSS)\ \&\&\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00280}00280\ \ \ \ \ (sspi-\/>hspi.Init.CRCCalculation\ !=\ SPI\_CRCCALCULATION\_DISABLE))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00281}00281\ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00282}00282\ \ \ \textcolor{keywordflow}{if}\ (!IS\_SPI\_TIMODE(sspi-\/>hspi.Init.TIMode))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00283}00283\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00284}00284\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00285}00285\ \ \ \textcolor{comment}{//\ check\ gpio}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00286}00286\ \ \ \textcolor{keywordflow}{if}\ (!IS\_GPIO\_ALL\_INSTANCE(sspi-\/>CLK\_GPIOx)\ ||\ !IS\_GPIO\_ALL\_INSTANCE(sspi-\/>MISO\_GPIOx)\ ||\ !IS\_GPIO\_ALL\_INSTANCE(sspi-\/>MOSI\_GPIOx))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00287}00287\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00288}00288\ \ \ \textcolor{keywordflow}{if}\ (!IS\_GPIO\_PIN(sspi-\/>CLK\_PIN)\ \&\&\ !IS\_GPIO\_PIN(sspi-\/>MISO\_PIN)\ \&\&\ !IS\_GPIO\_PIN(sspi-\/>MOSI\_PIN))\ \textcolor{comment}{//\ if\ both\ pins\ arent\ set\ up}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00289}00289\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00290}00290\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00291}00291\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8c_source_l00292}00292\ \}}
|
||||
|
||||
\end{DoxyCode}
|
||||
@@ -1,106 +0,0 @@
|
||||
\doxysection{\+\_\+\+\_\+general\+\_\+spi.\+h}
|
||||
\hypertarget{____general__spi_8h_source}{}\label{____general__spi_8h_source}\index{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_spi.h@{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_spi.h}}
|
||||
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00002}00002\ \textcolor{comment}{**************************************************************************}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ general\_spi.h}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Заголовочны\ файл\ модуля\ инициализации\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00005}00005\ \textcolor{comment}{*************************************************************************/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00006}00006\ \textcolor{preprocessor}{\#ifndef\ \_\_SPI\_GENERAL\_H\_}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00007}00007\ \textcolor{preprocessor}{\#define\ \_\_SPI\_GENERAL\_H\_}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00008}00008\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00009}00009\ \textcolor{comment}{//////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00010}00010\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00011}00011\ \textcolor{comment}{}\textcolor{preprocessor}{\#define\ HAL\_SPI\_MODULE\_ENABLED\ \ }\textcolor{comment}{//\ need\ to\ uncomment\ these\ defines\ in\ stm32f4xx\_hal\_conf.h}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00012}00012\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ also\ need\ to\ add\ hal\_spi.c\ (source\ code)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00013}00013\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00014}00014\ \textcolor{preprocessor}{\#define\ USE\_SPI1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00015}00015\ \textcolor{preprocessor}{\#define\ USE\_SPI2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00016}00016\ \textcolor{preprocessor}{\#define\ USE\_SPI3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00017}00017\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00018}00018\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00019}00019\ \textcolor{comment}{}\textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00020}00020\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00021}00021\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00022}00022\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00023}00023\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00024}00024\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00025}00025\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00026}00026\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00027}00027\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00028}00028\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00029}00029\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00030}00030\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00031}00031\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00032}00032\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00033}\mbox{\hyperlink{struct_s_p_i___settings_type_def}{00033}}\ \textcolor{comment}{}\textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ settings\ for\ custom\ function}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00034}00034\ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00035}00035\ \ \ SPI\_HandleTypeDef\ hspi;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00036}00036\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00037}00037\ \ \ GPIO\_TypeDef\ \ *CLK\_GPIOx;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00038}00038\ \ \ uint32\_t\ \ \ \ \ \ CLK\_PIN;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00039}00039\ \ \ uint32\_t\ \ \ \ \ \ CLK\_GPIO\_AlternageFunc;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00040}00040\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00041}00041\ \ \ GPIO\_TypeDef\ \ *MISO\_GPIOx;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00042}00042\ \ \ uint32\_t\ \ \ \ \ \ MISO\_PIN;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00043}00043\ \ \ uint32\_t\ \ \ \ \ \ MISO\_GPIO\_AlternageFunc;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00044}00044\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00045}00045\ \ \ GPIO\_TypeDef\ \ *MOSI\_GPIOx;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00046}00046\ \ \ uint32\_t\ \ \ \ \ \ MOSI\_PIN;\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00047}00047\ \ \ uint32\_t\ \ \ \ \ \ MOSI\_GPIO\_AlternageFunc;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00048}00048\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00049}00049\ \}\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}};\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00050}00050\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00051}00051\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00052}00052\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00053}00053\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00054}00054\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00055}00055\ \textcolor{comment}{}\textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00056}00056\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ SPI\ with\ SPI\_SettingsTypeDef\ structure.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00057}00057\ \textcolor{comment}{\ \ *\ @param\ \ sspi\ -\/\ указатель\ на\ структуру\ с\ настройками\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00058}00058\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00059}00059\ \textcolor{comment}{\ \ *\ @note\ \ \ Данная\ структура\ содержит\ хендл\ ЮАРТ\ и\ настройки\ перефирии\ (GPIO)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00060}00060\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00061}00061\ HAL\_StatusTypeDef\ SPI\_Base\_Init(\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ *sspi);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00062}00062\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00063}00063\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ GPIO\ for\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00064}00064\ \textcolor{comment}{\ \ *\ @param\ \ GPIOx\ \ \ \ \ \ \ -\/\ порт\ для\ настройки.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00065}00065\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_RX\ -\/\ пин\ для\ настройки\ на\ прием.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00066}00066\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_TX\ -\/\ пин\ для\ настройки\ на\ передачу.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00067}00067\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00068}00068\ \textcolor{keywordtype}{void}\ SPI\_GPIO\_Init(\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ *sspi);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00069}00069\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00070}00070\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ DMA\ for\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00071}00071\ \textcolor{comment}{\ \ *\ @param\ \ hspi\ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ SPI\ для\ настройки\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00072}00072\ \textcolor{comment}{\ \ *\ @param\ \ hdma\_rx\ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ DMA\ для\ линии\ приема\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00073}00073\ \textcolor{comment}{\ \ *\ @param\ \ DMAChannel\ \ \ \ -\/\ указатель\ на\ канал\ DMA/поток\ DMA\ в\ STM32F407.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00074}00074\ \textcolor{comment}{\ \ *\ @param\ \ DMA\_CHANNEL\_X\ -\/\ канал\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00075}00075\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00076}00076\ \textcolor{keywordtype}{void}\ SPI\_DMA\_Init(SPI\_HandleTypeDef\ *hspi,\ DMA\_HandleTypeDef\ *hdma\_rx,\ DMA\_Stream\_TypeDef\ *DMAChannel,\ uint32\_t\ DMA\_CHANNEL\_X);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00077}00077\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00078}00078\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ SPI\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00079}00079\ \textcolor{comment}{\ \ *\ @param\ \ hspi\ -\/\ указатель\ на\ хендл\ SPI\ для\ инициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00080}00080\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ иницилизацией\ неиспользуемых\ SPI,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00081}00081\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ определяются\ используемые\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00082}00082\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00083}00083\ \textcolor{keywordtype}{void}\ SPI\_MspInit(SPI\_HandleTypeDef\ *hspi);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00084}00084\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00085}00085\ \textcolor{comment}{\ \ *\ @brief\ \ Deinitialize\ SPI\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00086}00086\ \textcolor{comment}{\ \ *\ @param\ \ hspi\ -\/\ указатель\ на\ хендл\ SPI\ для\ деинициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00087}00087\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ деиницилизацией\ неиспользуемых\ SPI,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00088}00088\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ rs\_message.h\ определяются\ используемые\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00089}00089\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00090}00090\ \textcolor{keywordtype}{void}\ SPI\_MspDeInit(SPI\_HandleTypeDef\ *hspi);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00091}00091\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00092}00092\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00093}00093\ \textcolor{comment}{\ \ *\ @brief\ \ Check\ that\ spi\ init\ structure\ have\ correct\ values.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00094}00094\ \textcolor{comment}{\ \ *\ @param\ \ sspi\ -\/\ указатель\ на\ структуру\ с\ настройками\ SPI.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00095}00095\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00096}00096\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00097}00097\ HAL\_StatusTypeDef\ Check\_SPI\_Init\_Struct(\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ *sspi);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00098}00098\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00099}00099\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__spi_8h_source_l00100}00100\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_\_SPI\_GENERAL\_H\_}}
|
||||
|
||||
\end{DoxyCode}
|
||||
@@ -1,386 +0,0 @@
|
||||
\doxysection{\+\_\+\+\_\+general\+\_\+uart.\+c}
|
||||
\hypertarget{____general__uart_8c_source}{}\label{____general__uart_8c_source}\index{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_uart.c@{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Src/\_\_general\_uart.c}}
|
||||
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00002}00002\ \textcolor{comment}{\ \ **************************************************************************}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00003}00003\ \textcolor{comment}{\ \ *\ @file\ general\_uart.c}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00004}00004\ \textcolor{comment}{\ \ *\ @brief\ Модуль\ для\ инициализации\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00005}00005\ \textcolor{comment}{\ \ **************************************************************************}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00006}00006\ \textcolor{comment}{\ \ *\ //-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/Функции-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\///}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00007}00007\ \textcolor{comment}{\ \ *\ @verbatim}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00008}00008\ \textcolor{comment}{\ \ *\ Functions:\ users}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00009}00009\ \textcolor{comment}{\ \ *\ \ \ -\/\ UART\_Base\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ UART\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00010}00010\ \textcolor{comment}{\ \ *\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00011}00011\ \textcolor{comment}{\ \ *\ Functions:\ uart\ initialize}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00012}00012\ \textcolor{comment}{\ \ *\ \ \ -\/\ UART\_GPIO\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ GPIO\ для\ UART}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00013}00013\ \textcolor{comment}{\ \ *\ \ \ -\/\ UART\_DMA\_Init\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Инициализация\ DMA\ для\ UART}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00014}00014\ \textcolor{comment}{\ \ *\ \ \ -\/\ UART\_MspInit\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Аналог\ HAL\_MspInit\ для\ UART}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00015}00015\ \textcolor{comment}{\ \ *\ \ \ -\/\ UART\_MspDeInit\ \ \ \ \ \ \ \ \ \ \ \ \ \ Аналог\ HAL\_MspDeInit\ для\ UART}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00016}00016\ \textcolor{comment}{\ \ *\ @endverbatim}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00017}00017\ \textcolor{comment}{***************************************************************************/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00018}00018\ \textcolor{preprocessor}{\#include\ "{}general\_uart.h"{}}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00019}00019\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__gpio_8h}{general\_gpio.h}}"{}}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00020}00020\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00021}00021\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00022}00022\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/UART\ INIT\ FUNCTIONS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00023}00023\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00024}00024\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ UART\ with\ UART\_SettingsTypeDef\ structure.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00025}00025\ \textcolor{comment}{\ \ *\ @param\ \ suart\ -\/\ указатель\ на\ структуру\ с\ настройками\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00026}00026\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00027}00027\ \textcolor{comment}{\ \ *\ @note\ \ \ Данная\ структура\ содержит\ хендл\ ЮАРТ\ и\ настройки\ перефирии\ (GPIO)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00028}00028\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00029}00029\ HAL\_StatusTypeDef\ UART\_Base\_Init(\mbox{\hyperlink{struct_u_a_r_t___settings_type_def}{UART\_SettingsTypeDef}}\ *suart)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00030}00030\ \{\ \textcolor{comment}{//\ function\ takes\ setting\ structure\ for\ init}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00031}00031\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00032}00032\ \ \ \textcolor{comment}{//\ check\ is\ settings\ are\ valid}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00033}00033\ \ \ \textcolor{keywordflow}{if}(Check\_UART\_Init\_Struct(suart)\ !=\ HAL\_OK)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00034}00034\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00035}00035\ \ \ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00036}00036\ \ \ suart-\/>huart.Init.Mode\ =\ UART\_MODE\_TX\_RX;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00037}00037\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00038}00038\ \ \ UART\_MspInit(\&suart-\/>huart);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00039}00039\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00040}00040\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00041}00041\ \ \ \textcolor{keywordflow}{if}\ (HAL\_UART\_Init(\&suart-\/>huart)\ !=\ HAL\_OK)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00042}00042\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00043}00043\ \ \ \ \ \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__uart_8c_source_l00044}00044\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00045}00045\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00046}00046\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00047}00047\ \ \ \textcolor{comment}{//\ init\ gpio\ from\ UARTSettings\ structure}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00048}00048\ \ \ UART\_GPIO\_Init(suart-\/>GPIOx,\ suart-\/>GPIO\_PIN\_RX,\ suart-\/>GPIO\_PIN\_TX);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00049}00049\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00050}00050\ \ \ \_\_HAL\_UART\_ENABLE\_IT(\&suart-\/>huart,\ UART\_IT\_IDLE);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00051}00051\ \ \ \textcolor{comment}{//\ init\ dma\ from\ UARTSettings\ structure\ if\ need}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00052}00052\ \ \ \textcolor{keywordflow}{if}\ (suart-\/>DMAChannel\ !=\ 0)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00053}00053\ \ \ \ \ UART\_DMA\_Init(\&suart-\/>huart,\ suart-\/>huart.hdmarx,\ suart-\/>DMAChannel,\ suart-\/>DMA\_CHANNEL\_X);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00054}00054\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00055}00055\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00056}00056\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00057}00057\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00058}00058\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00059}00059\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00060}00060\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00061}00061\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ GPIO\ for\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00062}00062\ \textcolor{comment}{\ \ *\ @param\ \ GPIOx\ \ \ \ \ \ \ -\/\ порт\ для\ настройки.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00063}00063\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_RX\ -\/\ пин\ для\ настройки\ на\ прием.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00064}00064\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_TX\ -\/\ пин\ для\ настройки\ на\ передачу.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00065}00065\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00066}00066\ \textcolor{keywordtype}{void}\ UART\_GPIO\_Init(GPIO\_TypeDef\ *GPIOx,\ uint16\_t\ GPIO\_PIN\_RX,\ uint16\_t\ GPIO\_PIN\_TX)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00067}00067\ \{\ \textcolor{comment}{//\ function\ takes\ port\ and\ pins\ (for\ rx\ and\ tx)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00068}00068\ \ \ GPIO\_InitTypeDef\ GPIO\_InitStruct\ =\ \{0\};}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00069}00069\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00070}00070\ \ \ \textcolor{comment}{//\ choose\ port\ for\ enable\ clock}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00071}00071\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___g_p_i_o___g_e_n_e_r_a_l_ga962f010f783b81fcdd27eb6b53db28e6}{GPIO\_Clock\_Enable}}(GPIOx);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00072}00072\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00073}00073\ \ \ \textcolor{comment}{//USART3\ GPIO\ Configuration}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00074}00074\ \ \ \textcolor{comment}{//GPIO\_PIN\_TX\ -\/-\/-\/-\/-\/-\/>\ USART\_TX}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00075}00075\ \ \ \textcolor{comment}{//GPIO\_PIN\_RX\ -\/-\/-\/-\/-\/-\/>\ USART\_RX\ \ \ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00076}00076\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00077}00077\ \textcolor{preprocessor}{\#if\ defined(STM32F407xx)\ }\textcolor{comment}{//\ gpio\ init\ for\ 407}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00078}00078\ \ \ GPIO\_InitStruct.Pin\ =\ GPIO\_PIN\_TX|GPIO\_PIN\_RX;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00079}00079\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00080}00080\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_NOPULL;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00081}00081\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_VERY\_HIGH;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00082}00082\ \ \ GPIO\_InitStruct.Alternate\ =\ GPIO\_AF7\_USART3;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00083}00083\ \ \ HAL\_GPIO\_Init(GPIOx,\ \&GPIO\_InitStruct);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00084}00084\ \textcolor{preprocessor}{\#elif\ defined(STM32F103xG)\ \ }\textcolor{comment}{//\ gpio\ init\ for\ atm403/stm103}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00085}00085\ \ \ \textcolor{comment}{//GPIO\_PIN\_TX\ -\/-\/-\/-\/-\/-\/>\ USART\_TX}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00086}00086\ \ \ GPIO\_InitStruct.Pin\ =\ GPIO\_PIN\_TX;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00087}00087\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_AF\_PP;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00088}00088\ \ \ GPIO\_InitStruct.Speed\ =\ GPIO\_SPEED\_FREQ\_HIGH;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00089}00089\ \ \ HAL\_GPIO\_Init(GPIOx,\ \&GPIO\_InitStruct);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00090}00090\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00091}00091\ \textcolor{comment}{//\ \ GPIO\_PIN\_RX\ -\/-\/-\/-\/-\/-\/>\ USART\_RX\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00092}00092\ \ \ GPIO\_InitStruct.Pin\ =\ GPIO\_PIN\_RX;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00093}00093\ \ \ GPIO\_InitStruct.Mode\ =\ GPIO\_MODE\_INPUT;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00094}00094\ \ \ GPIO\_InitStruct.Pull\ =\ GPIO\_NOPULL;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00095}00095\ \ \ HAL\_GPIO\_Init(GPIOx,\ \&GPIO\_InitStruct);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00096}00096\ \textcolor{preprocessor}{\#endif}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00097}00097\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00098}00098\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00099}00099\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00100}00100\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ DMA\ for\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00101}00101\ \textcolor{comment}{\ \ *\ @param\ \ huart\ \ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ UART\ для\ настройки\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00102}00102\ \textcolor{comment}{\ \ *\ @param\ \ hdma\_rx\ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ DMA\ для\ линии\ приема\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00103}00103\ \textcolor{comment}{\ \ *\ @param\ \ DMAChannel\ \ \ \ -\/\ указатель\ на\ канал\ DMA/поток\ DMA\ в\ STM32F407.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00104}00104\ \textcolor{comment}{\ \ *\ @param\ \ DMA\_CHANNEL\_X\ -\/\ канал\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00105}00105\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00106}00106\ \textcolor{keywordtype}{void}\ UART\_DMA\_Init(UART\_HandleTypeDef\ *huart,\ DMA\_HandleTypeDef\ *hdma\_rx,\ DMA\_Stream\_TypeDef\ *DMAChannel,\ uint32\_t\ DMA\_CHANNEL\_X)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00107}00107\ \{\ \textcolor{comment}{//\ function\ takes\ uart\ and\ dma\ handlers\ and\ dmachannel\ for\ uart}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00108}00108\ \ \ \textcolor{comment}{//\ for\ now\ only\ dma\ rx\ is\ supported,\ tx\ maybe\ later\ if\ needed}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00109}00109\ \ \ \ \ \textcolor{comment}{//\ calc\ defines\ on\ boot\_project\_setup.h}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00110}00110\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00111}00111\ \ \ \textcolor{comment}{/*\ USART3\ DMA\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00112}00112\ \ \ \textcolor{comment}{/*\ USART3\_RX\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00113}00113\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00114}00114\ \ \ hdma\_rx-\/>Instance\ =\ DMAChannel;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00115}00115\ \textcolor{preprocessor}{\#if\ defined(STM32F407xx)\ }\textcolor{comment}{//\ dma\ channel\ choose\ for\ 407}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00116}00116\ \ \ hdma\_rx-\/>Init.Channel\ =\ DMA\_CHANNEL\_X;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00117}00117\ \textcolor{preprocessor}{\#endif}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00118}00118\ \ \ hdma\_rx-\/>Init.Direction\ =\ DMA\_PERIPH\_TO\_MEMORY;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00119}00119\ \ \ hdma\_rx-\/>Init.PeriphInc\ =\ DMA\_PINC\_DISABLE;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00120}00120\ \ \ hdma\_rx-\/>Init.MemInc\ =\ DMA\_MINC\_ENABLE;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00121}00121\ \ \ hdma\_rx-\/>Init.PeriphDataAlignment\ =\ DMA\_PDATAALIGN\_BYTE;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00122}00122\ \ \ hdma\_rx-\/>Init.MemDataAlignment\ =\ DMA\_MDATAALIGN\_BYTE;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00123}00123\ \ \ hdma\_rx-\/>Init.Mode\ =\ DMA\_CIRCULAR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00124}00124\ \ \ hdma\_rx-\/>Init.Priority\ =\ DMA\_PRIORITY\_LOW;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00125}00125\ \ \ \textcolor{keywordflow}{if}\ (HAL\_DMA\_Init(hdma\_rx)\ !=\ HAL\_OK)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00126}00126\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00127}00127\ \ \ \ \ \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__uart_8c_source_l00128}00128\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00129}00129\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00130}00130\ \ \ \_\_USER\_LINKDMA(huart,hdmarx,hdma\_rx);\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00131}00131\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00132}00132\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00133}00133\ \ \ \textcolor{comment}{//\ \_\_USER\_LINKDMA\ is\ need\ because\ \_\_HAL\_LINKDMA\ is\ written\ for\ global\ defined\ hdma\_rx}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00134}00134\ \ \ \textcolor{comment}{//\ so\ you\ get\ error\ because\ hal\ uses\ .\ insted\ of\ -\/>}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00135}00135\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00136}00136\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00137}00137\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00138}00138\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ UART\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00139}00139\ \textcolor{comment}{\ \ *\ @param\ \ huart\ -\/\ указатель\ на\ хендл\ UART\ для\ инициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00140}00140\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ иницилизацией\ неиспользуемых\ UART,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00141}00141\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ rs\_message.h\ определяются\ используемые\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00142}00142\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00143}00143\ \textcolor{keywordtype}{void}\ UART\_MspInit(UART\_HandleTypeDef\ *huart)\ \textcolor{comment}{//\ analog\ for\ hal\ function}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00144}00144\ \{\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00145}00145\ \textcolor{comment}{//\ \ \_\_RCC\_DMA\_UART\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00146}00146\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00147}00147\ \textcolor{comment}{//\ \ /*\ DMA1\_Stream1\_IRQn\ interrupt\ configuration\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00148}00148\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA\_UART\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00149}00149\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA\_UART\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00150}00150\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00151}00151\ \ \ \textcolor{comment}{//\ rcc,\ dma\ and\ interrupt\ init\ for\ USARTs}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00152}00152\ \ \ \textcolor{comment}{//\ GPIO\ init\ was\ moved\ to\ own\ functions\ UART\_GPIO\_Init\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00153}00153\ \ \ \textcolor{keywordflow}{if}(0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00154}00154\ \textcolor{preprocessor}{\#ifdef\ USE\_USART1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00155}00155\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART1)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00156}00156\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00157}00157\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00158}00158\ \ \ \textcolor{comment}{/*\ DMA2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00159}00159\ \ \ \_\_HAL\_RCC\_DMA2\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00160}00160\ \ \ \textcolor{comment}{/*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00161}00161\ \ \ HAL\_NVIC\_SetPriority(DMA2\_Stream2\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00162}00162\ \ \ HAL\_NVIC\_EnableIRQ(DMA2\_Stream2\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00163}00163\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00164}00164\ \ \ \textcolor{comment}{/*\ USART1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00165}00165\ \ \ \_\_HAL\_RCC\_USART1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00166}00166\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00167}00167\ \ \ \textcolor{comment}{/*\ USART1\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00168}00168\ \ \ HAL\_NVIC\_SetPriority(USART1\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00169}00169\ \ \ HAL\_NVIC\_EnableIRQ(USART1\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00170}00170\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00171}00171\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00172}00172\ \textcolor{preprocessor}{\#ifdef\ USE\_USART2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00173}00173\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART2)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00174}00174\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00175}00175\ \ \ \textcolor{comment}{/*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00176}00176\ \ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00177}00177\ \ \ \textcolor{comment}{/*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00178}00178\ \ \ HAL\_NVIC\_SetPriority(DMA1\_Stream5\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00179}00179\ \ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream5\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00180}00180\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00181}00181\ \ \ \textcolor{comment}{/*\ USART2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00182}00182\ \ \ \_\_HAL\_RCC\_USART2\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00183}00183\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00184}00184\ \ \ \textcolor{comment}{/*\ USART2\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00185}00185\ \ \ HAL\_NVIC\_SetPriority(USART2\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00186}00186\ \ \ HAL\_NVIC\_EnableIRQ(USART2\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00187}00187\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00188}00188\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00189}00189\ \textcolor{preprocessor}{\#ifdef\ USE\_USART3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00190}00190\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART3)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00191}00191\ \ \ \{\ \ \ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00192}00192\ \ \ \textcolor{comment}{/*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00193}00193\ \ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00194}00194\ \ \ \textcolor{comment}{/*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00195}00195\ \ \ HAL\_NVIC\_SetPriority(DMA1\_Stream1\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00196}00196\ \ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream1\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00197}00197\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00198}00198\ \ \ \textcolor{comment}{/*\ USART3\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00199}00199\ \ \ \_\_HAL\_RCC\_USART3\_CLK\_ENABLE();\ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00200}00200\ \ \ \textcolor{comment}{/*\ USART3\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00201}00201\ \ \ HAL\_NVIC\_SetPriority(USART3\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00202}00202\ \ \ HAL\_NVIC\_EnableIRQ(USART3\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00203}00203\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00204}00204\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00205}00205\ \textcolor{preprocessor}{\#ifdef\ USE\_UART4}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00206}00206\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==UART4)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00207}00207\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00208}00208\ \ \ \textcolor{comment}{/*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00209}00209\ \ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00210}00210\ \ \ \textcolor{comment}{/*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00211}00211\ \ \ HAL\_NVIC\_SetPriority(DMA1\_Stream2\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00212}00212\ \ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream2\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00213}00213\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00214}00214\ \ \ \textcolor{comment}{/*\ UART4\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00215}00215\ \ \ \_\_HAL\_RCC\_UART4\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00216}00216\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00217}00217\ \ \ \textcolor{comment}{/*\ UART4\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00218}00218\ \ \ HAL\_NVIC\_SetPriority(UART4\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00219}00219\ \ \ HAL\_NVIC\_EnableIRQ(UART4\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00220}00220\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00221}00221\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_UART4}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00222}00222\ \textcolor{preprocessor}{\#ifdef\ USE\_UART5}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00223}00223\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==UART5)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00224}00224\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00225}00225\ \ \ \textcolor{comment}{/*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00226}00226\ \ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00227}00227\ \ \ \textcolor{comment}{/*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00228}00228\ \ \ HAL\_NVIC\_SetPriority(DMA1\_Stream0\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00229}00229\ \ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream0\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00230}00230\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00231}00231\ \ \ \textcolor{comment}{/*\ UART5\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00232}00232\ \ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00233}00233\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00234}00234\ \ \ \textcolor{comment}{/*\ UART5\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00235}00235\ \ \ HAL\_NVIC\_SetPriority(UART5\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00236}00236\ \ \ HAL\_NVIC\_EnableIRQ(UART5\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00237}00237\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00238}00238\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_UART5}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00239}00239\ \textcolor{preprocessor}{\#ifdef\ USE\_USART6}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00240}00240\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART6)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00241}00241\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00242}00242\ \ \ \textcolor{comment}{/*\ DMA2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00243}00243\ \ \ \_\_HAL\_RCC\_DMA2\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00244}00244\ \ \ \textcolor{comment}{/*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00245}00245\ \ \ HAL\_NVIC\_SetPriority(DMA2\_Stream1\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00246}00246\ \ \ HAL\_NVIC\_EnableIRQ(DMA2\_Stream1\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00247}00247\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00248}00248\ \ \ \textcolor{comment}{/*\ USART6\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00249}00249\ \ \ \_\_HAL\_RCC\_USART6\_CLK\_ENABLE();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00250}00250\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00251}00251\ \ \ \textcolor{comment}{/*\ USART6\ interrupt\ Init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00252}00252\ \ \ HAL\_NVIC\_SetPriority(USART6\_IRQn,\ 0,\ 0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00253}00253\ \ \ HAL\_NVIC\_EnableIRQ(USART6\_IRQn);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00254}00254\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00255}00255\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART6}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00256}00256\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00257}00257\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00258}00258\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00259}00259\ \textcolor{comment}{\ \ *\ @brief\ \ Deinitialize\ UART\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00260}00260\ \textcolor{comment}{\ \ *\ @param\ \ huart\ -\/\ указатель\ на\ хендл\ UART\ для\ деинициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00261}00261\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ деиницилизацией\ неиспользуемых\ UART,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00262}00262\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ определяются\ используемые\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00263}00263\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00264}00264\ \textcolor{keywordtype}{void}\ UART\_MspDeInit(UART\_HandleTypeDef\ *huart)\ \textcolor{comment}{//\ analog\ for\ hal\ function}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00265}00265\ \{\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00266}00266\ \ \ \textcolor{comment}{//\ rcc,\ dma\ and\ interrupt\ init\ for\ USARTs}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00267}00267\ \ \ \textcolor{comment}{//\ GPIO\ init\ was\ moved\ to\ own\ functions\ UART\_GPIO\_Init\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00268}00268\ \ \ \textcolor{keywordflow}{if}(0);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00269}00269\ \textcolor{preprocessor}{\#ifdef\ USE\_USART1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00270}00270\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART1)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00271}00271\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00272}00272\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00273}00273\ \textcolor{comment}{//\ \ /*\ DMA2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00274}00274\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA2\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00275}00275\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00276}00276\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA2\_Stream2\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00277}00277\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA2\_Stream2\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00278}00278\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00279}00279\ \ \ \textcolor{comment}{/*\ USART1\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00280}00280\ \ \ \_\_HAL\_RCC\_USART1\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00281}00281\ \ \ \_\_HAL\_RCC\_USART1\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00282}00282\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00283}00283\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00284}00284\ \textcolor{preprocessor}{\#ifdef\ USE\_USART2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00285}00285\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART2)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00286}00286\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00287}00287\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00288}00288\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00289}00289\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00290}00290\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream5\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00291}00291\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream5\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00292}00292\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00293}00293\ \ \ \textcolor{comment}{/*\ USART2\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00294}00294\ \ \ \_\_HAL\_RCC\_USART2\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00295}00295\ \ \ \_\_HAL\_RCC\_USART2\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00296}00296\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00297}00297\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00298}00298\ \textcolor{preprocessor}{\#ifdef\ USE\_USART3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00299}00299\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART3)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00300}00300\ \ \ \{\ \ \ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00301}00301\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00302}00302\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00303}00303\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00304}00304\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream1\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00305}00305\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream1\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00306}00306\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00307}00307\ \ \ \textcolor{comment}{/*\ USART3\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00308}00308\ \ \ \_\_HAL\_RCC\_USART3\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00309}00309\ \ \ \_\_HAL\_RCC\_USART3\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00310}00310\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00311}00311\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00312}00312\ \textcolor{preprocessor}{\#ifdef\ USE\_UART4}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00313}00313\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==UART4)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00314}00314\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00315}00315\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00316}00316\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00317}00317\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00318}00318\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream2\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00319}00319\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream2\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00320}00320\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00321}00321\ \ \ \textcolor{comment}{/*\ UART4\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00322}00322\ \ \ \_\_HAL\_RCC\_UART4\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00323}00323\ \ \ \_\_HAL\_RCC\_UART4\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00324}00324\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00325}00325\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_UART4}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00326}00326\ \textcolor{preprocessor}{\#ifdef\ USE\_UART5}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00327}00327\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==UART5)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00328}00328\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00329}00329\ \textcolor{comment}{//\ \ /*\ DMA1\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00330}00330\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA1\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00331}00331\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00332}00332\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA1\_Stream0\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00333}00333\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA1\_Stream0\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00334}00334\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00335}00335\ \ \ \textcolor{comment}{/*\ UART5\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00336}00336\ \ \ \_\_HAL\_RCC\_UART5\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00337}00337\ \ \ \_\_HAL\_RCC\_UART5\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00338}00338\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00339}00339\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_UART5}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00340}00340\ \textcolor{preprocessor}{\#ifdef\ USE\_USART6}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00341}00341\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}(huart-\/>Instance==USART6)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00342}00342\ \ \ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00343}00343\ \textcolor{comment}{//\ \ /*\ DMA2\ clock\ enable\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00344}00344\ \textcolor{comment}{//\ \ \_\_HAL\_RCC\_DMA2\_CLK\_ENABLE();}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00345}00345\ \textcolor{comment}{//\ \ /*\ DMA\ interrupt\ init\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00346}00346\ \textcolor{comment}{//\ \ HAL\_NVIC\_SetPriority(DMA2\_Stream1\_IRQn,\ 0,\ 0);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00347}00347\ \textcolor{comment}{//\ \ HAL\_NVIC\_EnableIRQ(DMA2\_Stream1\_IRQn);}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00348}00348\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00349}00349\ \ \ \textcolor{comment}{/*\ USART6\ clock\ reset\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00350}00350\ \ \ \_\_HAL\_RCC\_USART6\_FORCE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00351}00351\ \ \ \_\_HAL\_RCC\_USART6\_RELEASE\_RESET();}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00352}00352\ \ \ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00353}00353\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ USE\_USART6}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00354}00354\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00355}00355\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00356}00356\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00357}00357\ \textcolor{comment}{\ \ *\ @brief\ \ Check\ that\ uart\ init\ structure\ have\ correct\ values.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00358}00358\ \textcolor{comment}{\ \ *\ @param\ \ suart\ -\/\ указатель\ на\ структуру\ с\ настройками\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00359}00359\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00360}00360\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00361}00361\ HAL\_StatusTypeDef\ Check\_UART\_Init\_Struct(\mbox{\hyperlink{struct_u_a_r_t___settings_type_def}{UART\_SettingsTypeDef}}\ *suart)}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00362}00362\ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00363}00363\ \ \ \textcolor{comment}{//\ check\ is\ settings\ are\ valid}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00364}00364\ \ \ \textcolor{keywordflow}{if}\ (!IS\_UART\_INSTANCE(suart-\/>huart.Instance))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00365}00365\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00366}00366\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00367}00367\ \ \ \textcolor{keywordflow}{if}\ (!IS\_UART\_BAUDRATE(suart-\/>huart.Init.BaudRate)\ ||\ (suart-\/>huart.Init.BaudRate\ ==\ NULL))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00368}00368\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00369}00369\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00370}00370\ \ \ \textcolor{keywordflow}{if}\ (!IS\_GPIO\_ALL\_INSTANCE(suart-\/>GPIOx))}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00371}00371\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00372}00372\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00373}00373\ \ \ \textcolor{keywordflow}{if}\ (!IS\_GPIO\_PIN(suart-\/>GPIO\_PIN\_RX)\ \&\&\ !IS\_GPIO\_PIN(suart-\/>GPIO\_PIN\_TX))\ \textcolor{comment}{//\ if\ both\ pins\ arent\ set\ up}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00374}00374\ \ \ \ \ \textcolor{keywordflow}{return}\ HAL\_ERROR;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00375}00375\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00376}00376\ \ \ \textcolor{keywordflow}{return}\ HAL\_OK;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00377}00377\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00378}00378\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00379}00379\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/UART\ INIT\ FUNCTIONS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8c_source_l00380}00380\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||||
|
||||
\end{DoxyCode}
|
||||
@@ -1,114 +0,0 @@
|
||||
\doxysection{\+\_\+\+\_\+general\+\_\+uart.\+h}
|
||||
\hypertarget{____general__uart_8h_source}{}\label{____general__uart_8h_source}\index{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_uart.h@{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_uart.h}}
|
||||
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00002}00002\ \textcolor{comment}{**************************************************************************}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ general\_uart.h}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Заголовочный\ файл\ для\ модуля\ инициализации\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00005}00005\ \textcolor{comment}{*************************************************************************/}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00006}00006\ \textcolor{preprocessor}{\#ifndef\ \_\_UART\_GENERAL\_H\_}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00007}00007\ \textcolor{preprocessor}{\#define\ \_\_UART\_GENERAL\_H\_}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00008}00008\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00009}00009\ \textcolor{comment}{//////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00010}00010\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00011}00011\ \textcolor{comment}{}\textcolor{preprocessor}{\#define\ HAL\_UART\_MODULE\_ENABLED\ \ \ }\textcolor{comment}{//\ need\ to\ uncomment\ these\ defines\ in\ stm32f4xx\_hal\_conf.h}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00012}00012\ \textcolor{comment}{//\#define\ HAL\_USART\_MODULE\_ENABLED\ \ //\ maybe\ also\ need\ to\ add\ hal\_uart.h/.c\ (source\ code)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00013}00013\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00014}00014\ \textcolor{comment}{//\#define\ USE\_USART1}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00015}00015\ \textcolor{comment}{//\#define\ USE\_USART2}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00016}00016\ \textcolor{comment}{//\#define\ USE\_USART3}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00017}00017\ \textcolor{comment}{//\#define\ USE\_UART4}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00018}00018\ \textcolor{comment}{//\#define\ USE\_UART5}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00019}00019\ \textcolor{comment}{//\#define\ USE\_USART6}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00020}00020\ \textcolor{comment}{/*\ note:\ used\ uart\ defines\ in\ modbus.h\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00021}00021\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00022}00022\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00023}00023\ \textcolor{comment}{}\textcolor{preprocessor}{\#include\ "{}interface\_config.h"{}}\ \textcolor{comment}{/*\ used\ uart\ defines\ in\ modbus.h\ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00024}00024\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00025}00025\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00026}00026\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00027}00027\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00028}00028\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00029}00029\ \textcolor{comment}{}\textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00030}00030\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00031}00031\ \textcolor{comment}{\ \ *\ @brief\ \ Analog\ for\ HAL\ define.\ Remade\ with\ pointer\ to\ structure.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00032}00032\ \textcolor{comment}{\ \ *\ @note\ \ \ @ref\ \_\_HAL\_LINKDMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00033}00033\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00034}00034\ \textcolor{preprocessor}{\#define\ \_\_USER\_LINKDMA(\_\_HANDLE\_\_,\ \_\_PPP\_DMA\_FIELD\_\_,\ \_\_DMA\_HANDLE\_\_)\ \ \ \(\backslash\)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00035}00035\ \textcolor{preprocessor}{do\{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00036}00036\ \textcolor{preprocessor}{(\_\_HANDLE\_\_)-\/>\_\_PPP\_DMA\_FIELD\_\_\ =\ (\_\_DMA\_HANDLE\_\_);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00037}00037\ \textcolor{preprocessor}{(\_\_DMA\_HANDLE\_\_)-\/>Parent\ =\ (\_\_HANDLE\_\_);\}\ while(0U)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00038}00038\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00039}00039\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00040}00040\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00041}00041\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00042}00042\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00043}00043\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00044}00044\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00045}\mbox{\hyperlink{struct_u_a_r_t___settings_type_def}{00045}}\ \textcolor{comment}{}\textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ settings\ for\ custom\ function}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00046}00046\ \{}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00047}00047\ \ \ UART\_HandleTypeDef\ huart;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00048}00048\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00049}00049\ \ \ GPIO\_TypeDef\ *GPIOx;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00050}00050\ \ \ uint16\_t\ GPIO\_PIN\_RX;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00051}00051\ \ \ uint16\_t\ GPIO\_PIN\_TX;}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00052}00052\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00053}00053\ \ \ DMA\_Stream\_TypeDef\ *DMAChannel;\ \textcolor{comment}{//\ DMAChannel\ =\ 0\ if\ doesnt\ need}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00054}00054\ \ \ uint32\_t\ DMA\_CHANNEL\_X;\ \textcolor{comment}{//\ DMAChannel\ =\ 0\ if\ doesnt\ need}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00055}00055\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00056}00056\ \ \ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00057}00057\ \}\mbox{\hyperlink{struct_u_a_r_t___settings_type_def}{UART\_SettingsTypeDef}};\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00058}00058\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00059}00059\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00060}00060\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00061}00061\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00062}00062\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00063}00063\ \textcolor{comment}{}\textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00064}00064\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ UART\ with\ UART\_SettingsTypeDef\ structure.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00065}00065\ \textcolor{comment}{\ \ *\ @param\ \ suart\ -\/\ указатель\ на\ структуру\ с\ настройками\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00066}00066\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00067}00067\ \textcolor{comment}{\ \ *\ @note\ \ \ Данная\ структура\ содержит\ хендл\ ЮАРТ\ и\ настройки\ перефирии\ (GPIO)}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00068}00068\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00069}00069\ HAL\_StatusTypeDef\ UART\_Base\_Init(\mbox{\hyperlink{struct_u_a_r_t___settings_type_def}{UART\_SettingsTypeDef}}\ *suart);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00070}00070\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00071}00071\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ GPIO\ for\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00072}00072\ \textcolor{comment}{\ \ *\ @param\ \ GPIOx\ \ \ \ \ \ \ -\/\ порт\ для\ настройки.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00073}00073\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_RX\ -\/\ пин\ для\ настройки\ на\ прием.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00074}00074\ \textcolor{comment}{\ \ *\ @param\ \ GPIO\_PIN\_TX\ -\/\ пин\ для\ настройки\ на\ передачу.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00075}00075\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00076}00076\ \textcolor{keywordtype}{void}\ UART\_GPIO\_Init(GPIO\_TypeDef\ *GPIOx,\ uint16\_t\ GPIO\_PIN\_RX,\ uint16\_t\ GPIO\_PIN\_TX);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00077}00077\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00078}00078\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ DMA\ for\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00079}00079\ \textcolor{comment}{\ \ *\ @param\ \ huart\ \ \ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ UART\ для\ настройки\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00080}00080\ \textcolor{comment}{\ \ *\ @param\ \ hdma\_rx\ \ \ \ \ \ \ -\/\ указатель\ на\ хендл\ DMA\ для\ линии\ приема\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00081}00081\ \textcolor{comment}{\ \ *\ @param\ \ DMAChannel\ \ \ \ -\/\ указатель\ на\ канал\ DMA/поток\ DMA\ в\ STM32F407.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00082}00082\ \textcolor{comment}{\ \ *\ @param\ \ DMA\_CHANNEL\_X\ -\/\ канал\ DMA.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00083}00083\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00084}00084\ \textcolor{keywordtype}{void}\ UART\_DMA\_Init(UART\_HandleTypeDef\ *huart,\ DMA\_HandleTypeDef\ *hdma\_rx,\ DMA\_Stream\_TypeDef\ *DMAChannel,\ uint32\_t\ DMA\_CHANNEL\_X);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00085}00085\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00086}00086\ \textcolor{comment}{\ \ *\ @brief\ \ Initialize\ UART\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00087}00087\ \textcolor{comment}{\ \ *\ @param\ \ huart\ -\/\ указатель\ на\ хендл\ UART\ для\ инициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00088}00088\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ иницилизацией\ неиспользуемых\ UART,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00089}00089\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ определяются\ используемые\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00090}00090\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00091}00091\ \textcolor{keywordtype}{void}\ UART\_MspInit(UART\_HandleTypeDef\ *huart);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00092}00092\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00093}00093\ \textcolor{comment}{\ \ *\ @brief\ \ Deinitialize\ UART\ \&\ DMA\ clock\ and\ interrupt.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00094}00094\ \textcolor{comment}{\ \ *\ @param\ \ huart\ -\/\ указатель\ на\ хендл\ UART\ для\ деинициализации.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00095}00095\ \textcolor{comment}{\ \ *\ @note\ \ \ Чтобы\ не\ генерировать\ функцию\ с\ деиницилизацией\ неиспользуемых\ UART,}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00096}00096\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ дефайнами\ в\ rs\_message.h\ определяются\ используемые\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00097}00097\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00098}00098\ \textcolor{keywordtype}{void}\ UART\_MspDeInit(UART\_HandleTypeDef\ *huart);}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00099}00099\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00100}00100\ \textcolor{comment}{/**\ \ }}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00101}00101\ \textcolor{comment}{\ \ *\ @brief\ \ Check\ that\ uart\ init\ structure\ have\ correct\ values.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00102}00102\ \textcolor{comment}{\ \ *\ @param\ \ suart\ -\/\ указатель\ на\ структуру\ с\ настройками\ UART.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00103}00103\ \textcolor{comment}{\ \ *\ @return\ HAL\ status.}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00104}00104\ \textcolor{comment}{\ \ */}\ }
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00105}00105\ HAL\_StatusTypeDef\ Check\_UART\_Init\_Struct(\mbox{\hyperlink{struct_u_a_r_t___settings_type_def}{UART\_SettingsTypeDef}}\ *suart);\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00106}00106\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00107}00107\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{____general__uart_8h_source_l00108}00108\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_\_UART\_GENERAL\_H\_}}
|
||||
|
||||
\end{DoxyCode}
|
||||
@@ -1,52 +0,0 @@
|
||||
\doxysection{SPI\+\_\+\+Usage\+\_\+\+Example}
|
||||
\hypertarget{_s_p_i__usage__example-example}{}\label{_s_p_i__usage__example-example}Пример использования SPI\+\_\+\+Base\+\_\+\+Init.
|
||||
|
||||
Пример использования SPI\+\_\+\+Base\+\_\+\+Init. Инициализация SPI1 с базовыми настройками\+:
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__spi_8h}{general\_spi.h}}"{}}}
|
||||
\DoxyCodeLine{}
|
||||
\DoxyCodeLine{\mbox{\hyperlink{struct_s_p_i___settings_type_def}{SPI\_SettingsTypeDef}}\ mySPI;}
|
||||
\DoxyCodeLine{}
|
||||
\DoxyCodeLine{\textcolor{keywordtype}{void}\ SPI1\_Init(\textcolor{keywordtype}{void})}
|
||||
\DoxyCodeLine{\{}
|
||||
\DoxyCodeLine{\ \ \ \ \textcolor{comment}{//\ Настройка\ SPI1}}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Instance\ =\ SPI1;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.Mode\ =\ SPI\_MODE\_MASTER;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.Direction\ =\ SPI\_DIRECTION\_2LINES;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.DataSize\ =\ SPI\_DATASIZE\_8BIT;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.CLKPolarity\ =\ SPI\_POLARITY\_LOW;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.CLKPhase\ =\ SPI\_PHASE\_1EDGE;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.NSS\ =\ SPI\_NSS\_SOFT;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.BaudRatePrescaler\ =\ SPI\_BAUDRATEPRESCALER\_16;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.FirstBit\ =\ SPI\_FIRSTBIT\_MSB;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.TIMode\ =\ SPI\_TIMODE\_DISABLE;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_ad203d8b8d67e4f477d002d15b03ba422}{hspi}}.Init.CRCCalculation\ =\ SPI\_CRCCALCULATION\_DISABLE;}
|
||||
\DoxyCodeLine{}
|
||||
\DoxyCodeLine{\ \ \ \ \textcolor{comment}{//\ Настройка\ GPIO\ для\ SPI}}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a6a15d48eccf92959de3a086031fdc979}{CLK\_GPIOx}}\ =\ GPIOA;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a3bcb1ed12da3544e02e6d36493669bdc}{CLK\_PIN}}\ =\ GPIO\_PIN\_5;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a3f3748103a0b7861f6700042fd691ba1}{CLK\_GPIO\_AlternageFunc}}\ =\ GPIO\_AF5\_SPI1;}
|
||||
\DoxyCodeLine{}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a0d55a2941854f61934487f3d209cfa95}{MISO\_GPIOx}}\ =\ GPIOA;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a3366c654d7ec6dd41c6a0b504dc8509a}{MISO\_PIN}}\ =\ GPIO\_PIN\_6;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_aecd7a5c6e205335b8ed229d74cd35d14}{MISO\_GPIO\_AlternageFunc}}\ =\ GPIO\_AF5\_SPI1;}
|
||||
\DoxyCodeLine{}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a0af3bdb273818ff97eb4ff3cff918820}{MOSI\_GPIOx}}\ =\ GPIOA;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_a961208869faf4a7369aaf4edde75f176}{MOSI\_PIN}}\ =\ GPIO\_PIN\_7;}
|
||||
\DoxyCodeLine{\ \ \ \ mySPI.\mbox{\hyperlink{struct_s_p_i___settings_type_def_afbe75a1c36650a4a9b41fa706a4c7eab}{MOSI\_GPIO\_AlternageFunc}}\ =\ GPIO\_AF5\_SPI1;}
|
||||
\DoxyCodeLine{}
|
||||
\DoxyCodeLine{\ \ \ \ \textcolor{comment}{//\ Инициализация\ SPI}}
|
||||
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}(\mbox{\hyperlink{group___m_y___l_i_b_s___s_p_i_ga0e177e3c57a8fcdc73b5602e72ec66ba}{SPI\_Base\_Init}}(\&mySPI)\ !=\ HAL\_OK)}
|
||||
\DoxyCodeLine{\ \ \ \ \{}
|
||||
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{//\ Обработка\ ошибки}}
|
||||
\DoxyCodeLine{\ \ \ \ \}}
|
||||
\DoxyCodeLine{\}}
|
||||
|
||||
\end{DoxyCode}
|
||||
|
||||
|
||||
|
||||
\begin{DoxyCodeInclude}{0}
|
||||
|
||||
\end{DoxyCodeInclude}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/bit\+\_\+access.h File Reference}
|
||||
\hypertarget{bit__access_8h}{}\label{bit__access_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/bit\_access.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/bit\_access.h}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/bit\+\_\+access.h File Reference}
|
||||
\hypertarget{bit__access_8h}{}\label{bit__access_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/bit\_access.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/bit\_access.h}}
|
||||
|
||||
|
||||
Заголочный файл для дефайнов битового доступа.
|
||||
@@ -11,7 +11,7 @@ Include dependency graph for bit\+\_\+access.\+h\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{bit__access_8h__incl}
|
||||
\includegraphics[width=212pt]{bit__access_8h__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
This graph shows which files directly or indirectly include this file\+:
|
||||
@@ -19,7 +19,7 @@ This graph shows which files directly or indirectly include this file\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{bit__access_8h__dep__incl}
|
||||
\includegraphics[width=212pt]{bit__access_8h__dep__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Classes}
|
||||
|
||||
@@ -1 +1 @@
|
||||
a0db7c46e6c8e84aaed5bb4becf5bf9c
|
||||
4dab8ce789924da2e24a48609f62737b
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
04aae01d1a86d60c14b0ea57bbf11647
|
||||
b0cf5f4a55e63cfdea9bf78e53ce63ec
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\doxysection{bit\+\_\+access.\+h}
|
||||
\hypertarget{bit__access_8h_source}{}\label{bit__access_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/bit\_access.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/bit\_access.h}}
|
||||
\hypertarget{bit__access_8h_source}{}\label{bit__access_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/bit\_access.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/bit\_access.h}}
|
||||
\mbox{\hyperlink{bit__access_8h}{Go to the documentation of this file.}}
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/evolve\+\_\+optimizer.h File Reference}
|
||||
\hypertarget{evolve__optimizer_8h}{}\label{evolve__optimizer_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/evolve\_optimizer.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/evolve\_optimizer.h}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/evolve\+\_\+optimizer.h File Reference}
|
||||
\hypertarget{evolve__optimizer_8h}{}\label{evolve__optimizer_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/evolve\_optimizer.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/evolve\_optimizer.h}}
|
||||
|
||||
|
||||
Заголовочный файл для адаптивного подбора параметров
|
||||
@@ -21,7 +21,7 @@ This graph shows which files directly or indirectly include this file\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{evolve__optimizer_8h__dep__incl}
|
||||
\includegraphics[width=212pt]{evolve__optimizer_8h__dep__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Classes}
|
||||
|
||||
@@ -1 +1 @@
|
||||
a385857375106a9066dc97059b8e5f66
|
||||
a0affaffafe83b1e4cf8ca3fc40e3aed
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
e567d0680734fcff06b08511863dc20f
|
||||
408dcb9ada023de3bfc1cdb66d4747c7
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\doxysection{evolve\+\_\+optimizer.\+h}
|
||||
\hypertarget{evolve__optimizer_8h_source}{}\label{evolve__optimizer_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/evolve\_optimizer.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/evolve\_optimizer.h}}
|
||||
\hypertarget{evolve__optimizer_8h_source}{}\label{evolve__optimizer_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/evolve\_optimizer.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/evolve\_optimizer.h}}
|
||||
\mbox{\hyperlink{evolve__optimizer_8h}{Go to the documentation of this file.}}
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{evolve__optimizer_8h_source_l00001}00001\ \textcolor{comment}{/**}}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
\doxysection{Examples}
|
||||
Here is a list of all examples\+:\begin{DoxyCompactItemize}
|
||||
\item
|
||||
\mbox{\hyperlink{_s_p_i__usage__example-example}{SPI\+\_\+\+Usage\+\_\+\+Example}}\end{DoxyCompactItemize}
|
||||
@@ -1,21 +1,21 @@
|
||||
\doxysection{File List}
|
||||
Here is a list of all documented files with brief descriptions\+:\begin{DoxyCompactList}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\mbox{\hyperlink{mainpage_8h_source}{mainpage.\+h}} }{\pageref{mainpage_8h_source}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{____general__flash_8h_source}{\+\_\+\+\_\+general\+\_\+flash.\+h}} }{\pageref{____general__flash_8h_source}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{bit__access_8h}{bit\+\_\+access.\+h}} \\*Заголочный файл для дефайнов битового доступа }{\pageref{bit__access_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{evolve__optimizer_8h}{evolve\+\_\+optimizer.\+h}} \\*Заголовочный файл для адаптивного подбора параметров }{\pageref{evolve__optimizer_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{general__gpio_8h}{general\+\_\+gpio.\+h}} \\*Заголовочный файл для модуля инициализации портов и работы с ними }{\pageref{general__gpio_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{general__spi_8h}{general\+\_\+spi.\+h}} \\*Заголовочный файл для модуля инициализации SPI }{\pageref{general__spi_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{general__tim_8h}{general\+\_\+tim.\+h}} \\*Заголовочный файл для модуля инициализации таймеров и работы с ними }{\pageref{general__tim_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{general__uart_8h}{general\+\_\+uart.\+h}} \\*Заголовочный файл для модуля инициализации UART }{\pageref{general__uart_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{mylibs__config_8h}{mylibs\+\_\+config.\+h}} \\*Конфигурации для библиотек My\+Libs }{\pageref{mylibs__config_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{mylibs__defs_8h}{mylibs\+\_\+defs.\+h}} \\*Заголочный файл для дефайнов библиотеки My\+Libs\+General }{\pageref{mylibs__defs_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{mylibs__include_8h}{mylibs\+\_\+include.\+h}} \\*Заголочный файл для всех библиотек }{\pageref{mylibs__include_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{trace_8h}{trace.\+h}} \\*Заголочный файл для работы с трассировкой }{\pageref{trace_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/\mbox{\hyperlink{trackers_8h}{trackers.\+h}} \\*Заголочный файл для работы с трекерами \doxylink{group___t_r_a_c_k_e_r_s}{Trackers defines} }{\pageref{trackers_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/\mbox{\hyperlink{____general__flash_8c_source}{\+\_\+\+\_\+general\+\_\+flash.\+c}} }{\pageref{____general__flash_8c_source}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/\mbox{\hyperlink{general__gpio_8c}{general\+\_\+gpio.\+c}} \\*Модуль для инициализации портов и работы с ними }{\pageref{general__gpio_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/\mbox{\hyperlink{general__spi_8c}{general\+\_\+spi.\+c}} \\*Модуль для инициализации SPI }{\pageref{general__spi_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/\mbox{\hyperlink{general__tim_8c}{general\+\_\+tim.\+c}} \\*Модуль для инициализации таймеров и работы с ними }{\pageref{general__tim_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/\mbox{\hyperlink{general__uart_8c}{general\+\_\+uart.\+c}} \\*Модуль для инициализации UART }{\pageref{general__uart_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\mbox{\hyperlink{mainpage_8h_source}{mainpage.\+h}} }{\pageref{mainpage_8h_source}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{bit__access_8h}{bit\+\_\+access.\+h}} \\*Заголочный файл для дефайнов битового доступа }{\pageref{bit__access_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{evolve__optimizer_8h}{evolve\+\_\+optimizer.\+h}} \\*Заголовочный файл для адаптивного подбора параметров }{\pageref{evolve__optimizer_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{mylibs__config_8h}{mylibs\+\_\+config.\+h}} \\*Конфигурации для библиотек My\+Libs }{\pageref{mylibs__config_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{mylibs__defs_8h}{mylibs\+\_\+defs.\+h}} \\*Заголочный файл для дефайнов библиотеки My\+Libs\+General }{\pageref{mylibs__defs_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{mylibs__include_8h}{mylibs\+\_\+include.\+h}} \\*Заголочный файл для всех библиотек }{\pageref{mylibs__include_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{trace_8h}{trace.\+h}} \\*Заголочный файл для работы с трассировкой }{\pageref{trace_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/\mbox{\hyperlink{trackers_8h}{trackers.\+h}} \\*Заголочный файл для работы с трекерами \doxylink{group___t_r_a_c_k_e_r_s}{Trackers defines} }{\pageref{trackers_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/\mbox{\hyperlink{____general__flash_8h_source}{\+\_\+\+\_\+general\+\_\+flash.\+h}} }{\pageref{____general__flash_8h_source}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/\mbox{\hyperlink{general__gpio_8h}{general\+\_\+gpio.\+h}} \\*Заголовочный файл для модуля инициализации портов и работы с ними }{\pageref{general__gpio_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/\mbox{\hyperlink{general__spi_8h}{general\+\_\+spi.\+h}} \\*Заголовочный файл для модуля инициализации SPI }{\pageref{general__spi_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/\mbox{\hyperlink{general__tim_8h}{general\+\_\+tim.\+h}} \\*Заголовочный файл для модуля инициализации таймеров и работы с ними }{\pageref{general__tim_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/\mbox{\hyperlink{general__uart_8h}{general\+\_\+uart.\+h}} \\*Заголовочный файл для модуля инициализации UART }{\pageref{general__uart_8h}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/\mbox{\hyperlink{____general__flash_8c_source}{\+\_\+\+\_\+general\+\_\+flash.\+c}} }{\pageref{____general__flash_8c_source}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/\mbox{\hyperlink{general__gpio_8c}{general\+\_\+gpio.\+c}} \\*Модуль для инициализации портов и работы с ними }{\pageref{general__gpio_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/\mbox{\hyperlink{general__spi_8c}{general\+\_\+spi.\+c}} \\*Модуль для инициализации SPI }{\pageref{general__spi_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/\mbox{\hyperlink{general__tim_8c}{general\+\_\+tim.\+c}} \\*Модуль для инициализации таймеров и работы с ними }{\pageref{general__tim_8c}}{}
|
||||
\item\contentsline{section}{E\+:/.\+WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/\mbox{\hyperlink{general__uart_8c}{general\+\_\+uart.\+c}} \\*Модуль для инициализации UART }{\pageref{general__uart_8c}}{}
|
||||
\end{DoxyCompactList}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/general\+\_\+gpio.c File Reference}
|
||||
\hypertarget{general__gpio_8c}{}\label{general__gpio_8c}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_gpio.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_gpio.c}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/general\+\_\+gpio.c File Reference}
|
||||
\hypertarget{general__gpio_8c}{}\label{general__gpio_8c}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_gpio.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_gpio.c}}
|
||||
|
||||
|
||||
Модуль для инициализации портов и работы с ними.
|
||||
@@ -11,7 +11,7 @@ Include dependency graph for general\+\_\+gpio.\+c\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{general__gpio_8c__incl}
|
||||
\includegraphics[width=234pt]{general__gpio_8c__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Functions}
|
||||
|
||||
@@ -1 +1 @@
|
||||
06087ea6fdcbd10af4ee99fd98be927c
|
||||
342270b05cfcb0c73c560e2b76026e68
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\doxysection{general\+\_\+gpio.\+c}
|
||||
\hypertarget{general__gpio_8c_source}{}\label{general__gpio_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_gpio.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_gpio.c}}
|
||||
\hypertarget{general__gpio_8c_source}{}\label{general__gpio_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_gpio.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_gpio.c}}
|
||||
\mbox{\hyperlink{general__gpio_8c}{Go to the documentation of this file.}}
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8c_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/general\+\_\+gpio.h File Reference}
|
||||
\hypertarget{general__gpio_8h}{}\label{general__gpio_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_gpio.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_gpio.h}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/general\+\_\+gpio.h File Reference}
|
||||
\hypertarget{general__gpio_8h}{}\label{general__gpio_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_gpio.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_gpio.h}}
|
||||
|
||||
|
||||
Заголовочный файл для модуля инициализации портов и работы с ними.
|
||||
@@ -11,7 +11,7 @@ Include dependency graph for general\+\_\+gpio.\+h\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{general__gpio_8h__incl}
|
||||
\includegraphics[width=234pt]{general__gpio_8h__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
This graph shows which files directly or indirectly include this file\+:
|
||||
@@ -32,6 +32,8 @@ struct \mbox{\hyperlink{struct_g_p_i_o___switch_type_def}{GPIO\+\_\+\+Switch\+Ty
|
||||
\doxysubsubsection*{Macros}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
\#define \mbox{\hyperlink{group___g_p_i_o___i_n_i_t_ga9c853b02c22f26023c34d1d404b6d653}{local\+\_\+time}}()
|
||||
\begin{DoxyCompactList}\small\item\em Локальное время \end{DoxyCompactList}\item
|
||||
\#define \mbox{\hyperlink{group___g_p_i_o___i_n_i_t_ga1d42e219765ec526d99e306638ac0023}{LED\+\_\+\+PWM\+\_\+\+TICKS}}~15
|
||||
\begin{DoxyCompactList}\small\item\em Количество тиков в периоде ШИМ \end{DoxyCompactList}\item
|
||||
\#define \mbox{\hyperlink{group___g_p_i_o___i_n_i_t_gaf2e697ac60e05813d45ea2c9c9e79c25}{LED\+\_\+\+ON}}~1
|
||||
|
||||
@@ -1 +1 @@
|
||||
78ab8e4e6ebf3449d861764d1b38a0a8
|
||||
9730a8ea555f08c1f054899445c98650
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
c4bc3b9676509254c26d2cac446951d4
|
||||
f45be804477524f73e7a8c72501ca9a3
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\doxysection{general\+\_\+gpio.\+h}
|
||||
\hypertarget{general__gpio_8h_source}{}\label{general__gpio_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_gpio.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_gpio.h}}
|
||||
\hypertarget{general__gpio_8h_source}{}\label{general__gpio_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_gpio.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_gpio.h}}
|
||||
\mbox{\hyperlink{general__gpio_8h}{Go to the documentation of this file.}}
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
@@ -32,7 +32,7 @@
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00028}00028\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00029}00029\ }
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00030}00030\ \textcolor{preprocessor}{\#ifndef\ local\_time}}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00031}00031\ \textcolor{preprocessor}{\#define\ local\_time()\ \ HAL\_GetTick()\ }\textcolor{comment}{///<\ Локальное\ время}}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00031}\mbox{\hyperlink{group___g_p_i_o___i_n_i_t_ga9c853b02c22f26023c34d1d404b6d653}{00031}}\ \textcolor{preprocessor}{\#define\ local\_time()\ \ HAL\_GetTick()\ }\textcolor{comment}{///<\ Локальное\ время}}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00032}00032\ \textcolor{preprocessor}{\#endif}}
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00033}00033\ }
|
||||
\DoxyCodeLine{\Hypertarget{general__gpio_8h_source_l00034}00034\ \textcolor{preprocessor}{\#ifndef\ LED\_PWM\_TICKS}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/general\+\_\+spi.c File Reference}
|
||||
\hypertarget{general__spi_8c}{}\label{general__spi_8c}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_spi.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_spi.c}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/general\+\_\+spi.c File Reference}
|
||||
\hypertarget{general__spi_8c}{}\label{general__spi_8c}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_spi.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_spi.c}}
|
||||
|
||||
|
||||
Модуль для инициализации SPI.
|
||||
@@ -7,7 +7,8 @@
|
||||
|
||||
{\ttfamily \#include "{}general\+\_\+spi.\+h"{}}\newline
|
||||
{\ttfamily \#include "{}general\+\_\+gpio.\+h"{}}\newline
|
||||
Include dependency graph for general\+\_\+spi.\+c\+:\nopagebreak
|
||||
Include dependency graph for general\+\_\+spi.\+c\+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
|
||||
@@ -1 +1 @@
|
||||
2ef78bca7433c0859e5f0181551ac011
|
||||
40433061d2619aaf3f15c268f1e26e95
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\doxysection{general\+\_\+spi.\+c}
|
||||
\hypertarget{general__spi_8c_source}{}\label{general__spi_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_spi.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_spi.c}}
|
||||
\hypertarget{general__spi_8c_source}{}\label{general__spi_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_spi.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_spi.c}}
|
||||
\mbox{\hyperlink{general__spi_8c}{Go to the documentation of this file.}}
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{general__spi_8c_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
|
||||
@@ -1,23 +1,25 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/general\+\_\+spi.h File Reference}
|
||||
\hypertarget{general__spi_8h}{}\label{general__spi_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_spi.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_spi.h}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/general\+\_\+spi.h File Reference}
|
||||
\hypertarget{general__spi_8h}{}\label{general__spi_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_spi.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_spi.h}}
|
||||
|
||||
|
||||
Заголовочный файл для модуля инициализации SPI.
|
||||
|
||||
|
||||
{\ttfamily \#include "{}mylibs\+\_\+defs.\+h"{}}\newline
|
||||
Include dependency graph for general\+\_\+spi.\+h\+:\nopagebreak
|
||||
Include dependency graph for general\+\_\+spi.\+h\+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{general__spi_8h__incl}
|
||||
\includegraphics[width=234pt]{general__spi_8h__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
This graph shows which files directly or indirectly include this file\+:\nopagebreak
|
||||
This graph shows which files directly or indirectly include this file\+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{general__spi_8h__dep__incl}
|
||||
\includegraphics[width=234pt]{general__spi_8h__dep__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Classes}
|
||||
|
||||
@@ -1 +1 @@
|
||||
fea888aee51476403223144bb4236fba
|
||||
3fa916e67a704ea59a68834a5398a3fd
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
8a3d826e5468561d84d56e799c52cb0a
|
||||
2817384349c4f21eea86c59463d73bd7
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\doxysection{general\+\_\+spi.\+h}
|
||||
\hypertarget{general__spi_8h_source}{}\label{general__spi_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_spi.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_spi.h}}
|
||||
\hypertarget{general__spi_8h_source}{}\label{general__spi_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_spi.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_spi.h}}
|
||||
\mbox{\hyperlink{general__spi_8h}{Go to the documentation of this file.}}
|
||||
\begin{DoxyCode}{0}
|
||||
\DoxyCodeLine{\Hypertarget{general__spi_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Src/general\+\_\+tim.c File Reference}
|
||||
\hypertarget{general__tim_8c}{}\label{general__tim_8c}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_tim.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Src/general\_tim.c}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Src/general\+\_\+tim.c File Reference}
|
||||
\hypertarget{general__tim_8c}{}\label{general__tim_8c}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_tim.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_tim.c}}
|
||||
|
||||
|
||||
Модуль для инициализации таймеров и работы с ними.
|
||||
@@ -11,7 +11,7 @@ Include dependency graph for general\+\_\+tim.\+c\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{general__tim_8c__incl}
|
||||
\includegraphics[width=234pt]{general__tim_8c__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Functions}
|
||||
|
||||
@@ -1 +1 @@
|
||||
018b6018bdcb384d431e75597bba52d4
|
||||
9e77ca03a532b1218b0df0cb0f76edae
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
\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}}
|
||||
\hypertarget{general__tim_8c_source}{}\label{general__tim_8c_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Src/general\_tim.c@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/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}{/**\ }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/general\+\_\+tim.h File Reference}
|
||||
\hypertarget{general__tim_8h}{}\label{general__tim_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_tim.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/general\_tim.h}}
|
||||
\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+STM32\+\_\+\+General/\+Inc/general\+\_\+tim.h File Reference}
|
||||
\hypertarget{general__tim_8h}{}\label{general__tim_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_tim.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_tim.h}}
|
||||
|
||||
|
||||
Заголовочный файл для модуля инициализации таймеров и работы с ними.
|
||||
@@ -12,7 +12,7 @@ Include dependency graph for general\+\_\+tim.\+h\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{general__tim_8h__incl}
|
||||
\includegraphics[width=234pt]{general__tim_8h__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
This graph shows which files directly or indirectly include this file\+:
|
||||
@@ -20,7 +20,7 @@ This graph shows which files directly or indirectly include this file\+:
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{general__tim_8h__dep__incl}
|
||||
\includegraphics[width=234pt]{general__tim_8h__dep__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Classes}
|
||||
|
||||
@@ -1 +1 @@
|
||||
48912ae69413105687efed9fcdd23d2d
|
||||
396eb80ec0a9a4008e79eb68ea7ca8e6
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
72b7b62252ba432b33a3132214cb26dd
|
||||
5a3d51cea7267486a129fc18709bb7d1
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user