ChibiOS
21.6.0
|
Macros | |
#define | __CH_STRINGIFY(a) #a |
Utility to make the parameter a quoted string. More... | |
#define | __CH_OFFSETOF(st, m) |
Structure field offset utility. More... | |
#define | __CH_USED(x) (void)(x) |
Marks an expression result as used. More... | |
#define | likely(x) PORT_LIKELY(x) |
Marks a boolean expression as likely true. More... | |
#define | unlikely(x) PORT_UNLIKELY(x) |
Marks a boolean expression as likely false. More... | |
Kernel types | |
typedef port_rtcnt_t | rtcnt_t |
typedef port_rttime_t | rttime_t |
typedef port_syssts_t | syssts_t |
typedef port_stkalign_t | stkalign_t |
typedef uint8_t | tmode_t |
typedef uint8_t | tstate_t |
typedef uint8_t | trefs_t |
typedef uint8_t | tslices_t |
typedef uint32_t | tprio_t |
typedef int32_t | msg_t |
typedef int32_t | eventid_t |
typedef uint32_t | eventmask_t |
typedef uint32_t | eventflags_t |
typedef int32_t | cnt_t |
typedef uint32_t | ucnt_t |
Typedefs | |
typedef unsigned | core_id_t |
Type of a core identifier. More... | |
typedef struct ch_thread | thread_t |
Type of a thread structure. More... | |
typedef struct ch_os_instance | os_instance_t |
Type of an OS instance structure. More... | |
typedef struct ch_virtual_timer | virtual_timer_t |
Type of a Virtual Timer. More... | |
typedef void(* | vtfunc_t) (virtual_timer_t *vtp, void *p) |
Type of a Virtual Timer callback function. More... | |
typedef struct ch_virtual_timers_list | virtual_timers_list_t |
Type of virtual timers list header. More... | |
typedef struct ch_registry | registry_t |
Type of a registry structure. More... | |
typedef thread_t * | thread_reference_t |
Type of a thread reference. More... | |
typedef struct ch_threads_queue | threads_queue_t |
Type of a threads queue. More... | |
typedef struct ch_ready_list | ready_list_t |
Type of a ready list header. More... | |
typedef struct ch_os_instance_config | os_instance_config_t |
Type of an system instance configuration. More... | |
typedef struct ch_system | ch_system_t |
Type of system data structure. More... | |
Data Structures | |
struct | ch_virtual_timer |
Structure representing a Virtual Timer. More... | |
struct | ch_virtual_timers_list |
Type of virtual timers list header. More... | |
struct | ch_registry |
Type of a registry structure. More... | |
struct | ch_threads_queue |
Type of a threads queue. More... | |
struct | ch_thread |
Structure representing a thread. More... | |
struct | ch_ready_list |
Type of a ready list header. More... | |
struct | ch_os_instance_config |
Type of an system instance configuration. More... | |
struct | ch_os_instance |
System instance data structure. More... | |
struct | ch_system |
Type of system data structure. More... | |
Functions | |
void | chSysHalt (const char *reason) |
Halts the system. More... | |
Enumerations | |
enum | system_state_t |
Global state of the operating system. More... | |
#define __CH_STRINGIFY | ( | a | ) | #a |
#define __CH_OFFSETOF | ( | st, | |
m | |||
) |
Structure field offset utility.
[in] | st | structured type name |
[in] | m | field name in the structured type |
#define __CH_USED | ( | x | ) | (void)(x) |
#define likely | ( | x | ) | PORT_LIKELY(x) |
#define unlikely | ( | x | ) | PORT_UNLIKELY(x) |
typedef port_rtcnt_t rtcnt_t |
typedef port_rttime_t rttime_t |
typedef port_syssts_t syssts_t |
typedef port_stkalign_t stkalign_t |
typedef uint32_t eventmask_t |
typedef uint32_t eventflags_t |
typedef unsigned core_id_t |
typedef struct ch_os_instance os_instance_t |
typedef struct ch_virtual_timer virtual_timer_t |
Type of a Virtual Timer.
Definition at line 60 of file chobjects.h.
typedef void(* vtfunc_t) (virtual_timer_t *vtp, void *p) |
Type of a Virtual Timer callback function.
[in] | vtp | pointer to the virtual_timer_t calling this callback |
[in[ | p optional argument to the callback |
0 | if the timer must not be reloaded. |
Definition at line 70 of file chobjects.h.
typedef struct ch_virtual_timers_list virtual_timers_list_t |
Type of virtual timers list header.
typedef struct ch_registry registry_t |
Type of a registry structure.
typedef thread_t* thread_reference_t |
Type of a thread reference.
Definition at line 138 of file chobjects.h.
typedef struct ch_threads_queue threads_queue_t |
Type of a threads queue.
typedef struct ch_ready_list ready_list_t |
Type of a ready list header.
typedef struct ch_os_instance_config os_instance_config_t |
Type of an system instance configuration.
typedef struct ch_system ch_system_t |
Type of system data structure.
enum system_state_t |
Global state of the operating system.
Definition at line 50 of file chobjects.h.
void chSysHalt | ( | const char * | reason | ) |
Halts the system.
This function is invoked by the operating system when an unrecoverable error is detected, for example because a programming error in the application code that triggers an assertion while in debug mode.
[in] | reason | pointer to an error string |
Definition at line 209 of file chsys.c.
References __trace_halt(), CH_CFG_SYSTEM_HALT_HOOK, currcore, nil, port_disable(), and ch_system::state.
Referenced by __dbg_check_disable(), __dbg_check_enable(), __dbg_check_enter_isr(), __dbg_check_leave_isr(), __dbg_check_lock(), __dbg_check_lock_from_isr(), __dbg_check_suspend(), __dbg_check_unlock(), __dbg_check_unlock_from_isr(), chDbgCheckClassI(), and chDbgCheckClassS().