Skip to content

Commit 306d844

Browse files
committed
[M487] Remove NVIC_SetVector/NVIC_GetVector to match updated boot flow
1 parent 670822a commit 306d844

File tree

2 files changed

+0
-78
lines changed

2 files changed

+0
-78
lines changed

targets/TARGET_NUVOTON/TARGET_M480/device/cmsis_nvic.c

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

targets/TARGET_NUVOTON/TARGET_M480/device/cmsis_nvic.h

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,4 @@
3232
# define NVIC_RAM_VECTOR_ADDRESS ((uint32_t) &__start_vector_table__)
3333
#endif
3434

35-
36-
#if defined(__CC_ARM)
37-
extern uint32_t Load$$LR$$LR_IROM1$$Base[];
38-
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base)
39-
#elif defined(__ICCARM__)
40-
#pragma section=".intvec"
41-
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec"))
42-
#elif defined(__GNUC__)
43-
extern uint32_t __vector_table;
44-
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)&__vector_table)
45-
#else
46-
#error "Flash vector address not set for this toolchain"
47-
#endif
48-
49-
#ifdef __cplusplus
50-
extern "C" {
51-
#endif
52-
53-
/** Set the ISR for IRQn
54-
*
55-
* Sets an Interrupt Service Routine vector for IRQn; if the feature is available, the vector table is relocated to SRAM
56-
* the first time this function is called
57-
* @param[in] IRQn The Interrupt Request number for which a vector will be registered
58-
* @param[in] vector The ISR vector to register for IRQn
59-
*/
60-
void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
61-
62-
/** Get the ISR registered for IRQn
63-
*
64-
* Reads the Interrupt Service Routine currently registered for IRQn
65-
* @param[in] IRQn The Interrupt Request number the vector of which will be read
66-
* @return Returns the ISR registered for IRQn
67-
*/
68-
uint32_t __NVIC_GetVector(IRQn_Type IRQn);
69-
70-
#ifdef __cplusplus
71-
}
72-
#endif
73-
7435
#endif

0 commit comments

Comments
 (0)