Skip to content

Commit 42b9f3b

Browse files
bcostmadbridge
authored andcommitted
DISCO_L475VG_IOT01A: Update cmsis_nvic files
1 parent 05c682e commit 42b9f3b

File tree

2 files changed

+3
-72
lines changed

2 files changed

+3
-72
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/cmsis_nvic.c

Lines changed: 0 additions & 55 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/cmsis_nvic.h

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* mbed Microcontroller Library
2-
* CMSIS-style functionality to support dynamic vectors
32
*******************************************************************************
43
* Copyright (c) 2017, STMicroelectronics
54
* All rights reserved.
@@ -27,28 +26,15 @@
2726
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2827
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2928
*******************************************************************************
30-
*/
29+
*/
3130

3231
#ifndef MBED_CMSIS_NVIC_H
3332
#define MBED_CMSIS_NVIC_H
3433

3534
// CORE: 16 vectors = 64 bytes from 0x00 to 0x3F
3635
// MCU Peripherals: 82 vectors = 328 bytes from 0x40 to 0x187
3736
// Total: 98 vectors = 392 bytes (0x188) to be reserved in RAM
38-
#define NVIC_NUM_VECTORS 98
39-
#define NVIC_USER_IRQ_OFFSET 16
40-
41-
#include "cmsis.h"
42-
43-
#ifdef __cplusplus
44-
extern "C" {
45-
#endif
46-
47-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
48-
uint32_t NVIC_GetVector(IRQn_Type IRQn);
49-
50-
#ifdef __cplusplus
51-
}
52-
#endif
37+
#define NVIC_NUM_VECTORS 98
38+
#define NVIC_RAM_VECTOR_ADDRESS 0x10000000 // Vectors positioned at start of SRAM2
5339

5440
#endif

0 commit comments

Comments
 (0)