QP/C  7.3.4
Real-Time Embedded Framework
Loading...
Searching...
No Matches
qs_port.h
Go to the documentation of this file.
1//! @file
2//! @brief Sample QS/C port
3//!
4//! @details
5//! This is just an example of a QS port for a 32-bit CPU.
6//! Other specific QS ports will define the QS facilities differently.
7//!
8//! @remark
9//! QS might be used with or without the other QP framework components,
10//! in which case the separate definitions of the macros QS_CRIT_STAT,
11//! QS_CRIT_ENTRY(), and QS_CRIT_EXIT() are needed. In this sample port QS is
12//! configured to be used with the other QP component, by simply including
13//! "qp_port.h" *before* "qs.h".
14
15#ifndef QS_PORT_H_
16#define QS_PORT_H_
17
18//! QS time-stamp size in bytes
19#define QS_TIME_SIZE 4U
20
21//! object pointer size in bytes
22#define QS_OBJ_PTR_SIZE 4U
23
24//! function pointer size in bytes
25#define QS_FUN_PTR_SIZE 4U
26
27//! QS buffer-counters size in bytes. Valid values: 2U or 4U;
28//! default 2U.
29#define QS_CTR_SIZE 2U
30
31//! QS time stamp size in bytes. Valid values: 1U, 2U, or 4U;
32//! default 4U.
33#define QS_TIME_SIZE 4U
34
35// NOTE: QS might be used with or without other QP components, in which
36// case the separate definitions of the macros QF_CRIT_STAT, QF_CRIT_ENTRY(),
37// and QF_CRIT_EXIT() are needed. In this port QS is configured to be used
38// with the other QP component, by simply including "qp_port.h"
39//*before* "qs.h".
40#ifndef QP_PORT_H_
41#include "qp_port.h" // use QS with QF
42#endif
43
44#include "qs.h" // QS platform-independent public interface
45
46#endif // QS_PORT_H_
Sample QP/C port.
QS/C platform-independent public interface.