summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/clockimpl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/include/rtems/rtems/*.h: Change license to BSD-2Joel Sherrill2022-02-281-3/+22
| | | | Updates #3053.
* rtems: Add TOD_Ticks_validationSebastian Huber2021-05-141-12/+19
| | | | | | Replace defines with an enum. Update #4406.
* rtems: Constify rtems_task_wake_when()Sebastian Huber2021-05-121-5/+20
| | | | | | | | | | | | | | | | Add a parameter to _TOD_Validate() to disable the validation of the ticks member. There are two reasons for this change. Firstly, in rtems_task_wake_when() was a double check for time_buffer == NULL (one in rtems_task_wake_when() and one in _TOD_Validate()). Secondly, the ticks member is ignored by rtems_task_wake_when(). This was done with a write of zero to the ticks member and thus a modification of the user-provided structure. Now the structure is no longer modified. Using a mask parameter is quite efficient. You just have to load an immediate value and there are no additional branches in _TOD_Validate(). Close #4406.
* _TOD_Validate(): Fix incorrect return codeFrank Kühndel2021-05-121-7/+7
| | | | | | | | | | | | | | | This patch fixes bug #4403. Directives * rtems_timer_fire_when() * rtems_timer_server_fire_when() * rtems_task_wake_when() are documented to return RTEMS_INVALID_ADDRESS when their time-of-day argument is NULL. But actually they return RTEMS_INVALID_CLOCK. To fix the issue this patch changes _TOD_Validate() to return a status code instead of just true/false. Close #4403
* rtems: Canonicalize Doxygen @file commentsSebastian Huber2020-12-021-2/+2
| | | | | | Use common phrases for the file brief descriptions. Update #3706.
* rtems: Add <rtems/rtems/clockimpl.h>Sebastian Huber2020-12-021-0/+73