Skip to content

Commit e8df0ee

Browse files
committed
7.4.0-rc.2
1 parent 4009bc7 commit e8df0ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1801
-363
lines changed

3rd_party

Submodule 3rd_party updated 1309 files

examples

Submodule examples updated 155 files

include/qp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ bool QMsm_isIn_(
417417
QAsm * const me,
418418
QStateHandler const state);
419419

420+
//! @private @memberof QMsm
420421
//! @deprecated instead use: QASM_IS_IN()
421422
bool QMsm_isInState(QMsm const * const me,
422423
QMState const * const stateObj);

ports/embos/qf_port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// <www.state-machine.com>
2323
2424
//============================================================================
25-
//! @date Last updated on: 2023-11-15
26-
//! @version Last updated for: @ref qpc_7_3_1
25+
//! @date Last updated on: 2024-06-11
26+
//! @version Last updated for: @ref qpc_7_4_0
2727
//!
2828
//! @file
2929
//! @brief QF/C port to embOS RTOS kernel, generic C11 compiler

ports/freertos/qf_port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// <www.state-machine.com>
2323
2424
//============================================================================
25-
//! @date Last updated on: 2023-11-15
26-
//! @version Last updated for: @ref qpc_7_3_1
25+
//! @date Last updated on: 2024-06-11
26+
//! @version Last updated for: @ref qpc_7_4_0
2727
//!
2828
//! @file
2929
//! @brief QF/C port to FreeRTOS 10.x, generic C11 compiler

ports/lint-plus/qpc.lnt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// <www.state-machine.com>
2323
2424
//============================================================================
25-
//! @date Last updated on: 2023-12-12
26-
//! @version Last updated for version: 7.3.1
25+
//! @date Last updated on: 2024-06-11
26+
//! @version Last updated for version: 7.4.0
2727
//!
2828
//! @file
2929
//! @brief PC-Lint-Plus option file for analysing both **QP/C**
@@ -69,8 +69,7 @@
6969
//! PCLP definition of macro ends in semicolon
7070
//! @tr{DVP-QP-PCLP-823}
7171
-esym(823,
72-
Q_DEFINE_THIS_MODULE,
73-
Q_DEFINE_THIS_FILE)
72+
Q_DEFINE_THIS_MODULE)
7473

