From 1a4ea70147216f586f1341d4f1981733ed2c203c Mon Sep 17 00:00:00 2001
From: tao_z <tzj0429@163.com>
Date: Sat, 03 Jul 2021 21:41:30 +0800
Subject: [PATCH] 采用三个外部中断触发

---
 USR/SRC/Clock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/USR/SRC/Clock.c b/USR/SRC/Clock.c
index 3f842de..3b3e58e 100644
--- a/USR/SRC/Clock.c
+++ b/USR/SRC/Clock.c
@@ -16,7 +16,7 @@
     rcu_ahb_clock_config(RCU_AHB_CKSYS_DIV1);             //AHB 48M
     rcu_apb1_clock_config(RCU_APB1_CKAHB_DIV1);           //APB1 48M
     rcu_apb2_clock_config(RCU_APB2_CKAHB_DIV1);           //APB2 48M
-    rcu_adc_clock_config(RCU_ADCCK_APB2_DIV4);            //max 14M,current:12M
+    rcu_adc_clock_config(RCU_ADCCK_APB2_DIV4);            //max 14M,current:48/4=12M
     rcu_usart_clock_config(RCU_USART0SRC_IRC8M);          //USART0 8M
     rcu_rtc_clock_config(RCU_RTCSRC_NONE);
 
@@ -38,7 +38,7 @@
             ;
     }
     /* configure the systick handler priority */
-    NVIC_SetPriority(SysTick_IRQn, 0x00);
+    NVIC_SetPriority(SysTick_IRQn, 0x01);
 }
 
 /*!

--
Gitblit v1.8.0