1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
24
25
26
27
31
32
33
34
35
36
37
38
43
46
47
52
59
60
65
72
73
78
85
86
91
98
99
104
107
108
113
116
117
122
125
126
131
135
136
141
142
143
148
152
153
158
159
160
161
162
163
164
165
166
168
169
170
171
172
173
174
175
176
177
178
183
/* ... */
#include "stm32f4xx_it.h"
Includes
extern PCD_HandleTypeDef hpcd;
extern USBD_HandleTypeDef USBD_Device;
Private variables
/* ... */
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 SVC_Handler(void)
{
}{ ... }
/* ... */
void DebugMon_Handler(void)
{
}{ ... }
/* ... */
void PendSV_Handler(void)
{
}{ ... }
/* ... */
void SysTick_Handler(void)
{
HAL_IncTick();
}{ ... }
...
...
/* ... */
void OTG_FS_IRQHandler(void)
{
HAL_PCD_IRQHandler(&hpcd);
}{ ... }
/* ... */
void OTG_FS_WKUP_IRQHandler(void)
{
if((&hpcd)->Init.low_power_enable)
{
SCB->SCR &= (uint32_t)~((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk));
/* ... */
SystemClock_Config();
__HAL_PCD_UNGATE_PHYCLOCK((&hpcd));
}if ((&hpcd)->Init.low_power_enable) { ... }
__HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG();
}{ ... }
/* ... */
void EXTI0_IRQHandler(void)
{
HAL_GPIO_EXTI_IRQHandler(WAKEUP_BUTTON_PIN);
}{ ... }