QCC系列充电LED有问题修复

针对QCC系列设备在充电时LED显示异常的问题,本文档详细介绍了修复过程,包括调整LED的优先级,旨在确保正确指示设备状态。
摘要由CSDN通过智能技术生成

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)<
  • 14
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值