1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
33
34
35
36
37
38
39
40
41
42
43
44
45
46
51
52
53
54
55
56
57
62
65
66
71
78
83
90
91
96
103
104
109
116
117
122
125
126
131
135
136
141
142
143
148
149
150
151
152
153
156
157
158
168
169
170
175
191
196
/* ... */
#include "main.h"
/* ... */
/* ... */
Includes
extern HCD_HandleTypeDef hhcd;
extern LTDC_HandleTypeDef hltdc;
extern TIM_HandleTypeDef TimInputCaptureHandle;
extern __IO uint32_t uwPeriodValue;
extern __IO uint32_t uwCaptureNumber;
extern __IO uint32_t uwMeasurementDone;
uint16_t tmpCC4[2] = {0, 0};Private variables
#if defined (STM32F429xx)
extern void LTDC_ISR_Handler(void);
#endif
Private function prototypes
/* ... */
void NMI_Handler(void)
{
}{ ... }
/* ... */
void HardFault_Handler(void)
{
while (1)
{
}while (1) { ... }
}{ ... }
/* ... */
void MemManage_Handler(void)
{
while (1)
{
}while (1) { ... }
}{ ... }
/* ... */
void BusFault_Handler(void)
{
while (1)
{
}while (1) { ... }
}{ ... }
/* ... */
void UsageFault_Handler(void)
{
while (1)
{
}while (1) { ... }
}{ ... }
/* ... */
void DebugMon_Handler(void)
{
}{ ... }
/* ... */
void SysTick_Handler(void)
{
osSystickHandler();
}{ ... }
...
...
/* ... */
#ifdef USE_USB_FS
void OTG_FS_IRQHandler(void)
#else
void OTG_HS_IRQHandler(void)
#endif
{
HAL_HCD_IRQHandler(&hhcd);
...}
#if defined (STM32F429xx)
/* ... */
void LTDC_IRQHandler(void)
{
HAL_LTDC_IRQHandler(&hltdc);
}{ ... }
#endif/* ... */
/* ... */
void TIM5_IRQHandler(void)
{
HAL_TIM_IRQHandler(&TimInputCaptureHandle);
{
tmpCC4[uwCaptureNumber++] = HAL_TIM_ReadCapturedValue(&TimInputCaptureHandle, TIM_CHANNEL_4);
if (uwCaptureNumber >= 2)
{
uwPeriodValue = (uint16_t)(0xFFFF - tmpCC4[0] + tmpCC4[1] + 1);
uwMeasurementDone = 1;
uwCaptureNumber = 0;
}if (uwCaptureNumber >= 2) { ... }
...}
}{ ... }
/* ... */
/* ... */