cstartup.c
来自「STM3240G-Eval_uCOS-III」· C语言 代码 · 共 390 行 · 第 1/2 页
C
390 行
BSP_IntHandlerETH, /* 77, INTISR[ 61] ETH global Interrupt. */
BSP_IntHandlerETHWakeup, /* 78, INTISR[ 62] ETH WakeUp from EXTI line Interrupt. */
BSP_IntHandlerCAN2_TX, /* 79, INTISR[ 63] CAN2 TX Interrupts. */
BSP_IntHandlerCAN2_RX0, /* 80, INTISR[ 64] CAN2 RX0 Interrupts. */
BSP_IntHandlerCAN2_RX1, /* 81, INTISR[ 65] CAN2 RX1 Interrupt. */
BSP_IntHandlerCAN2_SCE, /* 82, INTISR[ 66] CAN2 SCE Interrupt. */
BSP_IntHandlerOTG_FS, /* 83, INTISR[ 67] OTG global Interrupt. */
BSP_IntHandlerDMA2_CH5, /* 84, INTISR[ 68] DMA2 Channel 5 global Interrupt. */
BSP_IntHandlerDMA2_CH6, /* 85, INTISR[ 69] DMA2 Channel 6 global Interrupt. */
BSP_IntHandlerDMA2_CH7, /* 86, INTISR[ 70] DMA2 Channel 7 global Interrupt. */
BSP_IntHandlerUSART6, /* 87, INTISR[ 71] UART6 global Interrupt. */
BSP_IntHandlerI2C3_EV, /* 88, INTISR[ 72] I2C3 Event Interrupt. */
BSP_IntHandlerI2C3_ER, /* 89, INTISR[ 73] I2C3 Error Interrupt. */
BSP_IntHandlerOTG_HS_EP1_OUT, /* 90, INTISR[ 74] OTG HS EP1 OUT Interrupt. */
BSP_IntHandlerOTG_HS_EP1_IN, /* 91, INTISR[ 75] OTG HS EP1 IN Interrupt. */
BSP_IntHandlerOTG_HS_WKUP, /* 92, INTISR[ 76] OTG HS Wakeup Interrupt. */
BSP_IntHandlerOTG_HS, /* 93, INTISR[ 77] OTG HS global Interrupt. */
BSP_IntHandlerDCMI, /* 94, INTISR[ 78] DCMI global Interrupt. */
BSP_IntHandlerCRYP, /* 95, INTISR[ 79] CRYPT crypto global Interrupt. */
BSP_IntHandlerHASH_RNG, /* 96, INTISR[ 80] HASH and RNG global Interrupt. */
BSP_IntHandlerFPU /* 97, INTISR[ 81] FPU global Interrupt. */
};
/*
*********************************************************************************************************
* App_Reset_ISR()
*
* Description : Handle Reset.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : none.
*********************************************************************************************************
*/
static void App_Reset_ISR (void)
{
#if __ARMVFP__ /* Enable access to Floating-point coprocessor. */
CPU_REG_NVIC_CPACR = CPU_REG_NVIC_CPACR_CP10_FULL_ACCESS | CPU_REG_NVIC_CPACR_CP11_FULL_ACCESS;
DEF_BIT_CLR(CPU_REG_SCB_FPCCR, DEF_BIT_31); /* Disable automatic FP register content */
DEF_BIT_CLR(CPU_REG_SCB_FPCCR, DEF_BIT_30); /* Disable Lazy context switch */
#endif
__iar_program_start();
}
/*
*********************************************************************************************************
* App_NMI_ISR()
*
* Description : Handle Non-Maskable Interrupt (NMI).
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : (1) Since the NMI is not being used, this serves merely as a catch for a spurious
* exception.
*********************************************************************************************************
*/
static void App_NMI_ISR (void)
{
while (DEF_TRUE) {
;
}
}
/*
*********************************************************************************************************
* App_Fault_ISR()
*
* Description : Handle hard fault.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : none.
*********************************************************************************************************
*/
static void App_Fault_ISR (void)
{
while (DEF_TRUE) {
;
}
}
/*
*********************************************************************************************************
* App_BusFault_ISR()
*
* Description : Handle bus fault.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : none.
*********************************************************************************************************
*/
static void App_BusFault_ISR (void)
{
while (DEF_TRUE) {
;
}
}
/*
*********************************************************************************************************
* App_UsageFault_ISR()
*
* Description : Handle usage fault.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : none.
*********************************************************************************************************
*/
static void App_UsageFault_ISR (void)
{
while (DEF_TRUE) {
;
}
}
/*
*********************************************************************************************************
* App_MemFault_ISR()
*
* Description : Handle memory fault.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : none.
*********************************************************************************************************
*/
static void App_MemFault_ISR (void)
{
while (DEF_TRUE) {
;
}
}
/*
*********************************************************************************************************
* App_Spurious_ISR()
*
* Description : Handle spurious interrupt.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Caller(s) : This is an ISR.
*
* Note(s) : none.
*********************************************************************************************************
*/
static void App_Spurious_ISR (void)
{
while (DEF_TRUE) {
;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?