ChibiOS  21.6.0
chsys.c File Reference

System related code. More...

#include "ch.h"

Go to the source code of this file.

Functions

static CH_SYS_CORE0_MEMORY THD_WORKING_AREA (ch_c0_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE)
 Working area for core 0 idle thread. More...
 
static CH_SYS_CORE1_MEMORY THD_WORKING_AREA (ch_c1_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE)
 Working area for core 1 idle thread. More...
 
void chSysWaitSystemState (system_state_t state)
 Waits for the system state to be equal to the specified one. More...
 
void chSysInit (void)
 System initialization. More...
 
void chSysHalt (const char *reason)
 Halts the system. More...
 
bool chSysIntegrityCheckI (unsigned testmask)
 System integrity check. More...
 
void chSysTimerHandlerI (void)
 Handles time ticks for round robin preemption and timer increments. More...
 
syssts_t chSysGetStatusAndLockX (void)
 Returns the execution status and enters a critical zone. More...
 
void chSysRestoreStatusX (syssts_t sts)
 Restores the specified execution status and leaves a critical zone. More...
 
bool chSysIsCounterWithinX (rtcnt_t cnt, rtcnt_t start, rtcnt_t end)
 Realtime window test. More...
 
void chSysPolledDelayX (rtcnt_t cycles)
 Polled delay. More...
 

Variables

ch_system_t ch_system
 System root object. More...
 
CH_SYS_CORE0_MEMORY os_instance_t ch0
 Core 0 OS instance. More...
 
const os_instance_config_t ch_core0_cfg
 Core 0 OS instance configuration. More...
 
CH_SYS_CORE1_MEMORY os_instance_t ch1
 Core 1 OS instance. More...
 
const os_instance_config_t ch_core1_cfg
 Core 1 OS instance configuration. More...
 

Detailed Description

System related code.

Definition in file chsys.c.