魔盒最新版本,更新了充电检测,鸟叫,dp4对声音的控制,声音模块由于硬件问题暂未实测

This commit is contained in:
2026-09-09 15:32:50 +08:00
parent 3ab37b7845
commit b576f31113
22 changed files with 871 additions and 528 deletions
+3 -3
View File
@@ -735,8 +735,7 @@ struct port_wakeup port0 = {
};
#if BOARD_CHG_ENABLE
/* R18 is not fitted on CBC4, so VBUS never reaches VPWR in softoff. Wake on
* the fitted ME4054 CHG_ON signal instead; it falls when charging starts. */
/* TP4056 CHRG falls when charging starts; use it for softoff charge wake. */
struct port_wakeup board_chg_wakeup_port = {
.pullup_down_enable = ENABLE,
.edge = FALLING_EDGE,
@@ -1001,8 +1000,9 @@ void board_set_soft_poweroff(void)
soff_gpio_protect(TCFG_IOKEY_POWER_ONE_PORT);
#endif
#if BOARD_CHG_ENABLE
/* Preserve PG8 input state and its external pull-up for softoff wake. */
/* Preserve both TP4056 open-drain inputs and their pull-ups in softoff. */
soff_gpio_protect(BOARD_CHG_PIN);
soff_gpio_protect(BOARD_STDBY_PIN);
#endif
#if (!(TCFG_LP_TOUCH_KEY_ENABLE && TCFG_LP_TOUCH_KEY1_EN))
File diff suppressed because it is too large Load Diff