generated from hulk/gd32e23x_template_cmake_vscode
fix project
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user