diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-19 01:28:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-19 01:28:50 +0000 |
commit | ed784e97c354a92faafe8760beb933688b3e9a30 (patch) | |
tree | 5a0634af068bfc19b3a5bdd7ab4e6c09bf9537a5 /nuttx/arch/arm/src/lpc17xx/chip.h | |
parent | da460d18fab3e9e8c864aae340ef4867d90483d6 (diff) | |
download | px4-nuttx-ed784e97c354a92faafe8760beb933688b3e9a30.tar.gz px4-nuttx-ed784e97c354a92faafe8760beb933688b3e9a30.tar.bz2 px4-nuttx-ed784e97c354a92faafe8760beb933688b3e9a30.zip |
Fields of vector offset table appear to vary with MCU
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5758 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/chip.h')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/chip.h | 13 |
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. */ |