GPTimer 配置
4 Dec 2024
Read time: 1 minute(s)
在 Luban-Lite 根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,选择需要打开的 GPTimer。
以下输出示例中,配置只打开了
GPTimer0:
Board options --->
[*] Using GPTIMER0
[ ] Using GPTIMER1
[ ] Using GPTIMER2
[ ] Using GPTIMER3
[ ] Using GPTIMER4
[ ] Using GPTIMER5
[ ] Using GPTIMER6
[ ] Using GPTIMER7
[ ] Using GPTIMER8
[ ] Using GPTIMER9如需使用 RT-Thread 内核,还需要在 menuconfig 界面中打开 hwtimer 设备驱动框架:
GPTimer 驱动需要依赖 RT-Thread 的 hwtimer 设备驱动框架。打开 hwtimer 设备驱动框架的输出示例如下:
Rt-Thread options --->
RT-Thread Components --->
Device Drivers --->
[*] Using hardware timer device drivers
提示:
为了简化使用,Using GPTimerx 会自动打开 RT-Thread 的 hwtimer 设备驱动框架。
