qpcpp/ports/win32-qutest/qs_port.hpp

64 lines
2.2 KiB
C++
Raw Normal View History

//============================================================================
2022-08-11 15:36:19 -04:00
// QP/C++ Real-Time Embedded Framework (RTEF)
// 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>
//============================================================================
//! @date Last updated on: 2023-08-18
//! @version Last updated for: @ref qpcpp_7_3_0
//!
2022-08-11 15:36:19 -04:00
//! @file
//! @brief QS/C++ port to Win32
2022-08-11 15:36:19 -04:00
#ifndef QS_PORT_HPP_
#define QS_PORT_HPP_
2017-05-17 13:15:09 -04:00
2023-01-06 12:56:50 -05:00
#define QS_CTR_SIZE 4U
2020-03-17 21:33:58 -04:00
#define QS_TIME_SIZE 4U
2017-05-17 13:15:09 -04:00
2022-08-11 15:36:19 -04:00
#if defined(_WIN64) || defined(__LP64__) || defined(_LP64) // 64-bit OS?
2020-03-17 21:33:58 -04:00
#define QS_OBJ_PTR_SIZE 8U
#define QS_FUN_PTR_SIZE 8U
2022-08-11 15:36:19 -04:00
#else // 32-bit OS
2020-03-17 21:33:58 -04:00
#define QS_OBJ_PTR_SIZE 4U
#define QS_FUN_PTR_SIZE 4U
2017-05-17 13:15:09 -04:00
#endif
namespace QP {
void QS_output(void); // handle the QS output
void QS_rx_input(void); // handle the QS-RX input
}
2017-05-17 13:15:09 -04:00
//============================================================================
2022-08-11 15:36:19 -04: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" *before* "qs.hpp".
2017-05-17 13:15:09 -04:00
//
#ifndef QP_PORT_HPP_
#include "qp_port.hpp" // use QS with QP
2022-08-11 15:36:19 -04:00
#endif
2019-10-27 12:26:31 -04:00
#include "qs.hpp" // QS platform-independent public interface
2017-05-17 13:15:09 -04:00
#endif // QS_PORT_HPP_
2018-10-25 11:13:01 -04:00