From 7ffb8c061205d055b3310c4be526d1052ab5ba20 Mon Sep 17 00:00:00 2001 From: yelvlab Date: Wed, 8 Jan 2025 17:16:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F=E7=9A=84?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E4=BD=8D=E7=BD=AE=E5=92=8C=E4=BF=AE=E9=A5=B0?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gd32e23x_it.c | 2 +- src/main.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gd32e23x_it.c b/src/gd32e23x_it.c index acc74b7..0bfcec3 100644 --- a/src/gd32e23x_it.c +++ b/src/gd32e23x_it.c @@ -34,7 +34,7 @@ OF SUCH DAMAGE. #include "gd32e23x_it.h" -__IO uint16_t g_capture_value; +extern uint16_t g_capture_value; /*! \brief this function handles NMI exception diff --git a/src/main.c b/src/main.c index 78a7a2c..023f270 100644 --- a/src/main.c +++ b/src/main.c @@ -7,9 +7,7 @@ #include "main.h" volatile uint8_t g_temperature_uint8[2] = {0}; - -extern uint16_t g_capture_value; -uint16_t g_distance_uint16; +volatile uint16_t g_capture_value; /*! \brief main function