ChibiOS/NIL  3.2.2
nil_system Struct Reference

System data structure. More...

#include <ch.h>

Collaboration diagram for nil_system:
Collaboration graph

Data Fields

thread_tcurrent
 Pointer to the running thread. More...
 
thread_tnext
 Pointer to the next thread to be executed. More...
 
volatile systime_t systime
 System time. More...
 
systime_t lasttime
 System time of the last tick event. More...
 
systime_t nexttime
 Time of the next scheduled tick event. More...
 
cnt_t isr_cnt
 ISR nesting level. More...
 
cnt_t lock_cnt
 Lock nesting level. More...
 
const char *volatile dbg_panic_msg
 Panic message. More...
 
thread_t threads [CH_CFG_NUM_THREADS+1]
 Thread structures for all the defined threads. More...
 

Detailed Description

System data structure.

Note
This structure contain all the data areas used by the OS except stacks.

Definition at line 665 of file ch.h.

Field Documentation

thread_t* nil_system::current
thread_t* nil_system::next

Pointer to the next thread to be executed.

Note
This pointer must point at the same thread pointed by current or to an higher priority thread if a switch is required.

Definition at line 675 of file ch.h.

Referenced by chSchDoReschedule(), chSchGoSleepTimeoutS(), chSchReadyI(), and chSysInit().

volatile systime_t nil_system::systime

System time.

Definition at line 680 of file ch.h.

Referenced by chSysTimerHandlerI().

systime_t nil_system::lasttime

System time of the last tick event.

Definition at line 686 of file ch.h.

Referenced by chSchGoSleepTimeoutS(), and chSysTimerHandlerI().

systime_t nil_system::nexttime

Time of the next scheduled tick event.

Definition at line 690 of file ch.h.

Referenced by chSchGoSleepTimeoutS(), and chSysTimerHandlerI().

const char* volatile nil_system::dbg_panic_msg

Panic message.

Note
This field is only present if some debug options have been activated.
Accesses to this pointer must never be optimized out so the field itself is declared volatile.

Definition at line 710 of file ch.h.

Referenced by chSysHalt().

thread_t nil_system::threads[CH_CFG_NUM_THREADS+1]

Thread structures for all the defined threads.

Definition at line 715 of file ch.h.

Referenced by chSchDoReschedule(), chSchGoSleepTimeoutS(), chSchReadyI(), chSysInit(), chSysTimerHandlerI(), nil_find_thread(), and nil_ready_all().