From: luozheng <1732036298@qq.com> Date: Tue, 10 Dec 2024 13:21:05 +0000 (+0800) Subject: thread main 函数开始将gpio34设置为不使能,鸿蒙os启动后使能gpio34 X-Git-Tag: v1.3.113-repair_tp~143^2~7 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1509%2F1;p=mirrors%2FFD230.git 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();