qk_port.cpp

来自「Quantum Platform(QP) is a family of very」· C++ 代码 · 共 51 行

CPP
51
字号
//////////////////////////////////////////////////////////////////////////////// Product: QK/C++ 3.0 port to x86, DOS, Turbo C++ 1.01, Large model// Last Updated for Version: 3.2.05// Date of the Last Update:  Jan 20, 2007////                    Q u a n t u m     L e a P s//                    ---------------------------//                    innovating embedded systems//// Copyright (C) 2002-2007 Quantum Leaps, LLC. All rights reserved.//// This software may be distributed and modified under the terms of the GNU// General Public License version 2 (GPL) as published by the Free Software// Foundation and appearing in the file GPL.TXT included in the packaging of// this file. Please note that GPL Section 2[b] requires that all works based// on this software must also be made publicly available under the terms of// the GPL ("Copyleft").//// Alternatively, this software may be distributed and modified under the// terms of Quantum Leaps commercial licenses, which expressly supersede// the GPL and are specifically designed for licensees interested in// retaining the proprietary status of their code.//// Contact information:// Quantum Leaps Web site:  http://www.quantum-leaps.com// e-mail:                  sales@quantum-leaps.com//////////////////////////////////////////////////////////////////////////////#include "qk_pkg.h"//............................................................................//lint -e970 -e971               ignore MISRA rules 13 and 14 in this functionchar const *QK::getPortVersion(void) {    return "1.2.05";}//............................................................................void QK_isrExit_(uint8_t pin) {    disable();    outportb(0x20, 0x20);              // send EOI to the interrupt controller    QF_QS_ISR_EXIT(QK_currPrio_);    QK_currPrio_ = pin;    if (pin <= QF_MAX_ACTIVE) {                 // is it preemption of a task?        if ((QF::active_[pin]->osObject_ & QK_FPU_THREAD) != 0) { // FPU used?            QK_scheduleExt_();     // perform FPU context switch, if necessary        }        else {            QK_schedule_();                 // no FPU context switch necessary        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?