From 375244fdc49a7dfbe592914bc28fb24312386771 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 14 Nov 2011 17:59:02 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3492 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/IAR/ARMCMx/chcore_v7m.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'os/ports/IAR') diff --git a/os/ports/IAR/ARMCMx/chcore_v7m.h b/os/ports/IAR/ARMCMx/chcore_v7m.h index ee077749c..8ebd45bda 100644 --- a/os/ports/IAR/ARMCMx/chcore_v7m.h +++ b/os/ports/IAR/ARMCMx/chcore_v7m.h @@ -66,6 +66,13 @@ #endif #endif +/** + * @brief NVIC VTOR initialization expression. + */ +#if !defined(CORTEX_VTOR_INIT) || defined(__DOXYGEN__) +#define CORTEX_VTOR_INIT 0x00000000 +#endif + /*===========================================================================*/ /* Port derived parameters. */ /*===========================================================================*/ @@ -192,6 +199,7 @@ struct intctx { * @brief Port-related initialization code. */ #define port_init() { \ + SCB_VTOR = CORTEX_VTOR_INIT; \ SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(0); \ NVICSetSystemHandlerPriority(HANDLER_SVCALL, \ CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)); \ -- cgit v1.2.3