фикс конфигов для субмодуля
This commit is contained in:
@@ -98,10 +98,10 @@
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00094}00094\ }
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00095}00095\ }
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00096}00096\ \textcolor{preprocessor}{\#ifndef\ local\_time}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00097}00097\ \textcolor{preprocessor}{\#define\ local\_time()\ \ HAL\_GetTick()\ }\textcolor{comment}{///<\ Локальное\ время}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00097}\mbox{\hyperlink{group___t_r_a_c_e___s_e_r_i_a_l_ga9c853b02c22f26023c34d1d404b6d653}{00097}}\ \textcolor{preprocessor}{\#define\ local\_time()\ \ HAL\_GetTick()\ }\textcolor{comment}{///<\ Локальное\ время}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00098}00098\ \textcolor{preprocessor}{\#endif}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00099}00099\ \textcolor{preprocessor}{\#ifndef\ LOG\_LEVEL}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00100}00100\ \textcolor{preprocessor}{\#define\ LOG\_LEVEL\ 1\ \ }\textcolor{comment}{///<\ @brief\ Уровень\ логирования\ (по\ умолчанию\ ==\ 1)}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00100}\mbox{\hyperlink{group___t_r_a_c_e___s_e_r_i_a_l_ga0b87e0d3bf5853bcbb0b66a7c48fdc05}{00100}}\ \textcolor{preprocessor}{\#define\ LOG\_LEVEL\ 1\ \ }\textcolor{comment}{///<\ @brief\ Уровень\ логирования\ (по\ умолчанию\ ==\ 1)}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00101}00101\ \textcolor{preprocessor}{\#endif}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00102}00102\ }
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00103}00103\ }
|
||||
@@ -476,16 +476,16 @@
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00472}00472\ \textcolor{comment}{\ \ *\ @brief\ Контекст\ стек-\/фрейма\ процессора\ при\ HardFault}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00473}00473\ \textcolor{comment}{\ \ *\ @details\ Сохраняет\ регистры\ R0-\/R3,\ R12,\ LR,\ PC,\ PSR\ для\ последующего\ анализа.}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00474}00474\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00475}\mbox{\hyperlink{struct_h_f___stack_frame__t}{00475}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00476}\mbox{\hyperlink{struct_h_f___stack_frame__t_a4146ed28926b5f234132b7112119a413}{00476}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a4146ed28926b5f234132b7112119a413}{r0}};\ \ \ \textcolor{comment}{///<\ Регистр\ R0}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00477}\mbox{\hyperlink{struct_h_f___stack_frame__t_a286104d19185714940645a9df814ddea}{00477}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a286104d19185714940645a9df814ddea}{r1}};\ \ \ \textcolor{comment}{///<\ Регистр\ R1}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00478}\mbox{\hyperlink{struct_h_f___stack_frame__t_a5a52e5006dabcf68c0fa4cfb0e03335b}{00478}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a5a52e5006dabcf68c0fa4cfb0e03335b}{r2}};\ \ \ \textcolor{comment}{///<\ Регистр\ R2}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00479}\mbox{\hyperlink{struct_h_f___stack_frame__t_a453c7af42b6928a693af422e17c981d3}{00479}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a453c7af42b6928a693af422e17c981d3}{r3}};\ \ \ \textcolor{comment}{///<\ Регистр\ R3}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00480}\mbox{\hyperlink{struct_h_f___stack_frame__t_a819ee3bc518c460ece1b7c4079f8f80b}{00480}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a819ee3bc518c460ece1b7c4079f8f80b}{r12}};\ \ \textcolor{comment}{///<\ Регистр\ R12}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00481}\mbox{\hyperlink{struct_h_f___stack_frame__t_a6e51904297f7725e96d5b5fb291ef577}{00481}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a6e51904297f7725e96d5b5fb291ef577}{lr}};\ \ \ \textcolor{comment}{///<\ Link\ Register}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00482}\mbox{\hyperlink{struct_h_f___stack_frame__t_a16563896004751c90e41c81ae4570732}{00482}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_a16563896004751c90e41c81ae4570732}{pc}};\ \ \ \textcolor{comment}{///<\ Program\ Counter}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00483}\mbox{\hyperlink{struct_h_f___stack_frame__t_ae47cb051ee3c94471bfd4fe7e49c55f9}{00483}}\ \ \ uint32\_t\ \mbox{\hyperlink{struct_h_f___stack_frame__t_ae47cb051ee3c94471bfd4fe7e49c55f9}{psr}};\ \ \textcolor{comment}{///<\ Program\ Status\ Register}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00484}00484\ \}\ \mbox{\hyperlink{struct_h_f___stack_frame__t}{HF\_StackFrame\_t}};}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00475}00475\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00476}00476\ \ \ uint32\_t\ r0;\ \ \ \textcolor{comment}{///<\ Регистр\ R0}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00477}00477\ \ \ uint32\_t\ r1;\ \ \ \textcolor{comment}{///<\ Регистр\ R1}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00478}00478\ \ \ uint32\_t\ r2;\ \ \ \textcolor{comment}{///<\ Регистр\ R2}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00479}00479\ \ \ uint32\_t\ r3;\ \ \ \textcolor{comment}{///<\ Регистр\ R3}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00480}00480\ \ \ uint32\_t\ r12;\ \ \textcolor{comment}{///<\ Регистр\ R12}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00481}00481\ \ \ uint32\_t\ lr;\ \ \ \textcolor{comment}{///<\ Link\ Register}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00482}00482\ \ \ uint32\_t\ pc;\ \ \ \textcolor{comment}{///<\ Program\ Counter}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00483}00483\ \ \ uint32\_t\ psr;\ \ \textcolor{comment}{///<\ Program\ Status\ Register}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00484}00484\ \}\ HF\_StackFrame\_t;}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00485}00485\ \textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00486}00486\ \textcolor{comment}{/**}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00487}00487\ \textcolor{comment}{\ \ *\ @brief\ Проверка\ и\ вывод\ последнего\ HardFault-\/трейса\ из\ Flash}}
|
||||
@@ -499,7 +499,7 @@
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00495}00495\ \textcolor{comment}{\ \ *\ }}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00496}00496\ \textcolor{comment}{\ \ *\ @note\ Вызов\ рекомендуется\ при\ инициализации\ приложения\ для\ анализа\ предыдущего\ сбоя.}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00497}00497\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00498}\mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_ga03f8b6f3b537ee1c8e91065c60db504f}{00498}}\ \_\_STATIC\_FORCEINLINE\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_ga03f8b6f3b537ee1c8e91065c60db504f}{HF\_CheckRecovered}}(\textcolor{keywordtype}{int}\ erase)}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00498}00498\ \_\_STATIC\_FORCEINLINE\ \textcolor{keywordtype}{int}\ HF\_CheckRecovered(\textcolor{keywordtype}{int}\ erase)}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00499}00499\ \{}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00500}00500\ \ \ \textcolor{keywordtype}{char}\ buffer[\mbox{\hyperlink{group___t_r_a_c_e___c_o_n_f_i_g_ga501312b24e322de4dd6755ad442f0ba3}{RTT\_FLASH\_BUFFER\_SIZE}}];}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00501}00501\ \ \ uint32\_t\ read\_size\ =\ 0;}
|
||||
@@ -523,7 +523,7 @@
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00519}00519\ \}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00520}00520\ }
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00521}00521\ }
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00522}00522\ \textcolor{keyword}{static}\ \mbox{\hyperlink{struct_h_f___stack_frame__t}{HF\_StackFrame\_t}}\ *stack\_frame;}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00522}00522\ \textcolor{keyword}{static}\ HF\_StackFrame\_t\ *stack\_frame;}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00523}00523\ \textcolor{keyword}{static}\ uint32\_t\ stack\_dump[\mbox{\hyperlink{group___t_r_a_c_e___c_o_n_f_i_g_gaa31234688b333a505aaa57b8ecdedf5b}{HF\_STACK\_DUMP\_WORDS}}];}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00524}00524\ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ *ret\_adr[10]\ =\ \{0\};\textcolor{comment}{}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00525}00525\ \textcolor{comment}{/**}}
|
||||
@@ -540,7 +540,7 @@
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00536}00536\ \textcolor{comment}{\ \ *}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00537}00537\ \textcolor{comment}{\ \ *\ @note\ Функция\ защищена,\ так\ как\ вызывается\ в\ контексте\ сбоя\ —\ минимизирует\ использование\ вызовов\ HAL.}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00538}00538\ \textcolor{comment}{\ \ */}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00539}\mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_gadd8e10e7ec3b0204f7f92062ecd452f7}{00539}}\ \_\_STATIC\_FORCEINLINE\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_gadd8e10e7ec3b0204f7f92062ecd452f7}{HF\_HandleFault}}(\textcolor{keywordtype}{void})}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00539}00539\ \_\_STATIC\_FORCEINLINE\ \textcolor{keywordtype}{void}\ HF\_HandleFault(\textcolor{keywordtype}{void})}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00540}00540\ \{}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00541}00541\ \ \ \ \ \textcolor{comment}{//\ Получаем\ указатель\ на\ стек,\ где\ произошёл\ HardFault}}
|
||||
\DoxyCodeLine{\Hypertarget{trace_8h_source_l00542}00542\ \ \ \ \ \_\_ASM\ \textcolor{keyword}{volatile}(}
|
||||
|
||||
Reference in New Issue
Block a user