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
32
33
34
35
36
37
38
39
44
47
48
53
60
61
66
73
74
79
86
87
92
99
100
105
108
109
114
117
118
123
126
127
132
136
137
142
143
144
149
153
154
159
160
161
162
163
164
165
166
167
169
170
171
172
173
174
175
176
177
178
179
184
/* ... */
#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);
}{ ... }