thread main 函数开始将gpio34设置为不使能,鸿蒙os启动后使能gpio34 1509/1 1509/head
authorluozheng <1732036298@qq.com>
Tue, 10 Dec 2024 13:21:05 +0000 (21:21 +0800)
committerluozheng <1732036298@qq.com>
Tue, 10 Dec 2024 13:21:05 +0000 (21:21 +0800)
code/sdk/application/brandy/brandy_standard/thread_pri_init.c

index aa4391f..e915f6e 100755 (executable)
@@ -43,6 +43,8 @@
 #include "soc_uapi_audio_sys.h"\r
 #include "soc_uapi_vendor.h"\r
 #include "soc_uapi_sound.h"\r
+#include "gpio.h"\r
+#include "pinctrl.h"\r
 /* Audio codec vendor select according to hardware connection:\r
  * define AUDIO_SMARTPA_AW88166 : macro to init smartpa aw88166;\r
  * define AUDIO_SMARTPA_AW88166_I2S_ID UAPI_SND_OUT_PORT_I2S0 : macro to specify i2s id connecting to smartpa aw88166;\r
@@ -369,7 +371,9 @@ static void thread_main(const void *unused)
 {\r
     PRINT("thread_main start "NEWLINE);\r
     unused(unused);\r
-\r
+#ifdef FD230\r
+    uapi_pin_set_ie(S_MGPIO34, HAL_PIO_IE_DISABLE);\r
+#endif\r
     rc_calibration_func_notify();\r
     bt_acore_btc_ipc_receive_init();\r
     uapi_pm_control(PM_BT_POWER_UP_AND_RUN);\r
@@ -519,6 +523,11 @@ uapi_pm_remove_sleep_veto(PM_ID_DEBUG);
 #ifdef SUPPORT_A5133_SERVICE\r
     uapi_a5133_service_init();\r
 #endif\r
+\r
+#ifdef FD230\r
+    uapi_pin_set_ie(S_MGPIO34, HAL_PIO_IE_ENBALE);\r
+#endif\r
+\r
 #ifdef SUPPORT_AT_OHOSFWK\r
     //开始播放开机动画,并启动ohos系统\r
     ohos_startup();\r