mirror of
https://github.com/apache/nuttx.git
synced 2026-10-07 22:35:22 +00:00
Standardize naming of user LEDs interface functions
This commit is contained in:
parent
f56ed529e5
commit
b28bd72a48
113 changed files with 642 additions and 723 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* configs/cloudctrl/src/stm32_userleds.c
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
* Darcy Gong <darcy.gong@gmail.com>
|
||||
*
|
||||
|
|
@ -89,10 +89,10 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: stm32_ledinit
|
||||
* Name: board_userled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void stm32_ledinit(void)
|
||||
void board_userled_initialize(void)
|
||||
{
|
||||
/* Configure LED1-3 GPIOs for output */
|
||||
|
||||
|
|
@ -103,10 +103,10 @@ void stm32_ledinit(void)
|
|||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: stm32_setled
|
||||
* Name: board_userled
|
||||
****************************************************************************/
|
||||
|
||||
void stm32_setled(int led, bool ledon)
|
||||
void board_userled(int led, bool ledon)
|
||||
{
|
||||
if ((unsigned)led < BOARD_NLEDS)
|
||||
{
|
||||
|
|
@ -115,10 +115,10 @@ void stm32_setled(int led, bool ledon)
|
|||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: stm32_setleds
|
||||
* Name: board_userled_all
|
||||
****************************************************************************/
|
||||
|
||||
void stm32_setleds(uint8_t ledset)
|
||||
void board_userled_all(uint8_t ledset)
|
||||
{
|
||||
stm32_gpiowrite(GPIO_LED1, (ledset & BOARD_LED1_BIT) == 0);
|
||||
stm32_gpiowrite(GPIO_LED2, (ledset & BOARD_LED2_BIT) == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue