Early debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2674 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
76d565356a
commit
a85bd15e6f
@ -580,7 +580,7 @@ CONFIG_NX_MXCLIENTMSGS=16
|
|||||||
# RiT P14201 OLED Driver Configuration
|
# RiT P14201 OLED Driver Configuration
|
||||||
#
|
#
|
||||||
# CONFIG_LCD_P14201 - Enable P14201 support
|
# 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_FREQUENCY - Define to use a different bus frequency
|
||||||
# CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201 devices that
|
# CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201 devices that
|
||||||
# will be supported.
|
# will be supported.
|
||||||
@ -593,7 +593,7 @@ CONFIG_NX_MXCLIENTMSGS=16
|
|||||||
#
|
#
|
||||||
# The latter limitation effectively reduces the 128x96 disply to 64x96.
|
# The latter limitation effectively reduces the 128x96 disply to 64x96.
|
||||||
CONFIG_LCD_P14201=y
|
CONFIG_LCD_P14201=y
|
||||||
CONFIG_P14201_SPIMODE=0
|
CONFIG_P14201_SPIMODE=2
|
||||||
CONFIG_P14201_FREQUENCY=20000000
|
CONFIG_P14201_FREQUENCY=20000000
|
||||||
CONFIG_P14201_NINTERFACES=1
|
CONFIG_P14201_NINTERFACES=1
|
||||||
CONFIG_P14201_FRAMEBUFFER=y
|
CONFIG_P14201_FRAMEBUFFER=y
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <nuttx/spi.h>
|
#include <nuttx/spi.h>
|
||||||
|
#include <nuttx/lcd.h>
|
||||||
#include <nuttx/p14201.h>
|
#include <nuttx/p14201.h>
|
||||||
|
|
||||||
#include "lm3s_internal.h"
|
#include "lm3s_internal.h"
|
||||||
@ -94,6 +95,10 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
gllvdbg("Bound SPI port 0 to OLED %d\n", devno);
|
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;
|
return dev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user