mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Add LED, button definition, and more EMC logic for the LPC1788
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5646 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -172,6 +172,22 @@ config ARCH_EXTDRAMSIZE
|
|||||||
---help---
|
---help---
|
||||||
Size of the external SDRAM in bytes.
|
Size of the external SDRAM in bytes.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "SDRAM Width Selection"
|
||||||
|
default ARCH_CHIP_STM32F103ZET6
|
||||||
|
depends on ARCH_CHIP_STM32
|
||||||
|
|
||||||
|
config ARCH_SDRAM_8BIT
|
||||||
|
bool "8-bit"
|
||||||
|
|
||||||
|
config ARCH_SDRAM_16BIT
|
||||||
|
bool "16-bit"
|
||||||
|
|
||||||
|
config ARCH_SDRAM_32BIT
|
||||||
|
bool "32-bit"
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
config ARCH_EXTDRAMHEAP
|
config ARCH_EXTDRAMHEAP
|
||||||
bool "Add external SDRAM to the heap"
|
bool "Add external SDRAM to the heap"
|
||||||
default y
|
default y
|
||||||
|
|||||||
@@ -277,8 +277,9 @@
|
|||||||
#define EMC_DYNAMICCONFIG_MD_MASK (3 << EMC_DYNAMICCONFIG_MD_SHIFT)
|
#define EMC_DYNAMICCONFIG_MD_MASK (3 << EMC_DYNAMICCONFIG_MD_SHIFT)
|
||||||
# define EMC_DYNAMICCONFIG_MD_SDRAM (0 << EMC_DYNAMICCONFIG_MD_SHIFT) /* SDRAM */
|
# define EMC_DYNAMICCONFIG_MD_SDRAM (0 << EMC_DYNAMICCONFIG_MD_SHIFT) /* SDRAM */
|
||||||
# define EMC_DYNAMICCONFIG_MD_LOWPOWER (1 << EMC_DYNAMICCONFIG_MD_SHIFT) /* Low-power SDRAM */
|
# define EMC_DYNAMICCONFIG_MD_LOWPOWER (1 << EMC_DYNAMICCONFIG_MD_SHIFT) /* Low-power SDRAM */
|
||||||
#define EMC_DYNAMICCONFIG_AM0_SHIFT (nn) /* Bits 7-12: */
|
#define EMC_DYNAMICCONFIG_AM0_SHIFT (7) /* Bits 7-12: */
|
||||||
#define EMC_DYNAMICCONFIG_AM0_MASK (63 << EMC_DYNAMICCONFIG_AM0_SHIFT)
|
#define EMC_DYNAMICCONFIG_AM0_MASK (63 << EMC_DYNAMICCONFIG_AM0_SHIFT)
|
||||||
|
# define EMC_DYNAMICCONFIG_AM0(n) ((n) << EMC_DYNAMICCONFIG_AM0_SHIFT)
|
||||||
#define EMC_DYNAMICCONFIG_AM1 (1 << 14) /* Bit 14: */
|
#define EMC_DYNAMICCONFIG_AM1 (1 << 14) /* Bit 14: */
|
||||||
#define EMC_DYNAMICCONFIG_B (1 << 19) /* Bit 19: Buffer enable */
|
#define EMC_DYNAMICCONFIG_B (1 << 19) /* Bit 19: Buffer enable */
|
||||||
#define EMC_DYNAMICCONFIG_P (1 << 20) /* Bit 20: Write protect */
|
#define EMC_DYNAMICCONFIG_P (1 << 20) /* Bit 20: Write protect */
|
||||||
|
|||||||
Reference in New Issue
Block a user