Update some C comments.

This commit is contained in:
Gregory Nutt 2018-02-10 17:05:25 -06:00
parent dd56cc87be
commit 8f8ee5009d
2 changed files with 16 additions and 1 deletions

View File

@ -115,6 +115,10 @@ void pic32mz_spi1select(FAR struct spi_dev_s *dev, uint32_t devid, bool selecte
defined(CONFIG_FLIPNCLICK_PIC32MZ_HILETGO_MBD)
if (devid == SPIDEV_DISPLAY(0))
{
/* Low: the display is selected
* High: the display is deselected
*/
pic32mz_gpiowrite(GPIO_HILETGO_CS, !selected);
}
#endif
@ -132,6 +136,10 @@ int pic32mz_spi1cmddata(FAR struct spi_dev_s *dev, uint32_t devid, bool cmd)
defined(CONFIG_FLIPNCLICK_PIC32MZ_HILETGO_MBD)
if (devid == SPIDEV_DISPLAY(0))
{
/* High: the inputs are treated as display data.
* Low: the inputs are transferred to the command registers.
*/
pic32mz_gpiowrite(GPIO_HILETGO_DC, !cmd);
}
#endif
@ -150,6 +158,10 @@ void pic32mz_spi2select(FAR struct spi_dev_s *dev, uint32_t devid, bool selecte
defined(CONFIG_FLIPNCLICK_PIC32MZ_HILETGO_MBB)
if (devid == SPIDEV_DISPLAY(0))
{
/* Low: the display is selected
* High: the display is deselected
*/
pic32mz_gpiowrite(GPIO_HILETGO_CS, !selected);
}
#endif
@ -167,6 +179,10 @@ int pic32mz_spi2cmddata(FAR struct spi_dev_s *dev, uint32_t devid, bool cmd)
defined(CONFIG_FLIPNCLICK_PIC32MZ_HILETGO_MBB)
if (devid == SPIDEV_DISPLAY(0))
{
/* High: the inputs are treated as display data.
* Low: the inputs are transferred to the command registers.
*/
pic32mz_gpiowrite(GPIO_HILETGO_DC, !cmd);
}
#endif

View File

@ -1,6 +1,5 @@
/**************************************************************************************
* drivers/lcd/pcd8544.h
*
* Definitions for the PCD8544 LCD Display
*
* Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved.