Reference Manual For QP/C++ 8.1.6
Toggle main menu visibility
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-2026 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: LicenseRef-QL-commercial
11
//
12
// This software is licensed under the terms of the Quantum Leaps commercial
13
// license agreement. This header is a notice of that license, not a
14
// substitute for it; the signed agreement governs in case of conflict.
15
// Use of this software requires a valid Quantum Leaps commercial or
16
// evaluation license. Contact Quantum Leaps for licensing options.
17
//
18
// RESTRICTIONS
19
// Unless otherwise agreed in writing with Quantum Leaps, the licensee
20
// may NOT:
21
// (a) redistribute, encumber, sell, rent, lease, sublicense, or otherwise
22
// transfer rights in this software to any third party,
23
// (b) remove, obscure, or alter any trademark, copyright, or other
24
// proprietary notice, legend, symbol, or label present in this
25
// software,
26
// (c) create derivative works, or modify or repackage this software, for
27
// the purpose of concealing its origin or evading the licensing
28
// obligations that apply to it,
29
// (d) use this software, or any portion of it, as input to train,
30
// fine-tune, evaluate, or otherwise develop any artificial
31
// intelligence or machine learning model, or use such a model to
32
// replicate, emulate, or compete with the functionality of this
33
// software, whether for internal use or in any product or service
34
// offered to a third party.
35
//
36
// This software is provided "AS IS," without warranty of any kind, express
37
// or implied, except as expressly stated in the governing license agreement.
38
//
39
// Quantum Leaps contact information:
40
// <www.state-machine.com/licensing>
41
// <info@state-machine.com>
42
//============================================================================
43
#ifndef QS_PORT_HPP_
44
#define QS_PORT_HPP_
45
46
//============================================================================
47
// !!! SUPER-TEMPLATE -- NOT COMPILABLE AS IS !!!
48
//
49
// This file collects in one place ALL QS port-specific customizations used
50
// by the currently supported ports (all QS ports define the same elements).
51
// Each customizable element is defined exactly ONCE, as a representative
52
// example. This file is the reference and the documentation anchor for the
53
// QS port interface.
54
//
55
// To create an actual qs_port.hpp from this super-template:
56
// 1. Copy this file to the directory of the new port.
57
// 2. Adapt the pointer sizes to the CPU and compiler (see below) and DELETE
58
// anything that does not apply.
59
// 3. Delete the #error directive below.
60
//============================================================================
61
#error "qs_port.hpp super-template is not compilable as is (see comment above)"
62
63
// object pointer size in bytes
64
// (2U on 16-bit CPUs, e.g. MSP430; 4U on 32-bit CPUs, e.g. ARM Cortex-M/R;
65
// 8U on 64-bit hosts, e.g. POSIX/Win32 on x86-64)
66
#define QS_OBJ_PTR_SIZE 4U
67
68
// function pointer size in bytes (the same choices as QS_OBJ_PTR_SIZE)
69
#define QS_FUN_PTR_SIZE 4U
70
71
//============================================================================
72
// NOTE: QS might be used with or without other QP components, in which
73
// case the separate definitions of the macros QF_CRIT_STAT, QF_CRIT_ENTRY(),
74
// and QF_CRIT_EXIT() are needed. In this port QS is configured to be used
75
// with the other QP component, by simply including "qp_port.hpp"
76
// *before* "qs.hpp".
77
#ifndef QP_PORT_HPP_
78
#include "
qp_port.hpp
"
// use QS with QP
79
#endif
80
81
#include "
qs.hpp
"
// QS platform-independent public interface
82
83
#endif
// QS_PORT_HPP_
qp_port.hpp
Super-template of the QP/C++ port (port interface reference).
qs.hpp
QS (QP/Spy software tracing) platform-independent public interface.
qpcpp
templates
ports
qs_port.hpp
©
Quantum Leaps
|
YouTube
|
GitHub
| created with
Spexygen
©
Quantum Leaps
|
YouTube
|
GitHub
| created with
Spexygen