需要用到硬件定时器,想用ENV配置一个硬件定时器驱动配置了定时器2
menuconfig BSP_USING_TIM
bool "Enable timer"
default n
select RT_USING_HWTIMER
if BSP_USING_TIM
config BSP_USING_TIM13
bool " Enable TIM13"
default n
config BSP_USING_TIM2
bool " Enable TIM2"
default n
endif
scons生成了文件之后发现drv_hwtimer.c文件中
libraries\HAL_Drivers\drv_hwtimer.c(95): error: #20: identifier "TIM2_CONFIG" is undefined