diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-22 14:30:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-22 14:30:54 +0000 |
commit | dfc3e19b4f9dba7e13bfb711565f82c4a67ff2d9 (patch) | |
tree | b53a5a33b32a96e89b5071bf551d713161844a12 /nuttx/drivers/lcd | |
parent | 7406abbc5ac56892524846c8a19d2aabfc34eef4 (diff) | |
download | px4-nuttx-dfc3e19b4f9dba7e13bfb711565f82c4a67ff2d9.tar.gz px4-nuttx-dfc3e19b4f9dba7e13bfb711565f82c4a67ff2d9.tar.bz2 px4-nuttx-dfc3e19b4f9dba7e13bfb711565f82c4a67ff2d9.zip |
Add an ST7567 LCD driver for ZKIT-ARM-1769
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5772 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/lcd')
-rw-r--r-- | nuttx/drivers/lcd/Kconfig | 57 | ||||
-rw-r--r-- | nuttx/drivers/lcd/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/drivers/lcd/README.txt | 3 |
3 files changed, 64 insertions, 0 deletions
diff --git a/nuttx/drivers/lcd/Kconfig b/nuttx/drivers/lcd/Kconfig index 2d20003ac..38c490deb 100644 --- a/nuttx/drivers/lcd/Kconfig +++ b/nuttx/drivers/lcd/Kconfig @@ -227,6 +227,63 @@ config UG9664HSWAG01_POWER endif +config LCD_ST7567 + bool "ST7567 LCD Display Module" + default n + ---help--- + LCD Display Module, ST7567, Univision Technology Inc. Used + with the LPCXpresso and Embedded Artists base board. + + Required LCD driver settings: + LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted. + LCD_MAXPOWER should be 1: 0=off, 1=on + + Required SPI driver settings: + SPI_CMDDATA - Include support for cmd/data selection. + +if LCD_ST7567 + +config ST7567_SPIMODE + int "ST7567 SPI Mode" + default 0 + ---help--- + Controls the SPI mode + +config ST7567_FREQUENCY + int "ST7567 SPI Frequency" + default 3500000 + ---help--- + Define to use a different bus frequency + +config ST7567_NINTERFACES + int "Number of ST7567 Devices" + default 1 + ---help--- + Specifies the number of physical ST7567 devices that will be + supported. NOTE: At present, this must be undefined or defined to be 1. + +config ST7567_POWER + bool "Power control" + default n + ---help--- + If the hardware supports a controllable LCD a power supply, this + configuration should be defined. In this case the system must + provide an interface ug_power(). + +config ST7567_XRES + int "ST7567 X Resolution" + default 128 + ---help--- + Specifies the X resolution of the LCD. + +config ST7567_YRES + int "ST7567 Y Resolution" + default 64 + ---help--- + Specifies the Y resolution of the LCD. + +endif + config LCD_UG2864AMBAG01 bool "UG-2864AMBAG01 OLED Display Module" default n diff --git a/nuttx/drivers/lcd/Make.defs b/nuttx/drivers/lcd/Make.defs index 067f76f4e..649979121 100644 --- a/nuttx/drivers/lcd/Make.defs +++ b/nuttx/drivers/lcd/Make.defs @@ -67,6 +67,10 @@ ifeq ($(CONFIG_LCD_MIO283QT2),y) CSRCS += mio283qt2.c endif +ifeq ($(CONFIG_LCD_ST7567),y) + CSRCS += st7567.c +endif + # Include LCD driver build support DEPPATH += --dep-path lcd diff --git a/nuttx/drivers/lcd/README.txt b/nuttx/drivers/lcd/README.txt index 0472043e6..3641aa4db 100644 --- a/nuttx/drivers/lcd/README.txt +++ b/nuttx/drivers/lcd/README.txt @@ -107,6 +107,9 @@ Re-usable LCD drivers reside in the drivers/lcd directory: that you will proably ahve to customize for any particular LCD hardware. (see also configs/hymini-stm32v/src/ssd1289.c below). + st7567.c. LCD Display Module, ST7567, Univision Technology Inc. Used + with the LPCXpresso and Embedded Artists base board. + ug-9664hswag01.c. OLED Display Module, UG-9664HSWAG01", Univision Technology Inc. Used with the LPC Xpresso and Embedded Artists base board. |