diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-06-03 11:23:41 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-06-03 11:23:41 -0600 |
commit | ccadba524f6e5ff381a5b24397af7124e814866a (patch) | |
tree | a200ce0af7ef6097b4bf7752c4daec3577193340 /nuttx/arch/arm/src/sam34/chip.h | |
parent | 68dcc997e8ae2390db87955dfc0d8c9bd7ec8f35 (diff) | |
download | px4-nuttx-ccadba524f6e5ff381a5b24397af7124e814866a.tar.gz px4-nuttx-ccadba524f6e5ff381a5b24397af7124e814866a.tar.bz2 px4-nuttx-ccadba524f6e5ff381a5b24397af7124e814866a.zip |
Add vector and chip cability definitions for the SAM4L family
Diffstat (limited to 'nuttx/arch/arm/src/sam34/chip.h')
-rw-r--r-- | nuttx/arch/arm/src/sam34/chip.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/sam34/chip.h b/nuttx/arch/arm/src/sam34/chip.h index cd5f76d89..3c92f53ef 100644 --- a/nuttx/arch/arm/src/sam34/chip.h +++ b/nuttx/arch/arm/src/sam34/chip.h @@ -49,6 +49,21 @@ #include <arch/sam34/chip.h> #include "chip/sam_memorymap.h" +/* If the common ARMv7-M vector handling logic is used, then include the required + * vector definitions as well. + */ + +#ifdef CONFIG_ARMV7M_CMNVECTOR +# if defined(CONFIG_ARCH_CHIP_SAM3U) +# include "chip/sam3u_vectors.h" +# elif defined(CONFIG_ARCH_CHIP_SAM4L) +# include "chip/sam4l_vectors.h" +# include "chip/sam4l_memorymap.h" +# else +# error Unrecognized SAM architecture +# endif +#endif + /************************************************************************************ * Pre-processor Definitions ************************************************************************************/ |