-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to QP/C++ v7.3.4, which is not backwards compatible to v7.2.*.
- Loading branch information
1 parent
4d51823
commit 484e4de
Showing
17 changed files
with
155 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// | ||
// | ||
// | ||
|
||
#ifndef CPPUTEST_FOR_QPCPP_LIB_QP_PORT_HPP | ||
#define CPPUTEST_FOR_QPCPP_LIB_QP_PORT_HPP | ||
|
||
#include <cstdint> // Exact-width types. C++11 Standard | ||
|
||
#ifdef QP_CONFIG | ||
#include "qp_config.hpp" // external QP configuration | ||
#endif | ||
|
||
// no-return function specifier (C++11 Standard) | ||
// removed due to certain cpputest test functions | ||
#define Q_NORETURN void | ||
|
||
#define QACTIVE_EQUEUE_TYPE QEQueue | ||
#define QF_EPOOL_TYPE_ QMPool | ||
|
||
// QF critical section for POSIX-QV, see NOTE1 | ||
#define QF_CRIT_STAT | ||
#define QF_CRIT_ENTRY() | ||
#define QF_CRIT_EXIT() | ||
|
||
|
||
// Activate the QF QActive::stop() API | ||
#define QACTIVE_CAN_STOP 1 | ||
|
||
// QF_LOG2 not defined -- use the internal LOG2() implementation | ||
|
||
#include "qequeue.hpp" // QP event queue (for deferring events) | ||
#include "qmpool.hpp" // QP memory pool (for event pools) | ||
#include "qp.hpp" // QP platform-independent public interface | ||
|
||
|
||
namespace QP { | ||
|
||
void RunUntilNoReadyActiveObjects(); | ||
|
||
} // namespace QP | ||
|
||
//============================================================================ | ||
// interface used only inside QF implementation, but not in applications | ||
|
||
#ifdef QP_IMPL | ||
|
||
// QF scheduler locking for POSIX-QV (not needed in single-thread port) | ||
#define QF_SCHED_STAT_ | ||
#define QF_SCHED_LOCK_(dummy) (static_cast<void>(0)) | ||
#define QF_SCHED_UNLOCK_() (static_cast<void>(0)) | ||
|
||
#define QACTIVE_EQUEUE_WAIT_(me_) \ | ||
Q_ASSERT_INCRIT(302, (me_)->m_eQueue.m_frontEvt != nullptr) | ||
|
||
|
||
|
||
#define QACTIVE_EQUEUE_SIGNAL_(me_) do { \ | ||
cpputest_readySet_.insert((me_)->m_prio); \ | ||
} while (false) | ||
|
||
// native QF event pool operations | ||
#define QF_EPOOL_TYPE_ QMPool | ||
#define QF_EPOOL_INIT_(p_, poolSto_, poolSize_, evtSize_) \ | ||
(p_).init((poolSto_), (poolSize_), (evtSize_)) | ||
#define QF_EPOOL_EVENT_SIZE_(p_) ((p_).getBlockSize()) | ||
#define QF_EPOOL_GET_(p_, e_, m_, qsId_) \ | ||
((e_) = static_cast<QEvt *>((p_).get((m_), (qsId_)))) | ||
#define QF_EPOOL_PUT_(p_, e_, qsId_) ((p_).put((e_), (qsId_))) | ||
|
||
|
||
namespace QP { | ||
extern QPSet cpputest_readySet_; // ready set of active objects | ||
} // namespace QP | ||
|
||
namespace QP { | ||
namespace QF { | ||
|
||
} // namespace QF | ||
} // namespace QP | ||
|
||
#endif // QP_IMPL | ||
|
||
#endif // CPPUTEST_FOR_QPCPP_LIB_QP_PORT_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.