This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335驱动定时器程序 如何做到us级别??

现在内核中配置的HZ是从100到1000之间,也就是一个tick是10ms-1ms,利用

init_timer(&my_dev->my_timer);
 (my_dev->my_timer).expires = jiffies + HZ;
 (my_dev->my_timer).function = timer_func;
 add_timer(&my_dev->my_timer);

这种方式来产生定时器功能不能满足现在设备的需求,

有没有办法在驱动中实现us级的定时器,之前像三星2440等都可以通过配置寄存器来实现,不知道ti里面是怎么实现的?