今天整个RTT在板上跑跑,开发环境是Keil,挺方便使用led_demo
pack中安装好rtt后,直接勾上就可以
编译一下,有三个错误,均是未定义
分别是时钟配置和字符获取,全局搜索下
找到需要的类型
- // Updates the variable SystemCoreClock and must be called
- // whenever the core clock is changed during program execution.
- extern void SystemCoreClockUpdate(void);
- // Holds the system core clock, which is the system clock
- // frequency supplied to the SysTick timer and the processor
- // core clock.
- extern uint32_t SystemCoreClock;
|