From b150690b6ebe42a4ffd50278d761b8994121eb94 Mon Sep 17 00:00:00 2001 From: tao_z <tzj0429@163.com> Date: Mon, 14 Jun 2021 22:18:45 +0800 Subject: [PATCH] 添加霍尔外部中断 motot模块初次提交尚未调试 --- USR/SRC/gd32e23x_it.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/USR/SRC/gd32e23x_it.c b/USR/SRC/gd32e23x_it.c index 197b2d2..441dd97 100644 --- a/USR/SRC/gd32e23x_it.c +++ b/USR/SRC/gd32e23x_it.c @@ -35,6 +35,7 @@ */ #include "gd32e23x_it.h" +#include "motor.h" /*! \brief this function handles NMI exception @@ -142,3 +143,13 @@ { delay_decrement(); } +/*! + \brief this function handles EXTI4-15 exception + \param[in] none + \param[out] none + \retval none +*/ +void EXTI4_15_IRQHandler(void) +{ + HAL_HallExti_TriggerCallback(); +} -- Gitblit v1.8.0