|
QP/C
|
00001 /***************************************************************************** 00002 * Product: QF/C port for Lint with QK, Generic C compiler 00003 * Last Updated for Version: 4.4.00 00004 * Date of the Last Update: Jan 26, 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 software may be distributed and modified under the terms of the GNU 00013 * General Public License version 2 (GPL) as published by the Free Software 00014 * Foundation and appearing in the file GPL.TXT included in the packaging of 00015 * this file. Please note that GPL Section 2[b] requires that all works based 00016 * on this software must also be made publicly available under the terms of 00017 * the GPL ("Copyleft"). 00018 * 00019 * Alternatively, this software may be distributed and modified under the 00020 * terms of Quantum Leaps commercial licenses, which expressly supersede 00021 * the GPL and are specifically designed for licensees interested in 00022 * retaining the proprietary status of their code. 00023 * 00024 * Contact information: 00025 * Quantum Leaps Web site: http://www.quantum-leaps.com 00026 * e-mail: info@quantum-leaps.com 00027 *****************************************************************************/ 00028 #ifndef qf_port_h 00029 #define qf_port_h 00030 00053 #define QF_MAX_ACTIVE 63 00054 00072 #define QF_MAX_EPOOL 3 00073 00091 #define QF_EVENT_SIZ_SIZE 2 00092 00111 #define QF_EQUEUE_CTR_SIZE 1 00112 00133 #define QF_MPOOL_SIZ_SIZE 2 00134 00153 #define QF_MPOOL_CTR_SIZE 2 00154 00172 #define QF_TIMEEVT_CTR_SIZE 2 00173 00182 #define QF_INT_DISABLE() intDisable() 00183 00192 #define QF_INT_ENABLE() intEnable() 00193 00194 void intDisable(void); 00195 void intEnable(void); 00196 00203 #define QF_CRIT_STAT_TYPE crit_stat_t 00204 00217 #define QF_CRIT_ENTRY(stat_) ((stat_) = critEntry()) 00218 00232 #define QF_CRIT_EXIT(stat_) critExit(stat_) 00233 00234 typedef unsigned int crit_stat_t; 00235 QF_CRIT_STAT_TYPE critEntry(void); 00236 void critExit(QF_CRIT_STAT_TYPE stat); 00237 00238 #include "qep_port.h" /* QEP port */ 00239 #include "qk_port.h" /* QK port */ 00240 #include "qf.h" /* QF platform-independent public interface */ 00241 00242 #endif /* qf_port_h */ 00243
1.7.6.1