ChibiOS/RT 7.0.5
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.
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.
void chSysWaitSystemState (system_state_t state)
 Waits for the system state to be equal to the specified one.
void chSysInit (void)
 System initialization.
void chSysHalt (const char *reason)
 Halts the system.
thread_tchSysGetIdleThreadX (void)
 Returns a pointer to the idle thread.
bool chSysIntegrityCheckI (unsigned testmask)
 System integrity check.
void chSysTimerHandlerI (void)
 Handles time ticks for round robin preemption and timer increments.
syssts_t chSysGetStatusAndLockX (void)
 Returns the execution status and enters a critical zone.
void chSysRestoreStatusX (syssts_t sts)
 Restores the specified execution status and leaves a critical zone.
bool chSysIsCounterWithinX (rtcnt_t cnt, rtcnt_t start, rtcnt_t end)
 Realtime window test.
void chSysPolledDelayX (rtcnt_t cycles)
 Polled delay.

Variables

ch_system_t ch_system
 System root object.
CH_SYS_CORE0_MEMORY os_instance_t ch0
 Core 0 OS instance.
stkalign_t __main_thread_stack_base__
stkalign_t __main_thread_stack_end__
const os_instance_config_t ch_core0_cfg
 Core 0 OS instance configuration.
CH_SYS_CORE1_MEMORY os_instance_t ch1
 Core 1 OS instance.
stkalign_t __c1_main_thread_stack_base__
stkalign_t __c1_main_thread_stack_end__
const os_instance_config_t ch_core1_cfg
 Core 1 OS instance configuration.

Detailed Description

System related code.

Definition in file chsys.c.