From aec57044b11c60960673d94212afb6ec9b7c5b24 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 15 May 2010 20:28:09 +0000 Subject: Early debug fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2674 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/lm3s6965-ek/nx/defconfig | 4 ++-- nuttx/configs/lm3s6965-ek/src/up_oled.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'nuttx/configs') diff --git a/nuttx/configs/lm3s6965-ek/nx/defconfig b/nuttx/configs/lm3s6965-ek/nx/defconfig index 681bc85d6..601c8c186 100755 --- a/nuttx/configs/lm3s6965-ek/nx/defconfig +++ b/nuttx/configs/lm3s6965-ek/nx/defconfig @@ -580,7 +580,7 @@ CONFIG_NX_MXCLIENTMSGS=16 # RiT P14201 OLED Driver Configuration # # CONFIG_LCD_P14201 - Enable P14201 support -# CONFIG_P14201_SPIMODE - Controls the SPI mode +# CONFIG_P14201_SPIMODE - Controls the SPI mode (should be mode 2) # CONFIG_P14201_FREQUENCY - Define to use a different bus frequency # CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201 devices that # will be supported. @@ -593,7 +593,7 @@ CONFIG_NX_MXCLIENTMSGS=16 # # The latter limitation effectively reduces the 128x96 disply to 64x96. CONFIG_LCD_P14201=y -CONFIG_P14201_SPIMODE=0 +CONFIG_P14201_SPIMODE=2 CONFIG_P14201_FREQUENCY=20000000 CONFIG_P14201_NINTERFACES=1 CONFIG_P14201_FRAMEBUFFER=y diff --git a/nuttx/configs/lm3s6965-ek/src/up_oled.c b/nuttx/configs/lm3s6965-ek/src/up_oled.c index 10d467a58..5bc3e9146 100755 --- a/nuttx/configs/lm3s6965-ek/src/up_oled.c +++ b/nuttx/configs/lm3s6965-ek/src/up_oled.c @@ -45,6 +45,7 @@ #include #include +#include #include #include "lm3s_internal.h" @@ -94,6 +95,10 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno) else { gllvdbg("Bound SPI port 0 to OLED %d\n", devno); + + /* And turn the OLED on (CONFIG_LCD_MAXPOWER should be 1) */ + + (void)dev->setpower(dev, CONFIG_LCD_MAXPOWER); return dev; } } -- cgit v1.2.3