From 4511f9758bf8027c5ee01b654b3b1558ebb2d11a Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 27 Apr 2012 18:29:04 +0000 Subject: More STM3240G-EVAL LCD updates git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4665 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/stm3240g-eval/nsh/defconfig | 6 ++++++ nuttx/configs/stm3240g-eval/nxconsole/defconfig | 7 +++++++ nuttx/configs/stm3240g-eval/src/up_lcd.c | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) (limited to 'nuttx/configs') diff --git a/nuttx/configs/stm3240g-eval/nsh/defconfig b/nuttx/configs/stm3240g-eval/nsh/defconfig index 3e6e768e5..70eee412f 100644 --- a/nuttx/configs/stm3240g-eval/nsh/defconfig +++ b/nuttx/configs/stm3240g-eval/nsh/defconfig @@ -1259,6 +1259,12 @@ CONFIG_LCD_LANDSCAPE=n CONFIG_LCD_PORTRAIT=n CONFIG_LCD_RPORTRAIT=y +# +# STM3240G-EVAL specific LCD settings +# +CONFIG_STM32_ILI9320_DISABLE=n +CONFIG_STM32_ILI9325_DISABLE=n + # # Settings for examples/uip # diff --git a/nuttx/configs/stm3240g-eval/nxconsole/defconfig b/nuttx/configs/stm3240g-eval/nxconsole/defconfig index f48f04f24..d845c7206 100644 --- a/nuttx/configs/stm3240g-eval/nxconsole/defconfig +++ b/nuttx/configs/stm3240g-eval/nxconsole/defconfig @@ -1259,6 +1259,13 @@ CONFIG_LCD_LANDSCAPE=y CONFIG_LCD_PORTRAIT=n CONFIG_LCD_RPORTRAIT=n + +# +# STM3240G-EVAL specific LCD settings +# +CONFIG_STM32_ILI9320_DISABLE=n +CONFIG_STM32_ILI9325_DISABLE=n + # # Settings for examples/uip # diff --git a/nuttx/configs/stm3240g-eval/src/up_lcd.c b/nuttx/configs/stm3240g-eval/src/up_lcd.c index c77af6ac0..4ab5c0258 100644 --- a/nuttx/configs/stm3240g-eval/src/up_lcd.c +++ b/nuttx/configs/stm3240g-eval/src/up_lcd.c @@ -914,7 +914,7 @@ static inline void stm3240g_lcdinitialize(void) { uint16_t id; - /* Check if the LCD is xxx Controller (or the compatible) */ + /* Check LCD ID */ id = stm3240g_readreg(LCD_REG_0); lcddbg("LCD ID: %04x\n", id); @@ -1197,6 +1197,6 @@ void stm3240g_lcdclear(uint16_t color) for (i = 0; i < STM3240G_XRES * STM3240G_YRES; i++) { LCD->value = color; - } + } } -- cgit v1.2.3