OS  v7.3.3
Documentation
Loading...
Searching...
No Matches
qcritical.h
1
9#ifndef QCRITICAL_H
10 #define QCRITICAL_H
11
12 #include "qtypes.h"
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18
41 typedef void (*qInt_Restorer_t)(qUINT32_t arg1);
42
62 typedef qUINT32_t (*qInt_Disabler_t)(void);
63
64
70 void qCritical_Enter( void );
71
72
78 void qCritical_Exit( void );
79
80
96 const qInt_Disabler_t dFcn );
97
100 #ifdef __cplusplus
101 }
102 #endif
103
104#endif
qUINT32_t(* qInt_Disabler_t)(void)
Function called by qCritical_Enter() to disable interrupts.
Definition qcritical.h:62
void qCritical_Exit(void)
Exit a critical section. This function invokes the Enabler function if available.
Definition qcritical.c:30
void(* qInt_Restorer_t)(qUINT32_t arg1)
Function called by qCritical_Exit() to restore interrupts.
Definition qcritical.h:41
qBool_t qCritical_SetInterruptsED(const qInt_Restorer_t rFcn, const qInt_Disabler_t dFcn)
Set the hardware-specific code for global interrupt enable/disable. Setting this allows you to commun...
Definition qcritical.c:39
void qCritical_Enter(void)
Enter a critical section. This function invokes the Disabler function if available.
Definition qcritical.c:21
qUINT8_t qBool_t
A type to instantiate an OS boolean variable.
Definition qtypes.h:139
uint32_t qUINT32_t
Unsigned integer type with width of exactly 32 bits respectively.
Definition qtypes.h:48