20251009 AI键开机问题
authorcheng.chen <cheng.chen@raisound.com>
Thu, 9 Oct 2025 07:17:07 +0000 (15:17 +0800)
committercheng.chen <cheng.chen@raisound.com>
Thu, 9 Oct 2025 07:17:14 +0000 (15:17 +0800)
2.code/aicos/projects/banyan/ap/gx306l_h3_d_sms_aichat/config/aos_config.c

index 7279d99..e806542 100644 (file)
@@ -177,3 +177,20 @@ u32 get_thread_config_tbl_idx(aos_thread_id thread_id)
     return AOS_ERROR;
 }
 
+#include "aic_init.h"
+#include "gpio_inc.h"
+#include "sysoff.h"
+
+static void agpio_0_deinit(void *p){
+
+    aic_gpio_input(GPIO_AGPIO_0, GPIO_INPUT_NOINT, NULL, NULL);
+}
+
+int agpio_deinit(void)
+{
+    sysoff_register_hook(agpio_0_deinit, NULL);
+
+    return 0;
+}
+
+AIC_DRV_L2_INIT_EXPORT(agpio_deinit);
\ No newline at end of file