1. 錯誤信息:..\Libraries\CMSIS\core_cm3.h(1502): error: #20: identifier "IRQn_Type" is undefined
2. 解決方法:
在編寫的bsp_systick.h中添加#include "stm32f10x.h",且必須添加在#include "core_cm3.h"之前。
3. 問題原因主要是在使用IRQn_Type 是在stm32f10.h中定義的,如果要使用必須要包含該函數,否則提示未定義。