QP/C++ 8.1.2
Real-Time Event Framework
Loading...
Searching...
No Matches
qs_port.hpp
Go to the documentation of this file.
1//! @file
2//! @brief Sample QS/C++ port
3//!
4//! @code_litem{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 @QPX 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.hpp" *before* "qs.hpp".
14
15#ifndef QS_PORT_HPP_
16#define QS_PORT_HPP_
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//============================================================================
28// NOTE: QS might be used with or without other QP components, in which
29// case the separate definitions of the macros QF_CRIT_STAT, QF_CRIT_ENTRY(),
30// and QF_CRIT_EXIT() are needed. In this port QS is configured to be used
31// with the other QP component, by simply including "qp_port.hpp"
32//*before* "qs.hpp".
33#ifndef QP_PORT_HPP_
34#include "qp_port.hpp" // use QS with QP
35#endif
36
37#include "qs.hpp" // QS platform-independent public interface
38
39#endif // QS_PORT_HPP_
40
Sample QP/C++ port.
QS (QP/Spy software tracing) platform-independent public interface.