Skip to content

Commit

Permalink
kernel/os_callout: Remove doxygen comments from the source file
Browse files Browse the repository at this point in the history
Moves documentation entries to the header file.
  • Loading branch information
wpiet authored and sjanc committed Jun 28, 2024
1 parent 0951972 commit 0b2a79c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
15 changes: 15 additions & 0 deletions kernel/os/include/os/os_callout.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,22 @@ os_callout_queued(struct os_callout *c)
* @cond INTERNAL_HIDDEN
*/

/**
* This function is called by the OS in the time tick. It searches the list
* of callouts, and sees if any of them are ready to run. If they are ready
* to run, it posts an event for each callout that's ready to run,
* to the event queue provided to os_callout_init().
*/
void os_callout_tick(void);

/**
* Returns the number of ticks to the first pending callout. If there are no
* pending callouts then return OS_TIMEOUT_NEVER instead.
*
* @param now The time now
*
* @return Number of ticks to first pending callout
*/
os_time_t os_callout_wakeup_ticks(os_time_t now);

/**
Expand Down
14 changes: 0 additions & 14 deletions kernel/os/src/os_callout.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ os_callout_reset(struct os_callout *c, os_time_t ticks)
}


/**
* This function is called by the OS in the time tick. It searches the list
* of callouts, and sees if any of them are ready to run. If they are ready
* to run, it posts an event for each callout that's ready to run,
* to the event queue provided to os_callout_init().
*/
void
os_callout_tick(void)
{
Expand Down Expand Up @@ -158,14 +152,6 @@ os_callout_tick(void)
os_trace_api_ret(OS_TRACE_ID_CALLOUT_TICK);
}

/*
* Returns the number of ticks to the first pending callout. If there are no
* pending callouts then return OS_TIMEOUT_NEVER instead.
*
* @param now The time now
*
* @return Number of ticks to first pending callout
*/
os_time_t
os_callout_wakeup_ticks(os_time_t now)
{
Expand Down

0 comments on commit 0b2a79c

Please sign in to comment.