summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/chip.h')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/chip.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/chip.h b/nuttx/arch/arm/src/lpc17xx/chip.h
index 1f87c7b44..4138ef934 100644
--- a/nuttx/arch/arm/src/lpc17xx/chip.h
+++ b/nuttx/arch/arm/src/lpc17xx/chip.h
@@ -41,6 +41,7 @@
************************************************************************************/
#include <nuttx/config.h>
+#include "nvic.h"
/* Include the chip capabilities file */
@@ -60,6 +61,18 @@
# endif
#endif
+/* Vector Table Offset Register (VECTAB). Redefine some bits defined in
+ * arch/arm/src/armv7-m/nvic.h; The LPC178x/7x User manual definitions
+ * do not match the ARMv7M field definitions.
+ */
+
+#undef NVIC_VECTAB_TBLOFF_MASK
+#define NVIC_VECTAB_TBLOFF_MASK (0x3fffff00)
+#undef NVIC_VECTAB_TBLBASE
+#define NVIC_VECTAB_TBLBASE (1 << 29)
+#undef NVIC_VECTAB_ALIGN_MASK
+#define NVIC_VECTAB_ALIGN_MASK (0x000000ff)
+
/* Include the memory map file. Other chip hardware files should then include
* this file for the proper setup.
*/