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.
Dependents: LPCXpresso1769_blinky
Fork of mbed-dev by
targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.c@147:30b64687e01f, 2016-09-16 (annotated)
- Committer:
 - <>
 - Date:
 - Fri Sep 16 16:24:25 2016 +0100
 - Revision:
 - 147:30b64687e01f
 - Parent:
 - 144:ef7eb2e8f9f7
 
This updates the lib to the mbed lib v126
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| <> | 144:ef7eb2e8f9f7 | 1 | /** | 
| <> | 144:ef7eb2e8f9f7 | 2 | ****************************************************************************** | 
| <> | 144:ef7eb2e8f9f7 | 3 | * @file cmsis_nvic.c | 
| <> | 144:ef7eb2e8f9f7 | 4 | * @brief Contains relocatable exception table. | 
| <> | 144:ef7eb2e8f9f7 | 5 | * @internal | 
| <> | 144:ef7eb2e8f9f7 | 6 | * @author ON Semiconductor. | 
| <> | 144:ef7eb2e8f9f7 | 7 | * $Rev: 0.1 $ | 
| <> | 144:ef7eb2e8f9f7 | 8 | * $Date: 2015-11-06 $ | 
| <> | 144:ef7eb2e8f9f7 | 9 | ****************************************************************************** | 
| <> | 147:30b64687e01f | 10 | * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”). | 
| <> | 147:30b64687e01f | 11 | * All rights reserved. This software and/or documentation is licensed by ON Semiconductor | 
| <> | 147:30b64687e01f | 12 | * under limited terms and conditions. The terms and conditions pertaining to the software | 
| <> | 147:30b64687e01f | 13 | * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf | 
| <> | 147:30b64687e01f | 14 | * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and | 
| <> | 147:30b64687e01f | 15 | * if applicable the software license agreement. Do not use this software and/or | 
| <> | 147:30b64687e01f | 16 | * documentation unless you have carefully read and you agree to the limited terms and | 
| <> | 147:30b64687e01f | 17 | * conditions. By using this software and/or documentation, you agree to the limited | 
| <> | 147:30b64687e01f | 18 | * terms and conditions. | 
| <> | 144:ef7eb2e8f9f7 | 19 | * | 
| <> | 144:ef7eb2e8f9f7 | 20 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED | 
| <> | 144:ef7eb2e8f9f7 | 21 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF | 
| <> | 144:ef7eb2e8f9f7 | 22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. | 
| <> | 144:ef7eb2e8f9f7 | 23 | * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, | 
| <> | 144:ef7eb2e8f9f7 | 24 | * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. | 
| <> | 144:ef7eb2e8f9f7 | 25 | * @endinternal | 
| <> | 144:ef7eb2e8f9f7 | 26 | * | 
| <> | 147:30b64687e01f | 27 | * @ingroup | 
| <> | 144:ef7eb2e8f9f7 | 28 | * | 
| <> | 144:ef7eb2e8f9f7 | 29 | * @details | 
| <> | 144:ef7eb2e8f9f7 | 30 | */ | 
| <> | 147:30b64687e01f | 31 | |
| <> | 144:ef7eb2e8f9f7 | 32 | #include <cmsis_nvic.h> | 
| <> | 144:ef7eb2e8f9f7 | 33 | |
| <> | 144:ef7eb2e8f9f7 | 34 | #define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Vectors positioned at start of RAM | 
| <> | 144:ef7eb2e8f9f7 | 35 | #define NVIC_FLASH_VECTOR_ADDRESS (0x00000000) // Initial vector position in flash | 
| <> | 144:ef7eb2e8f9f7 | 36 | |
| <> | 144:ef7eb2e8f9f7 | 37 | |
| <> | 144:ef7eb2e8f9f7 | 38 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) | 
| <> | 144:ef7eb2e8f9f7 | 39 | { | 
| <> | 144:ef7eb2e8f9f7 | 40 | static volatile uint32_t *vectors = (uint32_t *)NVIC_FLASH_VECTOR_ADDRESS; | 
| <> | 144:ef7eb2e8f9f7 | 41 | |
| <> | 144:ef7eb2e8f9f7 | 42 | vectors[IRQn + 16] = vector; | 
| <> | 144:ef7eb2e8f9f7 | 43 | } | 
