出错是因为你当前运行的文件调用到了core_cm3.h,而core_cm3.h文件中包含了有IRQn_Type类型名,但是此类型名是在“stm32f10x.h”中定义的,所以你需要在当前文件包含#include "core_cm3.h"之前先包含#include "stm32f10x.h"
记住,两个头文件如果顺序错误也会报错

#include "stm32f10x.h"
#include "core_cm3.h"

相关文章:

  • 2022-12-23
  • 2021-09-11
  • 2021-12-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-08
  • 2021-11-07
  • 2021-07-23
  • 2021-07-25
  • 2021-07-18
相关资源
相似解决方案