ZhuMingxun

Results 1 comments of ZhuMingxun

> * 定时器是面向HWTIMER设备的,所以就不讨论定时器ARR了,只讨论时间 > * canfestival 中 `getElapsedTime` 的注释是Get the time elapsed since latest timer occurence,就是上次定时器触发到现在的时间,所以 getElapsedTime 不包含两次 SetAlarm 之间的时间 > * rt_device_read 读取 HWTIMER 读到的是“自定时器开始 (rt_device_write) 之后的运行时” 也就是说,如果在定时器中断触发前,多次调用SetAlarm,会导致getElapsedTime的值不是真正的 ”上次定时器触发到现在的时间“,而是最近一次SetAlarm到现在的时间,不包含两次...