diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-25 22:14:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-25 22:14:00 +0000 |
commit | 29d916f11e865afefe144aba44146a7d4acca5e4 (patch) | |
tree | 111f0e4a2fc639b6cc9c45fc669937213ae2fc95 /nuttx/configs/stm3240g-eval/src/up_selectlcd.c | |
parent | ffcaa123f477ac9062398c06b68950203f0c899a (diff) | |
download | px4-nuttx-29d916f11e865afefe144aba44146a7d4acca5e4.tar.gz px4-nuttx-29d916f11e865afefe144aba44146a7d4acca5e4.tar.bz2 px4-nuttx-29d916f11e865afefe144aba44146a7d4acca5e4.zip |
STM3240G-EVAL LCD updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4656 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/src/up_selectlcd.c')
-rw-r--r-- | nuttx/configs/stm3240g-eval/src/up_selectlcd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nuttx/configs/stm3240g-eval/src/up_selectlcd.c b/nuttx/configs/stm3240g-eval/src/up_selectlcd.c index 95056ccc5..5e4900654 100644 --- a/nuttx/configs/stm3240g-eval/src/up_selectlcd.c +++ b/nuttx/configs/stm3240g-eval/src/up_selectlcd.c @@ -141,17 +141,16 @@ void stm32_selectlcd(void) /* Color LCD configuration (LCD configured as follow): * * - Data/Address MUX = Disable "FSMC_BCR_MUXEN" just not enable it. + * - Extended Mode = Disable "FSMC_BCR_EXTMOD" * - Memory Type = SRAM "FSMC_BCR_SRAM" * - Data Width = 16bit "FSMC_BCR_MWID16" * - Write Operation = Enable "FSMC_BCR_WREN" - * - Extended Mode = Enable "FSMC_BCR_EXTMOD" * - Asynchronous Wait = Disable */ /* Bank3 NOR/SRAM control register configuration */ - putreg32(FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN | FSMC_BCR_EXTMOD, - STM32_FSMC_BCR3); + putreg32(FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN, STM32_FSMC_BCR3); /* Bank3 NOR/SRAM timing register configuration */ @@ -162,8 +161,7 @@ void stm32_selectlcd(void) /* Enable the bank by setting the MBKEN bit */ - putreg32(FSMC_BCR_MBKEN | FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN | FSMC_BCR_EXTMOD, - STM32_FSMC_BCR3); + putreg32(FSMC_BCR_MBKEN | FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN, STM32_FSMC_BCR3); } #endif /* CONFIG_STM32_FSMC */ |