mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
141 lines
1.8 KiB
C
141 lines
1.8 KiB
C
/*!
|
|
* @file apm32e10x_it.c
|
|
*
|
|
* @brief Main Interrupt Service Routines
|
|
*
|
|
* @version V1.0.0
|
|
*
|
|
* @date 2021-07-26
|
|
*
|
|
*/
|
|
|
|
#include "main.h"
|
|
#include "apm32e10x_it.h"
|
|
|
|
/*!
|
|
* @brief This function handles NMI exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void NMI_Handler(void)
|
|
{
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles Hard Fault exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void HardFault_Handler(void)
|
|
{
|
|
/* Go to infinite loop when Hard Fault exception occurs */
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles Memory Manage exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void MemManage_Handler(void)
|
|
{
|
|
/* Go to infinite loop when Memory Manage exception occurs */
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles Bus Fault exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void BusFault_Handler(void)
|
|
{
|
|
/* Go to infinite loop when Bus Fault exception occurs */
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
/*!
|
|
* @brief This function handles Usage Fault exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void UsageFault_Handler(void)
|
|
{
|
|
/* Go to infinite loop when Usage Fault exception occurs */
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles SVCall exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void SVC_Handler(void)
|
|
{
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles Debug Monitor exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void DebugMon_Handler(void)
|
|
{
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles PendSV_Handler exception
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
|
|
void PendSV_Handler(void)
|
|
{
|
|
}
|
|
|
|
/*!
|
|
* @brief This function handles SysTick Handler
|
|
*
|
|
* @param None
|
|
*
|
|
* @retval None
|
|
*
|
|
*/
|
|
void SysTick_Handler(void)
|
|
{
|
|
tick++;
|
|
}
|
|
|
|
|