diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-08 00:17:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-08 00:17:54 +0000 |
commit | 0017d65ee25f15e67e5376ac59340e5835032867 (patch) | |
tree | 24ad7c1d7f8d998510e9c25e2cfb12e012506b5f /nuttx/arch/arm/src/lpc17xx/chip.h | |
parent | 6513234d7d98c48ee6ffdd56e19f3e987eb753fb (diff) | |
download | px4-nuttx-0017d65ee25f15e67e5376ac59340e5835032867.tar.gz px4-nuttx-0017d65ee25f15e67e5376ac59340e5835032867.tar.bz2 px4-nuttx-0017d65ee25f15e67e5376ac59340e5835032867.zip |
LPC17xx now supports FPU needed by LPC1788; LPC17xx can not use Mike's common vectors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5623 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 | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/chip.h b/nuttx/arch/arm/src/lpc17xx/chip.h index 7bc1ab345..1f87c7b44 100644 --- a/nuttx/arch/arm/src/lpc17xx/chip.h +++ b/nuttx/arch/arm/src/lpc17xx/chip.h @@ -42,11 +42,28 @@ #include <nuttx/config.h> -/* Include the memory map and the chip definitions file. Other chip hardware files - * should then include this file for the proper setup. - */ +/* Include the chip capabilities file */ #include <arch/lpc17xx/chip.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(LPC176x) +# include "chip/lpc176x_vectors.h" +# elif defined(LPC178x) +# include "chip/lpc178x_vectors.h" +# else +# error "No vector file for this LPC17xx family" +# endif +#endif + +/* Include the memory map file. Other chip hardware files should then include + * this file for the proper setup. + */ + #include "chip/lpc17_memorymap.h" /************************************************************************************ |