解决YX Audio 卡死的问题
Change-Id: I3b26fd9f8b7bf0200ba1fcf41e4dcf9a46145b6e
diff --git a/mbtk/mbtk_lib/src/mbtk_gpio.c b/mbtk/mbtk_lib/src/mbtk_gpio.c
index 9e562a9..18d216d 100755
--- a/mbtk/mbtk_lib/src/mbtk_gpio.c
+++ b/mbtk/mbtk_lib/src/mbtk_gpio.c
@@ -1061,7 +1061,7 @@
}
gpio_register_set_direction(port, 1); //设方向为输出
ret = gpio_register_get_value(port);
- printf("gpio default value is : %d.\n", ret);
+ //printf("gpio default value is : %d.\n", ret);
//[High]
@@ -1069,7 +1069,7 @@
gpio_register_set_value(port, 1);
usleep(50);
valueh = gpio_register_get_value(port);
- printf("set high? %d\n",valueh);
+ //printf("set high? %d\n",valueh);
if(1 == valueh){
break;
}
@@ -1082,7 +1082,7 @@
break;
}
}
- printf("******gpio should is high: %d.******\n", ret);
+ //printf("******gpio should is high: %d.******\n", ret);
if(1 != ret){
ret=-1;
goto exit;
@@ -1096,7 +1096,7 @@
gpio_register_set_value(port, 0); //输出低
usleep(50);
valuel = gpio_register_get_value(port);
- printf("set low? %d\n",valuel);
+ //printf("set low? %d\n",valuel);
if(0 == valuel){
break;
}
@@ -1109,7 +1109,7 @@
break;
}
}
- printf("******gpio should is low: %d.******\n", ret);
+ //printf("******gpio should is low: %d.******\n", ret);
if(0 != ret){
ret=-1;
goto exit;
@@ -1144,7 +1144,7 @@
gpio_register_set_value(port, 1);
usleep(50);
valueh = gpio_register_get_value(port);
- printf("set high? %d\n",valueh);
+ //printf("set high? %d\n",valueh);
if(1 == valueh){
break;
}
@@ -1161,7 +1161,7 @@
ret=-1;
goto exit;
}
- printf("******gpio should is high: %d.******\n", ret);
+ //printf("******gpio should is high: %d.******\n", ret);
//[Low]
@@ -1170,7 +1170,7 @@
gpio_register_set_value(port, 0); //输出低
usleep(50);
valuel = gpio_register_get_value(port);
- printf("set low? %d\n",valuel);
+ //printf("set low? %d\n",valuel);
if(0 == valuel){
break;
}
@@ -1183,7 +1183,7 @@
break;
}
}
- printf("******gpio should is low: %d.******\n", ret);
+ //printf("******gpio should is low: %d.******\n", ret);
if(0 != ret){
ret=-1;
goto exit;
@@ -1385,7 +1385,7 @@
fail_io[n] = test_gpio_0[i];
n++;
}else{
- printf("############gpio [%d] test success############\n", test_gpio_0[i]);
+ //printf("############gpio [%d] test success############\n", test_gpio_0[i]);
}
}
@@ -1397,7 +1397,7 @@
fail_io[n] = test_gpio_1[i];
n++;
}else{
- printf("############gpio [%d] test success############\n", test_gpio_1[i]);
+ //printf("############gpio [%d] test success############\n", test_gpio_1[i]);
}
}
@@ -1405,7 +1405,7 @@
for(i = 0; i < total_2; i=i+2){
ret_2 = gpio_register_test_out_2(test_gpio_2[i], test_gpio_2[i+1], 0);
if(-1 == ret_2){
- printf("!!!!!!!!!!!!gpio [%d] test failed!!!!!!!!!!!!\n", test_gpio_2[i+1]);
+ //printf("!!!!!!!!!!!!gpio [%d] test failed!!!!!!!!!!!!\n", test_gpio_2[i+1]);
fail_io[n] = test_gpio_2[i];
n++;
}else{