QCC系列充电LED有问题修复
修改LED优先级
/*!
\copyright Copyright (c) 2019-2023 Qualcomm Technologies International, Ltd.
All Rights Reserved.
Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file headset_led.c
\brief Source file for the Headset Application user interface LED indications.
*/
#include "headset_led.h"
#include "headset_ui.h"
const led_manager_hw_config_t app_led_config =
#if defined(HAVE_1_LED)
{
.number_of_leds = 1,
.leds_use_pio = TRUE,
.led0_pio = CHIP_LED_0_PIO,
.led1_pio = 0,
.led2_pio = 0,
};
#elif defined(HAVE_3_LEDS)
{
.number_of_leds = 3,
.leds_use_pio = TRUE,
.led0_pio = CHIP_LED_0_PIO,
.led1_pio = CHIP_LED_1_PIO,
.led2_pio = CHIP_LED_2_PIO,
};
#else
#error LED config not correctly defined.
#endif
/*!@{ \name Definition of LEDs, and basic colour combinations
The basic handling for LEDs is similar, whether there are
3 separate LEDs, a tri-color LED, or just a single LED.
*/
#if defined(HAVE_3_LEDS)
#define LED_0_STATE (1 << 0)<