QP/C++  8.0.2
Real-Time Event Framework
Loading...
Searching...
No Matches
qs_port.hpp
Go to the documentation of this file.
1//============================================================================
2// QP/C++ Real-Time Event Framework (RTEF)
3//
4// Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved.
5//
6// Q u a n t u m L e a P s
7// ------------------------
8// Modern Embedded Software
9//
10// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
11//
12// This software is dual-licensed under the terms of the open-source GNU
13// General Public License (GPL) or under the terms of one of the closed-
14// source Quantum Leaps commercial licenses.
15//
16// Redistributions in source code must retain this top-level comment block.
17// Plagiarizing this software to sidestep the license obligations is illegal.
18//
19// NOTE:
20// The GPL (see <www.gnu.org/licenses/gpl-3.0>) does NOT permit the
21// incorporation of the QP/C software into proprietary programs. Please
22// contact Quantum Leaps for commercial licensing options, which expressly
23// supersede the GPL and are designed explicitly for licensees interested
24// in using QP/C in closed-source proprietary applications.
25//
26// Quantum Leaps contact information:
27// <www.state-machine.com/licensing>
28// <info@state-machine.com>
29//============================================================================
30#ifndef QS_PORT_HPP_
31#define QS_PORT_HPP_
32
33// QS time-stamp size in bytes
34#define QS_TIME_SIZE 4U
35
36// object pointer size in bytes
37#define QS_OBJ_PTR_SIZE 4U
38
39// function pointer size in bytes
40#define QS_FUN_PTR_SIZE 4U
41
42//============================================================================
43// NOTE: QS might be used with or without other QP components, in which
44// case the separate definitions of the macros QF_CRIT_STAT, QF_CRIT_ENTRY(),
45// and QF_CRIT_EXIT() are needed. In this port QS is configured to be used
46// with the other QP component, by simply including "qp_port.hpp"
47//*before* "qs.hpp".
48#ifndef QP_PORT_HPP_
49#include "qp_port.hpp" // use QS with QP
50#endif
51
52#include "qs.hpp" // QS platform-independent public interface
53
54#endif // QS_PORT_HPP_
55
Sample QP/C++ port.