This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit e46bdeca1d41def67f6aec714412842f57b4f028
Author: Xiang Xiao <[email protected]>
AuthorDate: Sat Oct 29 02:36:10 2022 +0800

    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 <[email protected]>
---
 boards/arm/cxd56xx/spresense/src/cxd56_leds.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_leds.c 
b/boards/arm/cxd56xx/spresense/src/cxd56_leds.c
index 40ad88d6ef..1ae0d2fcb7 100644
--- a/boards/arm/cxd56xx/spresense/src/cxd56_leds.c
+++ b/boards/arm/cxd56xx/spresense/src/cxd56_leds.c
@@ -40,6 +40,7 @@
  * Private Functions
  ****************************************************************************/
 
+#ifndef CONFIG_ARCH_LEDS_CPU_ACTIVITY
 static inline void led_clrbits(unsigned int clrbits)
 {
   if ((clrbits & BOARD_LED1_BIT) != 0)
@@ -85,6 +86,7 @@ static inline void led_setbits(unsigned int setbits)
       cxd56_gpio_write(GPIO_LED4, true);
     }
 }
+#endif
 
 /****************************************************************************
  * Public Functions

Reply via email to