2013-07-31 15:48:23 +00:00
|
|
|
/************************************************************************************//**
|
2018-07-17 13:06:06 +00:00
|
|
|
* \file Demo/ARMCM3_EFM32_Olimex_EM32G880F128STK_IAR/Boot/vectors.c
|
2013-07-31 15:48:23 +00:00
|
|
|
* \brief Bootloader interrupt vector table source file.
|
2017-08-16 14:01:03 +00:00
|
|
|
* \ingroup Boot_ARMCM3_EFM32_Olimex_EM32G880F128STK_IAR
|
2013-07-31 15:48:23 +00:00
|
|
|
* \internal
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* C O P Y R I G H T
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) 2012 by Feaser http://www.feaser.com All rights reserved
|
|
|
|
*
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* L I C E N S E
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation, either version 3 of the License, or (at your option) any later
|
|
|
|
* version.
|
|
|
|
*
|
|
|
|
* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
2016-07-25 08:33:52 +00:00
|
|
|
* You have received a copy of the GNU General Public License along with OpenBLT. It
|
2016-04-30 22:52:15 +00:00
|
|
|
* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy.
|
2016-03-01 14:24:23 +00:00
|
|
|
*
|
2013-07-31 15:48:23 +00:00
|
|
|
* \endinternal
|
2012-03-03 23:05:56 +00:00
|
|
|
****************************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
|
* Include files
|
|
|
|
****************************************************************************************/
|
|
|
|
#include "boot.h" /* bootloader generic header */
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
|
* External functions
|
|
|
|
****************************************************************************************/
|
2016-03-01 14:24:23 +00:00
|
|
|
extern void reset_handler(void);
|
2012-03-03 23:05:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
|
* Type definitions
|
|
|
|
****************************************************************************************/
|
2013-07-31 15:48:23 +00:00
|
|
|
/** \brief Structure type for vector table entries. */
|
2012-03-03 23:05:56 +00:00
|
|
|
typedef union
|
|
|
|
{
|
2013-07-31 15:48:23 +00:00
|
|
|
void (*func)(void); /**< for ISR function pointers */
|
|
|
|
void *ptr; /**< for stack pointer entry */
|
2016-03-01 14:24:23 +00:00
|
|
|
} tIsrFunc;
|
2012-03-03 23:05:56 +00:00
|
|
|
|
|
|
|
|
2013-07-31 15:48:23 +00:00
|
|
|
/************************************************************************************//**
|
|
|
|
** \brief Catch-all for unused interrrupt service routines.
|
|
|
|
** \return none.
|
2012-03-03 23:05:56 +00:00
|
|
|
**
|
|
|
|
****************************************************************************************/
|
|
|
|
void UnusedISR(void)
|
|
|
|
{
|
|
|
|
/* unexpected interrupt occured, so trigger an assertion to halt the system */
|
|
|
|
ASSERT_RT(BLT_FALSE);
|
|
|
|
} /*** end of UnusedISR ***/
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
|
* I N T E R R U P T V E C T O R T A B L E
|
|
|
|
****************************************************************************************/
|
|
|
|
#pragma language=extended /* enable IAR extensions */
|
|
|
|
#pragma segment="CSTACK"
|
|
|
|
|
2013-07-31 15:48:23 +00:00
|
|
|
/** \brief Interrupt vector table. */
|
2012-03-03 23:05:56 +00:00
|
|
|
__root const tIsrFunc __vector_table[] @ ".intvec" =
|
|
|
|
{
|
2016-03-01 14:24:23 +00:00
|
|
|
{ .ptr = __sfe("CSTACK") }, /* the initial stack pointer */
|
2012-03-03 23:05:56 +00:00
|
|
|
{ &reset_handler }, /* the reset handler */
|
|
|
|
{ UnusedISR }, /* NMI Handler */
|
|
|
|
{ UnusedISR }, /* Hard Fault Handler */
|
|
|
|
{ UnusedISR }, /* MPU Fault Handler */
|
|
|
|
{ UnusedISR }, /* Bus Fault Handler */
|
|
|
|
{ UnusedISR }, /* Usage Fault Handler */
|
|
|
|
{ UnusedISR }, /* Reserved */
|
|
|
|
{ UnusedISR }, /* Reserved */
|
|
|
|
{ UnusedISR }, /* Reserved */
|
|
|
|
{ UnusedISR }, /* Reserved */
|
|
|
|
{ UnusedISR }, /* SVCall Handler */
|
|
|
|
{ UnusedISR }, /* Debug Monitor Handler */
|
|
|
|
{ UnusedISR }, /* Reserved */
|
|
|
|
{ UnusedISR }, /* PendSV Handler */
|
|
|
|
{ UnusedISR }, /* SysTick Handler */
|
|
|
|
{ UnusedISR }, /* 0 - DMA Handler */
|
|
|
|
{ UnusedISR }, /* 1 - GPIO_EVEN Handler */
|
|
|
|
{ UnusedISR }, /* 2 - TIMER0 Handler */
|
|
|
|
{ UnusedISR }, /* 3 - USART0_RX Handler */
|
|
|
|
{ UnusedISR }, /* 4 - USART0_TX Handler */
|
|
|
|
{ UnusedISR }, /* 5 - ACMP0 Handler */
|
|
|
|
{ UnusedISR }, /* 6 - ADC0 Handler */
|
|
|
|
{ UnusedISR }, /* 7 - DAC0 Handler */
|
|
|
|
{ UnusedISR }, /* 8 - I2C0 Handler */
|
|
|
|
{ UnusedISR }, /* 9 - GPIO_ODD Handler */
|
|
|
|
{ UnusedISR }, /* 10 - TIMER1 Handler */
|
|
|
|
{ UnusedISR }, /* 11 - TIMER2 Handler */
|
|
|
|
{ UnusedISR }, /* 12 - USART1_RX Handler */
|
|
|
|
{ UnusedISR }, /* 13 - USART1_TX Handler */
|
|
|
|
{ UnusedISR }, /* 14 - USART2_RX Handler */
|
|
|
|
{ UnusedISR }, /* 15 - USART2_TX Handler */
|
|
|
|
{ UnusedISR }, /* 16 - UART0_RX Handler */
|
|
|
|
{ UnusedISR }, /* 17 - UART0_TX Handler */
|
|
|
|
{ UnusedISR }, /* 18 - LEUART0 Handler */
|
|
|
|
{ UnusedISR }, /* 19 - LEUART1 Handler */
|
|
|
|
{ UnusedISR }, /* 20 - LETIMER0 Handler */
|
|
|
|
{ UnusedISR }, /* 21 - PCNT0 Handler */
|
|
|
|
{ UnusedISR }, /* 22 - PCNT1 Handler */
|
|
|
|
{ UnusedISR }, /* 23 - PCNT2 Handler */
|
|
|
|
{ UnusedISR }, /* 24 - RTC Handler */
|
|
|
|
{ UnusedISR }, /* 25 - CMU Handler */
|
|
|
|
{ UnusedISR }, /* 26 - VCMP Handler */
|
|
|
|
{ UnusedISR }, /* 27 - LCD Handler */
|
|
|
|
{ UnusedISR }, /* 28 - MSC Handler */
|
|
|
|
{ UnusedISR } /* 29 - AES Handler */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/************************************ end of vectors.c *********************************/
|
|
|
|
|
|
|
|
|