fix project

This commit is contained in:
2025-08-19 23:43:13 +08:00
parent 2fd64ad378
commit 9ce0323afe
4 changed files with 13 additions and 13 deletions

View File

@@ -39,8 +39,6 @@ OF SUCH DAMAGE.
#include "led.h"
#include "ultrasonic_analog.h"
extern uint16_t g_capture_value;
/*!
\brief this function handles NMI exception
\param[in] none
@@ -147,7 +145,7 @@ void EXTI0_1_IRQHandler(void) {
if (exti_interrupt_flag_get(US_RX_GPIO_EXTI) == SET)
{
exti_interrupt_flag_clear(US_RX_GPIO_EXTI);
g_capture_value = timer_channel_capture_value_register_read(US_ECHO_TIMER, US_ECHO_CH);
// g_capture_value = timer_channel_capture_value_register_read(US_ECHO_TIMER, US_ECHO_CH);
timer_disable(US_ECHO_TIMER);
exti_interrupt_disable(US_RX_GPIO_EXTI);