mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 19:23:34 +08:00
Definitions for ARMv7-M AIRCR register, Fixes for ADS7843 and SSD1289 driver, Missing build logic for examples/watchdog
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5198 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -931,9 +931,27 @@ static inline int ssd1289_hwinitialize(FAR struct ssd1289_dev_s *priv)
|
||||
|
||||
lcd->select(lcd);
|
||||
|
||||
/* Read the device ID. Skip verification of the device ID is the LCD is
|
||||
* write-only. What choice do we have?
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_LCD_NOGETRUN
|
||||
id = ssd1289_readreg(lcd, SSD1289_DEVCODE);
|
||||
lcddbg("LCD ID: %04x\n", id);
|
||||
if (id != 0)
|
||||
{
|
||||
lcddbg("LCD ID: %04x\n", id);
|
||||
}
|
||||
|
||||
/* If we could not get the ID, then let's just assume that this is an SSD1289.
|
||||
* Perhaps we have some early register access issues. This seems to happen.
|
||||
* But then perhaps we should not even bother to read the device ID at all?
|
||||
*/
|
||||
|
||||
else
|
||||
{
|
||||
lcddbg("No LCD ID, assuming SSD1289\n");
|
||||
id = SSD1289_DEVCODE_VALUE;
|
||||
}
|
||||
|
||||
/* Check if the ID is for the SSD1289 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user