summaryrefslogtreecommitdiff
path: root/nuttx/drivers/lcd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-15 21:34:20 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-15 21:34:20 +0000
commit8284ad9fa8ae2cb2d8694100da87942781ffef90 (patch)
treec6eddc126e0895ea67ce568b3907c4e86408f32d /nuttx/drivers/lcd
parentaec57044b11c60960673d94212afb6ec9b7c5b24 (diff)
downloadpx4-nuttx-8284ad9fa8ae2cb2d8694100da87942781ffef90.tar.gz
px4-nuttx-8284ad9fa8ae2cb2d8694100da87942781ffef90.tar.bz2
px4-nuttx-8284ad9fa8ae2cb2d8694100da87942781ffef90.zip
Remove some debug stuff
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2675 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/lcd')
-rwxr-xr-xnuttx/drivers/lcd/p14201.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/nuttx/drivers/lcd/p14201.c b/nuttx/drivers/lcd/p14201.c
index b8edc52fe..c06cf3379 100755
--- a/nuttx/drivers/lcd/p14201.c
+++ b/nuttx/drivers/lcd/p14201.c
@@ -93,8 +93,6 @@
#ifndef CONFIG_P14201_SPIMODE
# define CONFIG_P14201_SPIMODE SPIDEV_MODE2
#endif
-#undef CONFIG_P14201_SPIMODE
-# define CONFIG_P14201_SPIMODE SPIDEV_MODE2
/* CONFIG_P14201_NINTERFACES determines the number of physical interfaces
* that will be supported.
@@ -366,7 +364,7 @@ static const uint8_t g_initcmds[] =
(14 << 4), /* Oscillator Frequency, FOSC, setting */
SSD1329_NOOP,
17, SSD1329_GSCALE_LOOKUP, /* Look Up Table for Gray Scale Pulse width */
- 1, 2, 3, 4, 5, 6, 8, 10, /* Value for GS1-8 level Pulse width */
+ 1, 2, 3, 4, 5, 6, 8, 10, /* Value for GS1-8 level Pulse width */
12, 14, 16, 19, 22, 26, 30, /* Value for GS9-15 level Pulse width */
SSD1329_NOOP,
3, SSD1329_PRECHRG2_PERIOD, /* Set Second Pre-charge Period */
@@ -401,7 +399,6 @@ static const uint8_t g_horzinc[] =
{
SSD1329_GDDRAM_REMAP,
(SSD1329_COM_SPLIT|SSD1329_COM_REMAP|SSD1329_NIBBLE_REMAP),
- SSD1329_NOOP,
};
/* The following set a window that covers the entire display */
@@ -564,7 +561,8 @@ static void rit_sndbytes(FAR struct rit_dev_s *priv, FAR const uint8_t *buffer,
FAR struct spi_dev_s *spi = priv->spi;
uint8_t tmp;
- ritdbg("buflen: %d data: %s\n", buflen, data ? "YES" : "NO");
+ ritdbg("buflen: %d data: %s [%02x %02x %02x]\n",
+ buflen, data ? "YES" : "NO", buffer[0], buffer[1], buffer[2] );
DEBUGASSERT(spi);
/* Select the SD1329 controller */
@@ -1191,4 +1189,4 @@ FAR struct lcd_dev_s *rit_initialize(FAR struct spi_dev_s *spi, unsigned int dev
rit_clear(priv);
return &priv->dev;
}
-#endif /* CONFIG_LCD_P14201 */ \ No newline at end of file
+#endif /* CONFIG_LCD_P14201 */