SSD1306: Fix errors in SPI mode configuration

This commit is contained in:
Gong Darcy 2016-12-04 10:07:46 -06:00 committed by Gregory Nutt
parent 7c4e3e21b8
commit 44b7975a5e
2 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ void ssd1306_sendblk(FAR struct ssd1306_dev_s *priv, uint8_t *data, uint8_t len)
#ifdef CONFIG_LCD_SSD1306_SPI
void ssd1306_select(FAR struct ssd1306_dev_s *priv, bool cs);
void ssd1306_cmddata(FAR struct ssd1306_dev_s *priv, bool cmd);
static inline void ssd1306_configspi(FAR struct spi_dev_s *spi)
static inline void ssd1306_configspi(FAR struct spi_dev_s *spi);
#else
# define ssd1306_select(priv, cs)

View File

@ -45,7 +45,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/lcd/ssd1306.h>
#include <nuttx/spi/spi.h>
#include "ssd1306.h"
#if defined(CONFIG_LCD_SSD1306) && defined(CONFIG_LCD_SSD1306_SPI)
@ -109,7 +109,7 @@ void ssd1306_sendblk(FAR struct ssd1306_dev_s *priv, uint8_t *data, uint8_t len)
{
/* Send byte value to display */
(void)SPI_SNDBLOCK(priv, data, len);
(void)SPI_SNDBLOCK(priv->spi, data, len);
}
/****************************************************************************