Skip to content
Snippets Groups Projects
Commit 9acd57c8 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix up some naming and update some comments.

parent 558f4049
No related branches found
No related tags found
No related merge requests found
......@@ -550,17 +550,16 @@ void timer_unregister(FAR void *handle)
* and may NOT be used by appliction code.
*
* Input parameters:
* handle - This is the handle that was returned by timer_register()
* newcallback - The new timer interrupt callback
* oldcallback - The previous timer interrupt callback (if any)
* arg - Argument to be provided with the callback
* handle - This is the handle that was returned by timer_register()
* callback - The new timer interrupt callback
* arg - Argument to be provided with the callback
*
* Returned Value:
* None
*
****************************************************************************/
int timer_setcallback(FAR void *handle, tccb_t newcallback, FAR void *arg)
int timer_setcallback(FAR void *handle, tccb_t callback, FAR void *arg)
{
FAR struct timer_upperhalf_s *upper;
FAR struct timer_lowerhalf_s *lower;
......@@ -578,7 +577,7 @@ int timer_setcallback(FAR void *handle, tccb_t newcallback, FAR void *arg)
{
/* Yes.. Defer the hander attachment to the lower half driver */
lower->ops->setcallback(lower, newcallback, arg);
lower->ops->setcallback(lower, callback, arg);
return OK;
}
......
......@@ -164,7 +164,7 @@ irqstate_t enter_critical_section(void)
}
else
{
/* First call enter_critical_section. Test assumptions, then
/* First call to enter_critical_section. Test assumptions, then
* wait until we have the lock.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment