summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2015-01-05 11:15:54 +0800
committerGrissiom <[email protected]>2015-01-06 10:25:43 +0800
commit5542af8b7c1ec7359616d2e2521a5654547554b2 (patch)
treec965e5d0d80bd8da3a42210197629526c188fa88
parentf609a63564625478f1d533bee283fad7f09059ac (diff)
lpc43xx/driver: fix the VTOR setting
-rw-r--r--bsp/lpc43xx/drivers/board.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bsp/lpc43xx/drivers/board.c b/bsp/lpc43xx/drivers/board.c
index 421298c19e..b7d3ead87e 100644
--- a/bsp/lpc43xx/drivers/board.c
+++ b/bsp/lpc43xx/drivers/board.c
@@ -43,13 +43,12 @@ void rt_hw_board_init()
{
#ifdef CORE_M4
/* NVIC Configuration */
-#define NVIC_VTOR_MASK 0x3FFFFF80
#ifdef VECT_TAB_RAM
/* Set the Vector Table base location at 0x10000000 */
- SCB->VTOR = (0x10000000 & NVIC_VTOR_MASK);
+ SCB->VTOR = 0x10000000;
#else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x00000000 */
- SCB->VTOR = (0x00000000 & NVIC_VTOR_MASK);
+ SCB->VTOR = 0x1A000000;
#endif
#endif
/* update the core clock */