diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-07 02:32:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-07 02:32:56 +0000 |
commit | 8c171192c2de60763a079d0abdba19694eb7a76a (patch) | |
tree | 83e0c2585e18e73612a7f7b017b484cb6668b0c8 /nuttx/arch/arm/src/lm3s/chip.h | |
parent | 97a86e4c3fc52f5b6928e212541efb4da6bf4753 (diff) | |
download | px4-nuttx-8c171192c2de60763a079d0abdba19694eb7a76a.tar.gz px4-nuttx-8c171192c2de60763a079d0abdba19694eb7a76a.tar.bz2 px4-nuttx-8c171192c2de60763a079d0abdba19694eb7a76a.zip |
Add LM3S6965 definition
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2654 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/chip.h')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/chip.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/lm3s/chip.h b/nuttx/arch/arm/src/lm3s/chip.h index d96b6fb0f..d95861247 100644 --- a/nuttx/arch/arm/src/lm3s/chip.h +++ b/nuttx/arch/arm/src/lm3s/chip.h @@ -1,7 +1,7 @@ /************************************************************************************ * arch/arm/src/lm3s/chip.h * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -48,13 +48,28 @@ /* Get customizations for each supported chip (only the LM3S6918 right now) */ -#ifdef CONFIG_ARCH_CHIP_LM3S6918 +#if defined(CONFIG_ARCH_CHIP_LM3S6918) +# define LM3S_NTIMERS 4 /* Four general purpose timers */ +# define LM3S_NETHCONTROLLERS 1 /* One Ethernet controller */ +# define LM3S_NSSI 2 /* Two SSI modules */ # define LM3S_NUARTS 2 /* Two UART modules */ # define LM3S_NI2C 2 /* Two I2C modules */ -# define LM3S_NSSI 2 /* Two SSI modules */ -# define LM3S_NETHCONTROLLERS 1 /* One ethenet controller */ +# define LM3S_NADC 1 /* One ADC module */ +# define LM2S_NPWM 0 /* No PWM modules */ +# define LM3S_NQEI 0 /* No quadrature encoders */ +# define LC3S_NGPIOS 38 /* 5-38 GPIOs, depending on configuration */ +#elif defined(CONFIG_ARCH_CHIP_LM3S6965) +# define LM3S_NTIMERS 4 /* Four general purpose timers */ +# define LM3S_NETHCONTROLLERS 1 /* One Ethernet controller */ +# define LM3S_NSSI 1 /* One SSI module */ +# define LM3S_NUARTS 3 /* Three UART modules */ +# define LM3S_NI2C 2 /* Two I2C modules */ +# define LM3S_NADC 1 /* One ADC module */ +# define LM2S_NPWM 3 /* Three PWM modules */ +# define LM3S_NQEI 2 /* Two quadrature encoders */ +# define LC3S_NGPIOS 42 /* 0-42 GPIOs */ #else -# error "No Ethernet support for this LM3S chip" +# error "Capabilities not specified for this LM3S chip" #endif /* Then get all of the register definitions */ |