Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/cmsis_nvic.h
- Revision:
- 167:e84263d55307
- Parent:
- 149:156823d33999
--- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/cmsis_nvic.h Thu Jun 08 15:02:37 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/cmsis_nvic.h Wed Jun 21 17:46:44 2017 +0100
@@ -1,5 +1,4 @@
/* mbed Microcontroller Library
- * CMSIS-style functionality to support dynamic vectors
*******************************************************************************
* Copyright (c) 2016, STMicroelectronics
* All rights reserved.
@@ -27,7 +26,7 @@
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
- */
+ */
#ifndef MBED_CMSIS_NVIC_H
#define MBED_CMSIS_NVIC_H
@@ -35,20 +34,7 @@
// CORE: 16 vectors (= 64 bytes from 0x00 to 0x3F)
// MCU Peripherals: 61 vectors (= 244 bytes from 0x40 to 0x134)
// Total: 308 bytes to be reserved in RAM (see scatter file)
-#define NVIC_NUM_VECTORS (16 + 61)
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "cmsis.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
+#define NVIC_NUM_VECTORS (16 + 61)
+#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Vectors positioned at start of RAM
#endif
