Various initialization functions in configs/: Change /dev/slcd to /dev/slcd0 for consistency
This commit is contained in:
parent
2474eda421
commit
803aadd5b7
@ -655,7 +655,7 @@ Configuration sub-directories
|
||||
|
||||
Application Configuration -> Examples
|
||||
CONFIG_EXAMPLES_SLCD=y
|
||||
CONFIG_EXAMPLES_SLCD_DEVNAME="/dev/slcd"
|
||||
CONFIG_EXAMPLES_SLCD_DEVNAME="/dev/slcd0"
|
||||
CONFIG_EXAMPLES_SLCD_BUFSIZE=64
|
||||
|
||||
Application Configuration -> NSH Library
|
||||
|
@ -350,7 +350,7 @@ int sam_sdinitialize(int minor);
|
||||
*
|
||||
* Description:
|
||||
* Initialize the SAM4L Xplained Pro LCD hardware and register the character
|
||||
* driver as /dev/slcd.
|
||||
* driver as /dev/slcd0.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
@ -103,7 +103,7 @@
|
||||
int board_app_initialize(uintptr_t arg)
|
||||
{
|
||||
#if defined(CONFIG_SAM34_LCDCA) && defined(CONFIG_SAM4L_XPLAINED_SLCD1MODULE)
|
||||
/* Initialize the SLCD and register the SLCD device as /dev/slcd */
|
||||
/* Initialize the SLCD and register the SLCD device as /dev/slcd0 */
|
||||
|
||||
{
|
||||
int ret = sam_slcd_initialize();
|
||||
|
@ -1159,7 +1159,7 @@ static int slcd_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
*
|
||||
* Description:
|
||||
* Initialize the SAM4L Xplained Pro LCD hardware and register the character
|
||||
* driver as /dev/slcd.
|
||||
* driver as /dev/slcd0.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -1288,7 +1288,7 @@ int sam_slcd_initialize(void)
|
||||
|
||||
/* Register the LCD device driver */
|
||||
|
||||
ret = register_driver("/dev/slcd", &g_slcdops, 0644, &g_slcdstate);
|
||||
ret = register_driver("/dev/slcd0", &g_slcdops, 0644, &g_slcdstate);
|
||||
g_slcdstate.initialized = true;
|
||||
|
||||
/* Turn on the backlight */
|
||||
|
@ -189,7 +189,7 @@ int stm32_bringup(void)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LCD_ST7032
|
||||
ret = stm32_st7032init("/dev/disp0");
|
||||
ret = stm32_st7032init("/dev/slcd0");
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: st7032_register failed: %d\n", ret);
|
||||
|
@ -294,7 +294,7 @@ extern "C"
|
||||
*
|
||||
* Description:
|
||||
* Initialize the STM32L-Discovery LCD hardware and register the character
|
||||
* driver as /dev/slcd.
|
||||
* driver as /dev/slcd0.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
@ -81,7 +81,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
int ret = OK;
|
||||
|
||||
#ifdef CONFIG_STM32_LCD
|
||||
/* Initialize the SLCD and register the SLCD device as /dev/slcd */
|
||||
/* Initialize the SLCD and register the SLCD device as /dev/slcd0 */
|
||||
|
||||
ret = stm32_slcd_initialize();
|
||||
if (ret != OK)
|
||||
|
@ -1462,7 +1462,7 @@ static int slcd_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
*
|
||||
* Description:
|
||||
* Initialize the STM32L-Discovery LCD hardware and register the character
|
||||
* driver as /dev/slcd.
|
||||
* driver as /dev/slcd0.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -1569,7 +1569,7 @@ int stm32_slcd_initialize(void)
|
||||
|
||||
/* Register the LCD device driver */
|
||||
|
||||
ret = register_driver("/dev/slcd", &g_slcdops, 0644, &g_slcdstate);
|
||||
ret = register_driver("/dev/slcd0", &g_slcdops, 0644, &g_slcdstate);
|
||||
g_slcdstate.initialized = true;
|
||||
|
||||
/* Then clear the display */
|
||||
|
Loading…
Reference in New Issue
Block a user