add more comments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user