mbed-os/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h

19 lines
667 B
C
Raw Normal View History

2015-04-27 18:11:02 +00:00
/* mbed Microcontroller Library - cmsis_nvic
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*/
2015-04-27 18:11:02 +00:00
#ifndef MBED_CMSIS_NVIC_H
#define MBED_CMSIS_NVIC_H
#define NVIC_NUM_VECTORS (16 + EXT_IRQ_COUNT) // CORE + MCU Peripherals
2015-04-27 18:11:02 +00:00
/* For GCC, use dynamic vector table placement since otherwise we run into an alignment conflict */
#if (defined (__GNUC__) && (!defined(__CC_ARM)))
extern uint32_t __start_vector_table__; // Dynamic vector positioning in GCC
#define NVIC_RAM_VECTOR_ADDRESS (&__start_vector_table__)
#else
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Vectors positioned at start of RAM
2015-04-27 18:11:02 +00:00
#endif
#endif /* MBED_CMSIS_NVIC_H */