NOkia LCD needs to initialize SPI before using it
This commit is contained in:
parent
a4a496ad6f
commit
d87f7e99d2
@ -121,14 +121,6 @@
|
||||
# define spivdbg(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
@ -1159,7 +1159,12 @@ FAR struct lcd_dev_s *nokia_lcdinitialize(FAR struct spi_dev_s *spi, unsigned in
|
||||
priv->spi = spi; /* Save the SPI instance */
|
||||
priv->contrast = NOKIA_DEFAULT_CONTRAST; /* Initial contrast setting */
|
||||
|
||||
/* Enable the LCD controller */
|
||||
/* Configure and enable the LCD controller */
|
||||
|
||||
SPI_SETMODE(spi, CONFIG_NOKIA6100_SPIMODE);
|
||||
SPI_SETBITS(spi, CONFIG_NOKIA6100_WORDWIDTH);
|
||||
(void)SPI_HWFEATURES(spi, 0);
|
||||
(void)SPI_SETFREQUENCY(spi, CONFIG_NOKIA6100_FREQUENCY)
|
||||
|
||||
if (nokia_initialize(priv) == OK)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user