add more comments

This commit is contained in:
wmano
2025-11-18 00:40:02 +08:00
parent 9b3e035b75
commit 7e463e56ad
48 changed files with 2334 additions and 497 deletions
@@ -318,6 +318,14 @@ static rt_err_t rt_hwtimer_control(struct rt_device *dev, int cmd, void *args)
rt_hw_interrupt_enable(level);
}
break;
case HWTIMER_CTRL_COUNT_GET:
{
if (timer->ops->count_get != RT_NULL) {
rt_uint32_t cnt = timer->ops->count_get(timer);
*(rt_uint32_t *)args = cnt;
}
}
break;
default:
{
if (timer->ops->control != RT_NULL)