QP/C
qep.c
Go to the documentation of this file.
00001 /*****************************************************************************
00002 * Product: QEP/C
00003 * Last Updated for Version: 4.5.00
00004 * Date of the Last Update:  May 18, 2012
00005 *
00006 *                    Q u a n t u m     L e a P s
00007 *                    ---------------------------
00008 *                    innovating embedded systems
00009 *
00010 * Copyright (C) 2002-2012 Quantum Leaps, LLC. All rights reserved.
00011 *
00012 * This program is open source software: you can redistribute it and/or
00013 * modify it under the terms of the GNU General Public License as published
00014 * by the Free Software Foundation, either version 2 of the License, or
00015 * (at your option) any later version.
00016 *
00017 * Alternatively, this program may be distributed and modified under the
00018 * terms of Quantum Leaps commercial licenses, which expressly supersede
00019 * the GNU General Public License and are specifically designed for
00020 * licensees interested in retaining the proprietary status of their code.
00021 *
00022 * This program is distributed in the hope that it will be useful,
00023 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00024 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00025 * GNU General Public License for more details.
00026 *
00027 * You should have received a copy of the GNU General Public License
00028 * along with this program. If not, see <http://www.gnu.org/licenses/>.
00029 *
00030 * Contact information:
00031 * Quantum Leaps Web sites: http://www.quantum-leaps.com
00032 *                          http://www.state-machine.com
00033 * e-mail:                  info@quantum-leaps.com
00034 *****************************************************************************/
00035 #include "qep_pkg.h"
00036 
00043 /* Package-scope objects ---------------------------------------------------*/
00044 QEvt const QEP_reservedEvt_[] = {
00045     { (QSignal)QEP_EMPTY_SIG_, (uint8_t)0, (uint8_t)0 },
00046     { (QSignal)Q_ENTRY_SIG,    (uint8_t)0, (uint8_t)0 },
00047     { (QSignal)Q_EXIT_SIG,     (uint8_t)0, (uint8_t)0 },
00048     { (QSignal)Q_INIT_SIG,     (uint8_t)0, (uint8_t)0 }
00049 };
00050 
00051 /*..........................................................................*/
00052 char_t const Q_ROM * Q_ROM_VAR QEP_getVersion(void) {
00053     static char_t const Q_ROM Q_ROM_VAR version[] = {
00054         (char_t)((uint8_t)((QP_VERSION >> 12) & 0xFU) + (uint8_t)'0'),
00055         (char_t)'.',
00056         (char_t)((uint8_t)((QP_VERSION >>  8) & 0xFU) + (uint8_t)'0'),
00057         (char_t)'.',
00058         (char_t)((uint8_t)((QP_VERSION >>  4) & 0xFU) + (uint8_t)'0'),
00059         (char_t)((uint8_t)(QP_VERSION         & 0xFU) + (uint8_t)'0'),
00060         (char_t)'\0'
00061     };
00062     return version;
00063 }