diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2010-05-07 02:32:56 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2010-05-07 02:32:56 +0000 |
commit | 44736f60b64db1057cc9c5fbd33232a0ff4b48f9 (patch) | |
tree | 83e0c2585e18e73612a7f7b017b484cb6668b0c8 /nuttx/arch/arm/src/lm3s/chip.h | |
parent | 764d9d01b1fb7e9ec56f64f05f6b969256772ca3 (diff) |
Add LM3S6965 definition
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2654 7fd9a85b-ad96-42d3-883c-3090e2eb8679
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 d96b6fb0fb..d95861247f 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 */ |