7574
//! BARR-C(R1.8b) parameter of function could be const
7675
-efunc(952,

ports/posix-qutest/qp_port.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
// <www.state-machine.com/licensing>
2828
2929
//============================================================================
30-
//! @date Last updated on: 2023-09-07
31-
//! @version Last updated for: @ref qpc_7_3_0
30+
//! @date Last updated on: 2024-06-10
31+
//! @version Last updated for: @ref qpc_7_4_0
3232
//!
3333
//! @file
3434
//! @brief QP/C "port" for QUTEST unit test harness, generic C11 compiler
@@ -52,13 +52,13 @@
5252
// QACTIVE_THREAD_TYPE not used in this port
5353

5454
// QF interrupt disable/enable
55-
#define QF_INT_DISABLE() (++QS_tstPriv_.intLock)
56-
#define QF_INT_ENABLE() (--QS_tstPriv_.intLock)
55+
#define QF_INT_DISABLE() (QS_onIntDisable())
56+
#define QF_INT_ENABLE() (QS_onIntEnable())
5757

5858
// QF critical section
5959
#define QF_CRIT_STAT
60-
#define QF_CRIT_ENTRY() QF_INT_DISABLE()
61-
#define QF_CRIT_EXIT() QF_INT_ENABLE()
60+
#define QF_CRIT_ENTRY() QF_INT_DISABLE()
61+
#define QF_CRIT_EXIT() QF_INT_ENABLE()
6262

6363
// QF_LOG2 not defined -- use the internal LOG2() implementation
6464

@@ -67,6 +67,9 @@
6767
#include "qmpool.h" // QUTest port uses QMPool memory-pool
6868
#include "qp.h" // QP platform-independent public interface
6969

70+
void QS_onIntDisable(void);
71+
void QS_onIntEnable(void);
72+
7073
//============================================================================
7174
// interface used only inside QF implementation, but not in applications
7275

@@ -90,7 +93,7 @@
9093
#endif
9194

9295
// native QF event pool operations
93-
#define QF_EPOOL_TYPE_ QMPool
96+
#define QF_EPOOL_TYPE_ QMPool
9497
#define QF_EPOOL_INIT_(p_, poolSto_, poolSize_, evtSize_) \
9598
(QMPool_init(&(p_), (poolSto_), (poolSize_), (evtSize_)))
9699
#define QF_EPOOL_EVENT_SIZE_(p_) ((uint_fast16_t)(p_).blockSize)

ports/posix-qutest/qutest_port.c

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// <www.state-machine.com>
2323
2424
//============================================================================
25-
//! @date Last updated on: 2024-02-16
26-
//! @version Last updated for: @ref qpc_7_3_3
25+
//! @date Last updated on: 2024-06-11
26+
//! @version Last updated for: @ref qpc_7_4_0
2727
//!
2828
//! @file
2929
//! @brief QS/C "port" to QUTest with POSIX
@@ -61,7 +61,7 @@
6161
#define INVALID_SOCKET -1
6262
#define SOCKET_ERROR -1
6363

64-
//Q_DEFINE_THIS_MODULE("qutest_port")
64+
Q_DEFINE_THIS_MODULE("qutest_port")
6565

6666
// local variables ...........................................................
6767
static int l_sock = INVALID_SOCKET;
@@ -112,6 +112,8 @@ uint8_t QS_onStartup(void const *arg) {
112112
if (*src == ':') {
113113
serviceName = src + 1;
114114
}
115+
//printf("<TARGET> Connecting to QSPY on Host=%s:%s...\n",
116+
// hostName, serviceName);
115117

116118
memset(&hints, 0, sizeof(hints));
117119
hints.ai_family = AF_INET;
@@ -243,19 +245,20 @@ void QS_onFlush(void) {
243245
nBytes = QS_TX_CHUNK;
244246
}
245247
}
248+
246249
//............................................................................
247250
void QS_onTestLoop() {
248251
fd_set readSet;
249252
FD_ZERO(&readSet);
250253

251-
struct timeval timeout = {
252-
(long)0, (long)(QS_TIMEOUT_MS * 1000)
253-
};
254-
255254
QS_rxPriv_.inTestLoop = true;
256255
while (QS_rxPriv_.inTestLoop) {
257256
FD_SET(l_sock, &readSet);
258257

258+
struct timeval timeout = {
259+
(long)0, (long)(QS_TIMEOUT_MS * 1000)
260+
};
261+
259262
// selective, timed blocking on the TCP/IP socket...
260263
timeout.tv_usec = (long)(QS_TIMEOUT_MS * 1000);
261264
int status = select(l_sock + 1, &readSet,
@@ -270,7 +273,7 @@ void QS_onTestLoop() {
270273
(char *)QS_rxPriv_.buf, (int)QS_rxPriv_.end, 0);
271274
if (status > 0) { // any data received?
272275
QS_rxPriv_.tail = 0U;
273-
QS_rxPriv_.head = status; // # bytes received
276+
QS_rxPriv_.head = (QSCtr)status; // # bytes received
274277
QS_rxParse(); // parse all received bytes
275278
}
276279
}
@@ -282,3 +285,17 @@ void QS_onTestLoop() {
282285
QS_rxPriv_.inTestLoop = true;
283286
}
284287

288+
//............................................................................
289+
void QS_onIntDisable(void) {
290+
if (QS_tstPriv_.intLock != 0U) {
291+
Q_onError(&Q_this_module_[0], 998);
292+
}
293+
++QS_tstPriv_.intLock;
294+
}
295+
//............................................................................
296+
void QS_onIntEnable(void) {
297+
--QS_tstPriv_.intLock;
298+
if (QS_tstPriv_.intLock != 0U) {
299+
Q_onError(&Q_this_module_[0], 999);
300+
}
301+
}

ports/posix-qv/qf_port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// <www.state-machine.com/licensing>
2323
2424
//============================================================================
25-
//! @date Last updated on: 2024-02-16
26-
//! @version Last updated for: @ref qpc_7_3_3
25+
//! @date Last updated on: 2024-06-11
26+
//! @version Last updated for: @ref qpc_7_4_0
2727
//!
2828
//! @file
2929
//! @brief QF/C port to POSIX-QV (single-threaded)

ports/posix-qv/qs_port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// <www.state-machine.com>
2323
2424
//============================================================================
25-
//! @date Last updated on: 2023-12-13
26-
//! @version Last updated for: @ref qpc_7_3_2
25+
//! @date Last updated on: 2024-06-11
26+
//! @version Last updated for: @ref qpc_7_4_0
2727
//!
2828
//! @file
2929
//! @brief QS/C port to POSIX

0 commit comments

Comments
 (0)