mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Minor OLED-related updates (still doesn't work)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3522 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -140,7 +140,8 @@ USB Device
|
|||||||
PIO0_3-VBUS_SENSE** 39 P0.5
|
PIO0_3-VBUS_SENSE** 39 P0.5
|
||||||
|
|
||||||
These jumper settings are listed for information only. They are *not*
|
These jumper settings are listed for information only. They are *not*
|
||||||
required for use with NuttX and LPCXpresso.
|
required for use with NuttX and LPCXpresso. The configurable pins
|
||||||
|
(P0.21 and P0.5) are not used!
|
||||||
|
|
||||||
*J14 must be set to permit GPIO control of the USB connect pin
|
*J14 must be set to permit GPIO control of the USB connect pin
|
||||||
**J12 must be set to permit GPIO control of the USB vbus sense pin
|
**J12 must be set to permit GPIO control of the USB vbus sense pin
|
||||||
@@ -163,7 +164,7 @@ USB Device
|
|||||||
P0.5/I2SRX-WS/TD2/CAP2.1 P0[5] | 39 | PIO0_3-VBUS_SENSE VBUS via J12
|
P0.5/I2SRX-WS/TD2/CAP2.1 P0[5] | 39 | PIO0_3-VBUS_SENSE VBUS via J12
|
||||||
------------------------------ --------------+------+------------------- ---------------------------
|
------------------------------ --------------+------+------------------- ---------------------------
|
||||||
|
|
||||||
*P2.9 Connect to a transistor driven USB-D+ pullup on the LPCXpresso board.
|
*P2.9 connects to a transistor driven USB-D+ pullup on the LPCXpresso board.
|
||||||
|
|
||||||
96x64 White OLED with I2C/SPI interface
|
96x64 White OLED with I2C/SPI interface
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
@@ -719,6 +720,9 @@ Where <subdir> is one of the following:
|
|||||||
(for execution from FLASH.) See apps/examples/README.txt for information
|
(for execution from FLASH.) See apps/examples/README.txt for information
|
||||||
about the dhcpd example.
|
about the dhcpd example.
|
||||||
|
|
||||||
|
Jumpers: Nothing special. Use the default base board jumper
|
||||||
|
settings.
|
||||||
|
|
||||||
nsh:
|
nsh:
|
||||||
Configures the NuttShell (nsh) located at apps/examples/nsh. The
|
Configures the NuttShell (nsh) located at apps/examples/nsh. The
|
||||||
Configuration enables both the serial and telnet NSH interfaces.
|
Configuration enables both the serial and telnet NSH interfaces.
|
||||||
@@ -730,10 +734,29 @@ Where <subdir> is one of the following:
|
|||||||
removes the problem. TODO: Tune this frequency to some optimal
|
removes the problem. TODO: Tune this frequency to some optimal
|
||||||
value.
|
value.
|
||||||
|
|
||||||
|
Jumpers: J55 must be set to provide chip select PIO1_11 signal as
|
||||||
|
the SD slot chip select.
|
||||||
|
|
||||||
|
nx:
|
||||||
|
And example using the NuttX graphics system (NX). This example
|
||||||
|
uses the UG-9664HSWAG01 driver.
|
||||||
|
|
||||||
|
Jumpers: There are several jumper settings needed by the OLED.
|
||||||
|
All are the default settings:
|
||||||
|
|
||||||
|
J42: Close to select the SPI interface (Default: closed)
|
||||||
|
J43: Close to support OLED command/data select (Default: closed)
|
||||||
|
J44: Close to allow control of OLED voltage (Default: closed)
|
||||||
|
J45: Close to select SPI clock (Default: closed)
|
||||||
|
J46: Close SPI data input (MOSI) (Default:closed)
|
||||||
|
|
||||||
ostest:
|
ostest:
|
||||||
This configuration directory, performs a simple OS test using
|
This configuration directory, performs a simple OS test using
|
||||||
apps/examples/ostest.
|
apps/examples/ostest.
|
||||||
|
|
||||||
|
Jumpers: Nothing special. Use the default base board jumper
|
||||||
|
settings.
|
||||||
|
|
||||||
thttpd:
|
thttpd:
|
||||||
This builds the THTTPD web server example using the THTTPD and
|
This builds the THTTPD web server example using the THTTPD and
|
||||||
the apps/examples/thttpd application.
|
the apps/examples/thttpd application.
|
||||||
@@ -741,6 +764,9 @@ Where <subdir> is one of the following:
|
|||||||
NOTE: You will need to build the NXFLAT toolchain as described
|
NOTE: You will need to build the NXFLAT toolchain as described
|
||||||
above in order to use this example.
|
above in order to use this example.
|
||||||
|
|
||||||
|
Jumpers: Nothing special. Use the default base board jumper
|
||||||
|
settings.
|
||||||
|
|
||||||
usbstorage:
|
usbstorage:
|
||||||
This configuration directory exercises the USB mass storage
|
This configuration directory exercises the USB mass storage
|
||||||
class driver at apps/examples/usbstorage. See apps/examples/README.txt
|
class driver at apps/examples/usbstorage. See apps/examples/README.txt
|
||||||
@@ -750,3 +776,7 @@ Where <subdir> is one of the following:
|
|||||||
high and the SD will fail. Setting that frequency to 400000
|
high and the SD will fail. Setting that frequency to 400000
|
||||||
removes the problem. TODO: Tune this frequency to some optimal
|
removes the problem. TODO: Tune this frequency to some optimal
|
||||||
value.
|
value.
|
||||||
|
|
||||||
|
Jumpers: J55 must be set to provide chip select PIO1_11 signal as
|
||||||
|
the SD slot chip select.
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CONFIG_ARCH_CHIP=lpc17xx
|
|||||||
CONFIG_ARCH_CHIP_LPC1768=y
|
CONFIG_ARCH_CHIP_LPC1768=y
|
||||||
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
||||||
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=7982
|
CONFIG_BOARD_LOOPSPERMSEC=8079
|
||||||
CONFIG_DRAM_SIZE=(32*1024)
|
CONFIG_DRAM_SIZE=(32*1024)
|
||||||
CONFIG_DRAM_START=0x10000000
|
CONFIG_DRAM_START=0x10000000
|
||||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CONFIG_ARCH_CHIP=lpc17xx
|
|||||||
CONFIG_ARCH_CHIP_LPC1768=y
|
CONFIG_ARCH_CHIP_LPC1768=y
|
||||||
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
||||||
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=7982
|
CONFIG_BOARD_LOOPSPERMSEC=8079
|
||||||
CONFIG_DRAM_SIZE=(32*1024)
|
CONFIG_DRAM_SIZE=(32*1024)
|
||||||
CONFIG_DRAM_START=0x10000000
|
CONFIG_DRAM_START=0x10000000
|
||||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CONFIG_ARCH_CHIP=lpc17xx
|
|||||||
CONFIG_ARCH_CHIP_LPC1768=y
|
CONFIG_ARCH_CHIP_LPC1768=y
|
||||||
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
||||||
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=7982
|
CONFIG_BOARD_LOOPSPERMSEC=8079
|
||||||
CONFIG_DRAM_SIZE=(32*1024)
|
CONFIG_DRAM_SIZE=(32*1024)
|
||||||
CONFIG_DRAM_START=0x10000000
|
CONFIG_DRAM_START=0x10000000
|
||||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CONFIG_ARCH_CHIP=lpc17xx
|
|||||||
CONFIG_ARCH_CHIP_LPC1768=y
|
CONFIG_ARCH_CHIP_LPC1768=y
|
||||||
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
||||||
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=7982
|
CONFIG_BOARD_LOOPSPERMSEC=8079
|
||||||
CONFIG_DRAM_SIZE=(32*1024)
|
CONFIG_DRAM_SIZE=(32*1024)
|
||||||
CONFIG_DRAM_START=0x10000000
|
CONFIG_DRAM_START=0x10000000
|
||||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: lpc17_ssp1cmddata
|
* Name: lpc17_ssp1cmddata
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -172,7 +172,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
|||||||
* Returned Value:
|
* Returned Value:
|
||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int lpc17_ssp1cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
int lpc17_ssp1cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||||
{
|
{
|
||||||
@@ -203,12 +203,12 @@ int lpc17_ssp1cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
|||||||
* Returned Value:
|
* Returned Value:
|
||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
**************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_UG9664HSWAG01_POWER
|
#ifdef CONFIG_UG9664HSWAG01_POWER
|
||||||
void ug_power(unsigned int devno, bool on)
|
void ug_power(unsigned int devno, bool on)
|
||||||
{
|
{
|
||||||
gllvdbg("on: \n", on ? "TRUE" : "FALSE");
|
gllvdbg("power %s\n", on ? "ON" : "OFF");
|
||||||
(void)lpc17_gpiowrite(LPCXPRESSO_OLED_POWER, on);
|
(void)lpc17_gpiowrite(LPCXPRESSO_OLED_POWER, on);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CONFIG_ARCH_CHIP=lpc17xx
|
|||||||
CONFIG_ARCH_CHIP_LPC1768=y
|
CONFIG_ARCH_CHIP_LPC1768=y
|
||||||
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
||||||
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=7982
|
CONFIG_BOARD_LOOPSPERMSEC=8079
|
||||||
CONFIG_DRAM_SIZE=(32*1024)
|
CONFIG_DRAM_SIZE=(32*1024)
|
||||||
CONFIG_DRAM_START=0x10000000
|
CONFIG_DRAM_START=0x10000000
|
||||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CONFIG_ARCH_CHIP=lpc17xx
|
|||||||
CONFIG_ARCH_CHIP_LPC1768=y
|
CONFIG_ARCH_CHIP_LPC1768=y
|
||||||
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
CONFIG_ARCH_BOARD=lpcxpresso-lpc1768
|
||||||
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
CONFIG_ARCH_BOARD_LPCXPRESSO=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=7982
|
CONFIG_BOARD_LOOPSPERMSEC=8079
|
||||||
CONFIG_DRAM_SIZE=(32*1024)
|
CONFIG_DRAM_SIZE=(32*1024)
|
||||||
CONFIG_DRAM_START=0x10000000
|
CONFIG_DRAM_START=0x10000000
|
||||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||||
|
|||||||
Reference in New Issue
Block a user