فهرست منبع

set i2c clk 120k after resume

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 5 سال پیش
والد
کامیت
ba4fe02741
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      Application/bsp/mcu_power_sleep.c

+ 3 - 3
Application/bsp/mcu_power_sleep.c

@@ -27,7 +27,7 @@ uint32_t get_system_sleep_time(void){
 static void enable_wakeup_irq(void){
 	charger_detect_irq_enable(1);
 	hall_1_detect_irq_enable(1);
-	//hall_2_detect_irq_enable(1);
+	hall_2_detect_irq_enable(1);
 	shark_rtc_start_alarm(RTC_ALARM_FOR_SLEEP);
 }
 
@@ -35,7 +35,7 @@ static void disable_wakeup_irq(void){
 	shark_rtc_stop_alarm();
 	charger_detect_irq_enable(0);
 	hall_1_detect_irq_enable(0);
-	//hall_2_detect_irq_enable(0);
+	hall_2_detect_irq_enable(0);
 }
 
 
@@ -79,7 +79,7 @@ static void post_deepsleep(void){
 	shark_uart_init(SHARK_UART0);
 	shark_uart_init(SHARK_UART1);
 
-	gd32_i2c_init(0, 100* 1000);
+	gd32_i2c_init(0, 120* 1000);
 	adc_init();
 	wdog_set_timeout(4);
 	current_calibrate();