From 829c206cb28e6a72073c953fdae4876ace1fdcd4 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 30 May 2012 21:15:21 +0000 Subject: [PATCH] In 16-bit address mode, FSMC_A16 corresponds to address bit 17 git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4789 42af7a65-404d-4744-a932-0658087f49c3 --- configs/stm32f4discovery/src/up_ssd1289.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/stm32f4discovery/src/up_ssd1289.c b/configs/stm32f4discovery/src/up_ssd1289.c index 50086205c8..4d5a4ab7a0 100644 --- a/configs/stm32f4discovery/src/up_ssd1289.c +++ b/configs/stm32f4discovery/src/up_ssd1289.c @@ -95,12 +95,13 @@ * Bank 3 = 0x60000000 | 0x08000000 * Bank 4 = 0x60000000 | 0x0c000000 * - * Address bit 16 is used to distinguish command and data + * FSMC address bit 16 is used to distinguish command and data. FSMC address bits + * 0-24 correspond to ARM address bits 1-25. */ #define STM32_LCDBASE ((uintptr_t)(0x60000000 | 0x00000000)) #define LCD_INDEX (STM32_LCDBASE) -#define LCD_DATA (STM32_LCDBASE + 0x00010000) +#define LCD_DATA (STM32_LCDBASE + 0x00020000) /* SRAM pin definitions */