[英]STM32 interrupt handler multiply defined
I want to use interrupt handlers 我想使用中断处理程序
void EXTI3_IRQHandler(void)
{
//body
}
but when I build the project, I get the following error: 但是在构建项目时,出现以下错误:
Symbol
EXTI3_IRQHandler
multiply defined (by stm32f10x_it.o and main.o) 符号EXTI3_IRQHandler
乘以定义(由stm32f10x_it.o和main.o定义)
I have included library stm32f10x_exti.h 我已包含库stm32f10x_exti.h
Handler void EXTI3_IRQHandler(void)
already defined in file stm32f10x_it.c
. 文件stm32f10x_it.c
已定义的处理程序void EXTI3_IRQHandler(void)
。 You can replace code of your handler from main.c
to this special file or comment blank handler in stm32f10x_it.c
. 您可以将处理程序的代码从main.c
替换为这个特殊文件,或者在stm32f10x_it.c
注释空白处理程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.