|
QP/C
|
00001 /***************************************************************************** 00002 * Product: QF/C port for Lint with QK, Generic C compiler 00003 * Last Updated for Version: 4.5.04 00004 * Date of the Last Update: Feb 01, 2013 00005 * 00006 * Q u a n t u m L e a P s 00007 * --------------------------- 00008 * innovating embedded systems 00009 * 00010 * Copyright (C) 2002-2013 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 #ifndef qf_port_h 00036 #define qf_port_h 00037 00060 #define QF_MAX_ACTIVE 63 00061 00079 #define QF_MAX_EPOOL 3 00080 00098 #define QF_EVENT_SIZ_SIZE 2 00099 00118 #define QF_EQUEUE_CTR_SIZE 1 00119 00140 #define QF_MPOOL_SIZ_SIZE 2 00141 00160 #define QF_MPOOL_CTR_SIZE 2 00161 00179 #define QF_TIMEEVT_CTR_SIZE 2 00180 00189 #define QF_INT_DISABLE() intDisable() 00190 00199 #define QF_INT_ENABLE() intEnable() 00200 00201 void intDisable(void); 00202 void intEnable(void); 00203 00210 #define QF_CRIT_STAT_TYPE crit_stat_t 00211 00224 #define QF_CRIT_ENTRY(stat_) ((stat_) = critEntry()) 00225 00239 #define QF_CRIT_EXIT(stat_) critExit(stat_) 00240 00241 typedef unsigned int crit_stat_t; 00242 QF_CRIT_STAT_TYPE critEntry(void); 00243 void critExit(QF_CRIT_STAT_TYPE stat); 00244 00245 #include "qep_port.h" /* QEP port */ 00246 #include "qk_port.h" /* QK port */ 00247 #include "qf.h" /* QF platform-independent public interface */ 00248 00249 #endif /* qf_port_h */ 00250
1.7.6.1