ThreadX port: added name of the form "AOpp" to ThreadX thread and queue
This commit is contained in:
MMS 2021-01-26 13:30:33 -05:00
parent 033dffe0cc
commit 4a0ba19b3a
4 changed files with 15 additions and 11 deletions

View File

@ -1305,7 +1305,7 @@ Even though the QP/C source has been re-packaged in this release, there are no A
The two changes in basic approach to distributing and building the framework have also the following ripple effects:
1. The QP/C source code has been simplified and has been re-packaged into a much smaller number of source files. The whole QP/C source code now resides in the single <span class="img folder"><a href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html"><strong>source</strong></a></span> folder. Additionally, the source code files have now the **read-only** protection to prevent inadvertent changes to the QP/C soruce code that is part of your projects.
1. The QP/C source code has been simplified and has been re-packaged into a much smaller number of source files. The whole QP/C source code now resides in the single <span class="img folder"><strong>source</strong></span> folder. Additionally, the source code files have now the **read-only** protection to prevent inadvertent changes to the QP/C soruce code that is part of your projects.
2. It is no longer necessary to define the **QPC environment variable** to build the QP/C examples. All directories and files referenced by example projects are **relative** to the project folder. This change reflects the fact that most development tools add source files to the project using relative paths (and now the projects contain QP/C source code, not just the QP library).

View File

@ -16,9 +16,9 @@ The following annotated directory tree lists the top-level directories provided
</li>
<li><span class="img folder">ports/</span> &mdash; @ref ports "QP/C Ports"
</li>
<li><span class="img folder">include/</span> &mdash; Platform-independent QP/C API (see <a href="dir_d44c64559bbebec7f509842c48db8b23.html"><strong>include</strong></a>)
<li><span class="img folder">include/</span> &mdash; Platform-independent QP/C API (see <strong>include</strong>)
</li>
<li><span class="img folder">src/</span> &mdash; Platform-independent QP/C source code (see <a href="dir_68267d1309a1af8e8297ef4c3efbcdba.html"><strong>src</strong></a>)
<li><span class="img folder">src/</span> &mdash; Platform-independent QP/C source code (see <strong>src</strong>)
</li>
</ul>
</ul>

View File

@ -1105,9 +1105,6 @@
+e9006 /* sizeof used with expression with side effect */
+elib(9006)
-append(9006,[MISRA 2012 Rule 13.6, mandatory])
+e9089 /* potential side-effect in argument to sizeof */
+elib(9089)
-append(9089,[MISRA 2012 Rule 13.6, mandatory])
/**** Rule 14.1 (Req) ************/

View File

@ -4,14 +4,14 @@
* @ingroup ports
* @cond
******************************************************************************
* Last updated for version 6.9.1
* Last updated on 2020-09-11
* Last updated for version 6.9.2a
* Last updated on 2021-01-26
*
* Q u a n t u m L e a P s
* ------------------------
* Modern Embedded Software
*
* Copyright (C) 2005-2020 Quantum Leaps, LLC. All rights reserved.
* Copyright (C) 2005-2021 Quantum Leaps, LLC. All rights reserved.
*
* This program is open source software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
@ -87,11 +87,18 @@ void QActive_start_(QActive * const me, uint_fast8_t prio,
void const * const par)
{
UINT tx_prio; /* ThreadX priority corresponding to the QF priority prio */
CHAR tx_name[5]; /* name passed to ThreadX queue and thread */
tx_name[0] = 'A';
tx_name[1] = 'O';
tx_name[2] = '0' + (prio / 10U);
tx_name[3] = '0' + (prio % 10U);
tx_name[4] = '\0';
/* allege that the ThreadX queue is created successfully */
Q_ALLEGE_ID(210,
tx_queue_create(&me->eQueue,
(CHAR *)"AO",
tx_name,
TX_1_ULONG,
(VOID *)qSto,
(ULONG)(qLen * sizeof(ULONG)))
@ -109,7 +116,7 @@ void QActive_start_(QActive * const me, uint_fast8_t prio,
Q_ALLEGE_ID(220,
tx_thread_create(
&me->thread, /* ThreadX thread control block */
(CHAR *)"AO", /* thread name */
tx_name, /* thread name */
&thread_function, /* thread function */
(ULONG)me, /* thread parameter */
stkSto, /* stack start */