1
0
Fork 0
forked from nuttx/nuttx-update

Fix up some naming and update some comments.

This commit is contained in:
Gregory Nutt 2016-11-17 15:50:39 -06:00
parent 558f4049d4
commit 9acd57c819
2 changed files with 6 additions and 7 deletions

View file

@ -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;
}

View file

@ -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.
*/