Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
9acd57c8
Commit
9acd57c8
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix up some naming and update some comments.
parent
558f4049
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/timers/timer.c
+5
-6
5 additions, 6 deletions
drivers/timers/timer.c
sched/irq/irq_csection.c
+1
-1
1 addition, 1 deletion
sched/irq/irq_csection.c
with
6 additions
and
7 deletions
drivers/timers/timer.c
+
5
−
6
View file @
9acd57c8
...
...
@@ -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
new
callback
,
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
,
new
callback
,
arg
);
lower
->
ops
->
setcallback
(
lower
,
callback
,
arg
);
return
OK
;
}
...
...
This diff is collapsed.
Click to expand it.
sched/irq/irq_csection.c
+
1
−
1
View file @
9acd57c8
...
...
@@ -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.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment