1- /*****************************************************************************
2- * Product: "Blinky" example
3- * Last updated for version 7.0.1
4- * Last updated on 2022-06-04
5- *
6- * Q u a n t u m L e a P s
7- * ------------------------
8- * Modern Embedded Software
9- *
1+ /*============================================================================
2+ * QP/C Real-Time Embedded Framework (RTEF)
103* Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved.
114*
12- * This program is open source software: you can redistribute it and/or
13- * modify it under the terms of the GNU General Public License as published
14- * by the Free Software Foundation, either version 3 of the License, or
15- * (at your option) any later version.
5+ * SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
166*
17- * Alternatively, this program may be distributed and modified under the
18- * terms of Quantum Leaps commercial licenses, which expressly supersede
19- * the GNU General Public License and are specifically designed for
20- * licensees interested in retaining the proprietary status of their code .
7+ * This software is dual-licensed under the terms of the open source GNU
8+ * General Public License version 3 (or any later version), or alternatively,
9+ * under the terms of one of the closed source Quantum Leaps commercial
10+ * licenses .
2111*
22- * This program is distributed in the hope that it will be useful,
23- * but WITHOUT ANY WARRANTY; without even the implied warranty of
24- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25- * GNU General Public License for more details.
12+ * The terms of the open source GNU General Public License version 3
13+ * can be found at: <www.gnu.org/licenses/gpl-3.0>
2614*
27- * You should have received a copy of the GNU General Public License
28- * along with this program. If not, see <www.gnu.org/licenses/>.
15+ * The terms of the closed source Quantum Leaps commercial licenses
16+ * can be found at: <www.state-machine.com/licensing>
17+ *
18+ * Redistributions in source code must retain this top-level comment block.
19+ * Plagiarizing this software to sidestep the license obligations is illegal.
2920*
3021* Contact information:
31- * <www.state-machine.com/licensing >
22+ * <www.state-machine.com>
322333- *****************************************************************************/
24+ ============================================================================*/
25+ /*!
26+ * @date Last updated on: 2022-08-24
27+ * @version Last updated for: Zephyr 3.1.99 and @ref qpc_7_1_0
28+ *
29+ * @file
30+ * @brief main() for Zephyr, Blinky example
31+ */
3432#include "qpc.h"
3533#include "blinky.h"
3634#include "bsp.h"
@@ -52,12 +50,12 @@ int main() {
5250 /* instantiate and start the active objects... */
5351 Blinky_ctor ();
5452 QActive_setAttr (AO_Blinky ,
55- 0 , /* thread opions */
53+ 0 , /* thread options */
5654 "Blinky" ); /* thread name */
5755 QACTIVE_START (AO_Blinky , /* AO pointer to start */
5856 1U , /* unique QP priority of the AO */
5957 l_blinkyQSto , /* storage for the AO's queue */
60- Q_DIM (l_blinkyQSto ), /* lenght of the queue [entries] */
58+ Q_DIM (l_blinkyQSto ), /* length of the queue [entries] */
6159 (void * )l_blinkyStack , /* stack storage */
6260 K_THREAD_STACK_SIZEOF (l_blinkyStack ), /* stack size [bytes] */
6361 (void * )0 ); /* initial event (or 0) */
0 commit comments