Finish framebuffer support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2672 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
f4376cd1ae
commit
703a73fe4f
@ -359,10 +359,11 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
CONFIG_P14201_FRAMEBUFFER - If defined, accesses will be performed
|
CONFIG_P14201_FRAMEBUFFER - If defined, accesses will be performed
|
||||||
using an in-memory copy of the OLEDs GDDRAM. This cost of this
|
using an in-memory copy of the OLEDs GDDRAM. This cost of this
|
||||||
buffer is 128 * 96 / 2 = 6Kb. If this is defined, then the driver
|
buffer is 128 * 96 / 2 = 6Kb. If this is defined, then the driver
|
||||||
will be fully functioned. If not, then it will have the following
|
will be fully functional. If not, then it will have the following
|
||||||
limitations:
|
limitations:
|
||||||
- Reading graphics memory cannot be supported, and
|
- Reading graphics memory cannot be supported, and
|
||||||
- All pixel writes must be aligned to byte boundaries.
|
- All pixel writes must be aligned to byte boundaries.
|
||||||
|
The latter limitation effectively reduces the 128x96 disply to 64x96.
|
||||||
|
|
||||||
ENC28J60 Ethernet Driver Configuration Settings:
|
ENC28J60 Ethernet Driver Configuration Settings:
|
||||||
CONFIG_NET_ENC28J60 - Enabled ENC28J60 support
|
CONFIG_NET_ENC28J60 - Enabled ENC28J60 support
|
||||||
|
@ -576,6 +576,27 @@ CONFIG_NX_BLOCKING=y
|
|||||||
CONFIG_NX_MXSERVERMSGS=32
|
CONFIG_NX_MXSERVERMSGS=32
|
||||||
CONFIG_NX_MXCLIENTMSGS=16
|
CONFIG_NX_MXCLIENTMSGS=16
|
||||||
|
|
||||||
|
# RiT P14201 OLED Driver Configuration
|
||||||
|
#
|
||||||
|
# CONFIG_LCD_P14201 - Enable P14201 support
|
||||||
|
# CONFIG_P14201_SPIMODE - Controls the SPI mode
|
||||||
|
# CONFIG_P14201_FREQUENCY - Define to use a different bus frequency
|
||||||
|
# CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201 devices that
|
||||||
|
# will be supported.
|
||||||
|
# CONFIG_P14201_FRAMEBUFFER - If defined, accesses will be performed using an in-memory
|
||||||
|
# copy of the OLEDs GDDRAM. This cost of this buffer is 128 * 96 / 2 = 6Kb. If this
|
||||||
|
# is defined, then the driver will be fully functional. If not, then it will have the
|
||||||
|
# following limitations:
|
||||||
|
# - Reading graphics memory cannot be supported, and
|
||||||
|
# - All pixel writes must be aligned to byte boundaries.
|
||||||
|
#
|
||||||
|
# The latter limitation effectively reduces the 128x96 disply to 64x96.
|
||||||
|
CONFIG_LCD_P14201=y
|
||||||
|
CONFIG_P14201_SPIMODE=0
|
||||||
|
CONFIG_P14201_FREQUENCY=20000000
|
||||||
|
CONFIG_P14201_NINTERFACES=1
|
||||||
|
CONFIG_P14201_FRAMEBUFFER=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/uip
|
# Settings for examples/uip
|
||||||
#
|
#
|
||||||
@ -708,6 +729,7 @@ CONFIG_EXAMPLES_NX_STACKSIZE=2048
|
|||||||
CONFIG_EXAMPLES_NX_CLIENTPRIO=80
|
CONFIG_EXAMPLES_NX_CLIENTPRIO=80
|
||||||
CONFIG_EXAMPLES_NX_SERVERPRIO=120
|
CONFIG_EXAMPLES_NX_SERVERPRIO=120
|
||||||
CONFIG_EXAMPLES_NX_NOTIFYSIGNO=4
|
CONFIG_EXAMPLES_NX_NOTIFYSIGNO=4
|
||||||
|
CONFIG_EXAMPLES_NX_EXTERNINIT=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Stack and heap information
|
# Stack and heap information
|
||||||
|
@ -126,18 +126,6 @@
|
|||||||
|
|
||||||
extern void weak_function lm3s_ssiinitialize(void);
|
extern void weak_function lm3s_ssiinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: lm3s_oledinitialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Called to configure OLED.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_NX_LCDDRIVER
|
|
||||||
extern void lm3s_oledinitialize(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_LM3S6965_EK_SRC_LM3S6965EK_INTERNAL_H */
|
#endif /* __CONFIGS_LM3S6965_EK_SRC_LM3S6965EK_INTERNAL_H */
|
||||||
|
|
||||||
|
@ -81,12 +81,6 @@ void lm3s_boardinitialize(void)
|
|||||||
{
|
{
|
||||||
lm3s_ssiinitialize();
|
lm3s_ssiinitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configure the OLED for use */
|
|
||||||
|
|
||||||
#ifdef CONFIG_NX_LCDDRIVER
|
|
||||||
lm3s_oledinitialize();
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
@ -59,17 +59,17 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_oledinitialize
|
* Name: up_nxdrvinit
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure OLED.
|
* Called NX initialization logic to configure the OLED.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void lm3s_oledinitialize(void)
|
FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
||||||
{
|
{
|
||||||
FAR struct spi_dev_s *spi;
|
FAR struct spi_dev_s *spi;
|
||||||
int ret;
|
FAR struct lcd_dev_s *dev;
|
||||||
|
|
||||||
/* Configure the OLED D/Cn GPIO */
|
/* Configure the OLED D/Cn GPIO */
|
||||||
|
|
||||||
@ -86,16 +86,18 @@ void lm3s_oledinitialize(void)
|
|||||||
{
|
{
|
||||||
/* Bind the SPI port to the OLED */
|
/* Bind the SPI port to the OLED */
|
||||||
|
|
||||||
ret = rit_initialize(spi, 0);
|
dev = rit_initialize(spi, devno);
|
||||||
if (ret < 0)
|
if (!dev)
|
||||||
{
|
{
|
||||||
glldbg("Failed to bind SPI port 0 to OLED: %d\n", ret);
|
glldbg("Failed to bind SPI port 0 to OLED %d: %d\n", ret, devno);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gllvdbg("Bound SPI port 0 to OLED\n");
|
gllvdbg("Bound SPI port 0 to OLED %d\n", devno);
|
||||||
|
return dev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************************
|
/**************************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user