mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Fix Error: board/cxd56_leds.c:43:20: error: unused function 'led_clrbits' [-Werror,-Wunused-function]
static inline void led_clrbits(unsigned int clrbits)
^
Error: board/cxd56_leds.c:66:20: error: unused function 'led_setbits' [-Werror,-Wunused-function]
static inline void led_setbits(unsigned int setbits)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
940ee2c8b1
commit
e46bdeca1d
@@ -40,6 +40,7 @@
|
|||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef CONFIG_ARCH_LEDS_CPU_ACTIVITY
|
||||||
static inline void led_clrbits(unsigned int clrbits)
|
static inline void led_clrbits(unsigned int clrbits)
|
||||||
{
|
{
|
||||||
if ((clrbits & BOARD_LED1_BIT) != 0)
|
if ((clrbits & BOARD_LED1_BIT) != 0)
|
||||||
@@ -85,6 +86,7 @@ static inline void led_setbits(unsigned int setbits)
|
|||||||
cxd56_gpio_write(GPIO_LED4, true);
|
cxd56_gpio_write(GPIO_LED4, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user