include/nuttx: fix style issues in sched.h
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
af292daf2b
commit
6a28807cb2
|
@ -285,10 +285,10 @@ typedef CODE void (*starthook_t)(FAR void *arg);
|
|||
struct sporadic_s;
|
||||
struct replenishment_s
|
||||
{
|
||||
FAR struct tcb_s *tcb; /* The parent TCB structure */
|
||||
struct wdog_s timer; /* Timer dedicated to this interval */
|
||||
uint32_t budget; /* Current budget time */
|
||||
uint8_t flags; /* See SPORADIC_FLAG_* definitions */
|
||||
FAR struct tcb_s *tcb; /* The parent TCB structure */
|
||||
struct wdog_s timer; /* Timer dedicated to this interval */
|
||||
uint32_t budget; /* Current budget time */
|
||||
uint8_t flags; /* See SPORADIC_FLAG_* definitions */
|
||||
};
|
||||
|
||||
/* This structure is an allocated "plug-in" to the main TCB structure. It is
|
||||
|
@ -300,14 +300,14 @@ struct replenishment_s
|
|||
|
||||
struct sporadic_s
|
||||
{
|
||||
bool suspended; /* Thread is currently suspended */
|
||||
uint8_t hi_priority; /* Sporadic high priority */
|
||||
uint8_t low_priority; /* Sporadic low priority */
|
||||
uint8_t max_repl; /* Maximum number of replenishments */
|
||||
uint8_t nrepls; /* Number of active replenishments */
|
||||
uint32_t repl_period; /* Sporadic replenishment period */
|
||||
uint32_t budget; /* Sporadic execution budget period */
|
||||
clock_t eventtime; /* Time thread suspended or [re-]started */
|
||||
bool suspended; /* Thread is currently suspended */
|
||||
uint8_t hi_priority; /* Sporadic high priority */
|
||||
uint8_t low_priority; /* Sporadic low priority */
|
||||
uint8_t max_repl; /* Maximum number of replenishments */
|
||||
uint8_t nrepls; /* Number of active replenishments */
|
||||
uint32_t repl_period; /* Sporadic replenishment period */
|
||||
uint32_t budget; /* Sporadic execution budget period */
|
||||
clock_t eventtime; /* Time thread suspended or [re-]started */
|
||||
|
||||
/* This is the last interval timer activated */
|
||||
|
||||
|
@ -332,9 +332,9 @@ struct child_status_s
|
|||
{
|
||||
FAR struct child_status_s *flink;
|
||||
|
||||
uint8_t ch_flags; /* Child status: See CHILD_FLAG_* defns */
|
||||
pid_t ch_pid; /* Child task ID */
|
||||
int ch_status; /* Child exit status */
|
||||
uint8_t ch_flags; /* Child status: See CHILD_FLAG_* defines */
|
||||
pid_t ch_pid; /* Child task ID */
|
||||
int ch_status; /* Child exit status */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -371,14 +371,14 @@ struct dspace_s
|
|||
|
||||
struct stackinfo_s
|
||||
{
|
||||
size_t adj_stack_size; /* Stack size after adjustment */
|
||||
/* for hardware, processor, etc. */
|
||||
/* (for debug purposes only) */
|
||||
FAR void *stack_alloc_ptr; /* Pointer to allocated stack */
|
||||
/* Needed to deallocate stack */
|
||||
FAR void *stack_base_ptr; /* Adjusted initial stack pointer */
|
||||
/* after the frame has been removed */
|
||||
/* from the stack. */
|
||||
size_t adj_stack_size; /* Stack size after adjustment */
|
||||
/* for hardware, processor, etc. */
|
||||
/* (for debug purposes only) */
|
||||
FAR void *stack_alloc_ptr; /* Pointer to allocated stack */
|
||||
/* Needed to deallocate stack */
|
||||
FAR void *stack_base_ptr; /* Adjusted initial stack pointer */
|
||||
/* after the frame has been removed */
|
||||
/* from the stack. */
|
||||
};
|
||||
|
||||
/* struct task_group_s ******************************************************/
|
||||
|
@ -539,13 +539,13 @@ struct tcb_s
|
|||
|
||||
/* Task Group *************************************************************/
|
||||
|
||||
FAR struct task_group_s *group; /* Pointer to shared task group data */
|
||||
FAR struct task_group_s *group; /* Pointer to shared task group data */
|
||||
|
||||
/* Address Environment ****************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_ADDRENV
|
||||
FAR struct addrenv_s *addrenv_own; /* Task (group) own memory mappings */
|
||||
FAR struct addrenv_s *addrenv_curr; /* Current active memory mappings */
|
||||
FAR struct addrenv_s *addrenv_own; /* Task (group) own memory mappings */
|
||||
FAR struct addrenv_s *addrenv_curr; /* Current active memory mappings */
|
||||
#endif
|
||||
|
||||
/* Task Management Fields *************************************************/
|
||||
|
@ -603,7 +603,7 @@ struct tcb_s
|
|||
/* External Module Support ************************************************/
|
||||
|
||||
#ifdef CONFIG_PIC
|
||||
FAR struct dspace_s *dspace; /* Allocated area for .bss and .data */
|
||||
FAR struct dspace_s *dspace; /* Allocated area for .bss and .data */
|
||||
#endif
|
||||
|
||||
/* POSIX Semaphore and Message Queue Control Fields ***********************/
|
||||
|
@ -727,7 +727,7 @@ begin_packed_struct struct tcbinfo_s
|
|||
* https://sourceware.org/gdb/current/onlinedocs/gdb/ARM-Features.html
|
||||
* https://sourceware.org/gdb/current/onlinedocs/gdb/RISC_002dV-Features
|
||||
* -.html
|
||||
* value UINT16_MAX: This regsiter was not priovided by NuttX
|
||||
* value UINT16_MAX: This register was not provided by NuttX
|
||||
*/
|
||||
|
||||
begin_packed_struct
|
||||
|
|
Loading…
Reference in New Issue