From: 罗正 <1732036298@qq.com> Date: Wed, 11 Dec 2024 12:52:54 +0000 (+0000) Subject: 修复解绑黑屏 X-Git-Tag: v1.3.113-repair_tp~155^2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0235c59d69e930398c7a75f40d3ebf93f3b16985;p=mirrors%2FFD230.git 修复解绑黑屏 thread main 函数开始将gpio34设置为不使能,鸿蒙os启动后使能gpio34,解决因串口中断导致osmain死机问题 - thread main 函数开始将gpio34设置为不使能,鸿蒙os启动后使能gpio34 --- diff --git a/code/sdk/application/brandy/brandy_standard/thread_pri_init.c b/code/sdk/application/brandy/brandy_standard/thread_pri_init.c index aa4391fdc..e915f6e3e 100755 --- a/code/sdk/application/brandy/brandy_standard/thread_pri_init.c +++ b/code/sdk/application/brandy/brandy_standard/thread_pri_init.c @@ -43,6 +43,8 @@ #include "soc_uapi_audio_sys.h" #include "soc_uapi_vendor.h" #include "soc_uapi_sound.h" +#include "gpio.h" +#include "pinctrl.h" /* Audio codec vendor select according to hardware connection: * define AUDIO_SMARTPA_AW88166 : macro to init smartpa aw88166; * define AUDIO_SMARTPA_AW88166_I2S_ID UAPI_SND_OUT_PORT_I2S0 : macro to specify i2s id connecting to smartpa aw88166; @@ -369,7 +371,9 @@ static void thread_main(const void *unused) { PRINT("thread_main start "NEWLINE); unused(unused); - +#ifdef FD230 + uapi_pin_set_ie(S_MGPIO34, HAL_PIO_IE_DISABLE); +#endif rc_calibration_func_notify(); bt_acore_btc_ipc_receive_init(); uapi_pm_control(PM_BT_POWER_UP_AND_RUN); @@ -519,6 +523,11 @@ uapi_pm_remove_sleep_veto(PM_ID_DEBUG); #ifdef SUPPORT_A5133_SERVICE uapi_a5133_service_init(); #endif + +#ifdef FD230 + uapi_pin_set_ie(S_MGPIO34, HAL_PIO_IE_ENBALE); +#endif + #ifdef SUPPORT_AT_OHOSFWK //开始播放开机动画,并启动ohos系统 ohos_startup();