2022-04-19 19:23:30 -04:00
|
|
|
//============================================================================
|
2022-08-11 15:36:19 -04:00
|
|
|
// QP/C++ Real-Time Embedded Framework (RTEF)
|
2024-06-07 16:07:22 -04:00
|
|
|
//
|
|
|
|
// Q u a n t u m L e a P s
|
|
|
|
// ------------------------
|
|
|
|
// Modern Embedded Software
|
|
|
|
//
|
2022-08-11 15:36:19 -04:00
|
|
|
// Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
|
|
|
|
//
|
|
|
|
// This software is dual-licensed under the terms of the open source GNU
|
|
|
|
// General Public License version 3 (or any later version), or alternatively,
|
|
|
|
// under the terms of one of the closed source Quantum Leaps commercial
|
|
|
|
// licenses.
|
|
|
|
//
|
|
|
|
// The terms of the open source GNU General Public License version 3
|
|
|
|
// can be found at: <www.gnu.org/licenses/gpl-3.0>
|
|
|
|
//
|
|
|
|
// The terms of the closed source Quantum Leaps commercial licenses
|
|
|
|
// can be found at: <www.state-machine.com/licensing>
|
|
|
|
//
|
|
|
|
// Redistributions in source code must retain this top-level comment block.
|
|
|
|
// Plagiarizing this software to sidestep the license obligations is illegal.
|
|
|
|
//
|
|
|
|
// Contact information:
|
|
|
|
// <www.state-machine.com>
|
|
|
|
// <info@state-machine.com>
|
2022-04-19 19:23:30 -04:00
|
|
|
//============================================================================
|
2024-06-07 16:07:22 -04:00
|
|
|
//! @date Last updated on: 2024-06-06
|
|
|
|
//! @version Last updated for: @ref qpcpp_7_4_0
|
2022-08-11 15:36:19 -04:00
|
|
|
//!
|
|
|
|
//! @file
|
2024-06-07 16:07:22 -04:00
|
|
|
//! @brief QS/C++ port to a 16-bit CPU, generic C++11 compiler
|
2014-04-13 21:35:34 -04:00
|
|
|
|
2023-01-19 21:14:02 -05:00
|
|
|
#ifndef QS_PORT_HPP_
|
|
|
|
#define QS_PORT_HPP_
|
2012-08-14 18:00:48 -04:00
|
|
|
|
2015-05-14 16:05:04 -04:00
|
|
|
// object pointer size in bytes
|
2024-06-07 16:07:22 -04:00
|
|
|
#define QS_OBJ_PTR_SIZE 2U
|
2015-05-14 16:05:04 -04:00
|
|
|
|
2019-01-24 20:07:50 -05:00
|
|
|
// function pointer size in bytes
|
2024-06-07 16:07:22 -04:00
|
|
|
#define QS_FUN_PTR_SIZE 2U
|
2012-08-14 18:00:48 -04:00
|
|
|
|
2022-04-19 19:23:30 -04:00
|
|
|
//============================================================================
|
2023-01-19 21:14:02 -05:00
|
|
|
// NOTE: QS might be used with or without other QP components, in which
|
|
|
|
// case the separate definitions of the macros QF_CRIT_STAT, QF_CRIT_ENTRY(),
|
|
|
|
// and QF_CRIT_EXIT() are needed. In this port QS is configured to be used
|
|
|
|
// with the other QP component, by simply including "qp_port.hpp"
|
2024-06-07 16:07:22 -04:00
|
|
|
// *before* "qs.hpp".
|
2023-01-19 21:14:02 -05:00
|
|
|
#ifndef QP_PORT_HPP_
|
|
|
|
#include "qp_port.hpp" // use QS with QP
|
2022-08-11 15:36:19 -04:00
|
|
|
#endif
|
2015-05-14 16:05:04 -04:00
|
|
|
|
2022-08-11 15:36:19 -04:00
|
|
|
#include "qs.hpp" // QS platform-independent public interface
|
2020-10-03 10:43:49 -04:00
|
|
|
|
2023-01-19 21:14:02 -05:00
|
|
|
#endif // QS_PORT_HPP_
|