亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? main.c

?? state machine working with rtos
?? C
字號:
/****************************************************************************** Product:  Quantum Calculator Example* Version:  Compatible with QEP/C 3.x.yy* Updated:  Oct 24, 2005** Copyright (C) 2002-2005 Quantum Leaps, LLC. All rights reserved.** This example is part of the Quantum Leaps QP/C software, and 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 in conjunction* with a valid QP/C Quantum Leaps commercial license. Quantum Leaps* commercial licenses are designed for users who want to retain proprietary* status of their code. The users who license this software under one of* Quantum Leaps commercial licenses do not use this software under the GPL* and therefore are not subject to any of its terms.** Contact information:* Quantum Leaps Web site:  http://www.quantum-leaps.com* Quantum Leaps licensing: http://www.quantum-leaps.com/licensing* Quantum Leaps products:  http://www.quantum-leaps.com/products* e-mail:                  sales@quantum-leaps.com*****************************************************************************/#include "qep_port.h"#include "qcalc.h"#include "qassert.h"#include <termios.h>#include <unistd.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Q_DEFINE_THIS_FILE/* Local objects -----------------------------------------------------------*/static QCalc l_qcalc;      /* quantum calculator hierarchical state machine */struct termios l_saved;         /* structure with saved terminal attributes *//*..........................................................................*/int main() {    struct termios tio;                     /* modified terminal attributes */    tcgetattr(0, &l_saved);         /* save the current terminal attributes */    tcgetattr(0, &tio);              /* get the current terminal attributes */    tio.c_lflag &= ~ICANON;                       /* disable canonical mode */    tcsetattr(0, TCSANOW, &tio);                  /* set the new attributes */    QCalc_ctor(&l_qcalc);    printf("QCalc example, built on %s at %s,\n"           "QEP/C: %s.\nPress ESC to quit...\n",           __DATE__, __TIME__, QEP_getVersion());    QHsm_init((QHsm *)&l_qcalc, (QEvent *)0);      /* trigger initial tran. */    for (;;) {                                                /* event loop */        QCalcEvt e;        printf("\n[%s] >", QCalc_getDisplay(&l_qcalc)); /* show the display */        fflush(stdout);        read(0, &e.keyId, 1);        /* read one character from the console */        printf(": ");        fflush(stdout);        switch (e.keyId) {            case 'c':                         /* intentionally fall through */            case 'C': {                ((QEvent *)&e)->sig = C_SIG;                break;            }            case 'e':                         /* intentionally fall through */            case 'E': {                ((QEvent *)&e)->sig = CE_SIG;                break;            }            case '0': {                ((QEvent *)&e)->sig = DIGIT_0_SIG;                break;            }            case '1':                         /* intentionally fall through */            case '2':                         /* intentionally fall through */            case '3':                         /* intentionally fall through */            case '4':                         /* intentionally fall through */            case '5':                         /* intentionally fall through */            case '6':                         /* intentionally fall through */            case '7':                         /* intentionally fall through */            case '8':                         /* intentionally fall through */            case '9': {                ((QEvent *)&e)->sig = DIGIT_1_9_SIG;                break;            }            case '.': {                ((QEvent *)&e)->sig = POINT_SIG;                break;            }            case '+':                         /* intentionally fall through */            case '-':                         /* intentionally fall through */            case '*':                         /* intentionally fall through */            case '/': {                ((QEvent *)&e)->sig = OPER_SIG;                break;            }            case '=':                         /* intentionally fall through */            case '\r': {                                       /* Enter key */                ((QEvent *)&e)->sig = EQUALS_SIG;                break;            }            case '\33': {                                        /* ESC key */                ((QEvent *)&e)->sig = TERMINATE_SIG;                break;            }            default: {                ((QEvent *)&e)->sig = IGNORE_SIG;                break;            }        }        QHsm_dispatch((QHsm *)&l_qcalc, (QEvent *)&e);/* dispatch the event */    }    return 0;}/*..........................................................................*/void Q_assert_handler(char const *file, int line) {    fprintf(stderr, "Assertion failed in %s, line %d", file, line);    exit(-1);}/*..........................................................................*/void QCalc_updateState(QCalc *me, char const *s) {    (void)me;              /* suppress the "unreferenced parameter" warning */    printf("%s;", s);}/*..........................................................................*/void QCalc_exit(QCalc *me) {    (void)me;              /* suppress the "unreferenced parameter" warning */    printf("Bye, Bye!");    tcsetattr(0, TCSANOW, &l_saved);/*restore the saved terminal attributes */    exit(0);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天使萌一区二区三区免费观看| 九九**精品视频免费播放| 制服丝袜亚洲色图| 成人一区二区在线观看| 视频一区视频二区在线观看| 欧美激情一区二区在线| 91精品国产色综合久久ai换脸| 99久久精品99国产精品| 国产精品影视在线观看| 日韩影院免费视频| 亚洲精品欧美二区三区中文字幕| 欧美精品一区二区三区一线天视频| 欧美性大战久久久| 成人ar影院免费观看视频| 国产在线一区二区综合免费视频| 亚洲精品免费电影| 国产精品午夜免费| 久久久久久免费毛片精品| 日韩一区二区精品在线观看| 欧美视频一区在线| 欧洲中文字幕精品| 91免费视频网| 99视频精品在线| 成人免费高清视频| 亚洲伊人伊色伊影伊综合网| 精品欧美一区二区在线观看 | 欧美日韩性生活| 成人av在线播放网站| 国产毛片精品一区| 精彩视频一区二区| 美女网站视频久久| 蜜臀av一区二区三区| 婷婷久久综合九色综合绿巨人 | 久久精品国产免费看久久精品| 午夜精品久久久久影视| 午夜视黄欧洲亚洲| 亚洲裸体在线观看| 亚洲欧洲色图综合| 亚洲免费观看高清完整版在线| 国产视频一区二区在线| 国产亚洲综合性久久久影院| 久久精品视频在线免费观看| www久久久久| 国产亚洲成av人在线观看导航| 日韩欧美www| 2023国产一二三区日本精品2022| 日韩免费观看高清完整版| 日韩欧美自拍偷拍| 日韩女优制服丝袜电影| 久久久久久影视| 国产精品看片你懂得| 国产精品毛片久久久久久| 亚洲欧洲另类国产综合| 亚洲精品va在线观看| 亚洲自拍偷拍av| 日韩成人午夜电影| 国内精品在线播放| 风间由美性色一区二区三区| 成年人国产精品| 91精彩视频在线| 91精品国产综合久久久久久| 精品国产一区二区亚洲人成毛片| 亚洲精品一区二区在线观看| 久久婷婷久久一区二区三区| 国产精品久久影院| 一卡二卡欧美日韩| 日本成人在线视频网站| 不卡的av在线播放| 国产精品久久一卡二卡| 最新高清无码专区| 亚洲一区二区三区视频在线播放| 亚洲欧美经典视频| 天天色 色综合| 国产在线一区二区综合免费视频| 成年人午夜久久久| 欧美精品三级在线观看| 久久精品男人天堂av| 午夜国产精品一区| 国产精品入口麻豆原神| 91 com成人网| 99v久久综合狠狠综合久久| 秋霞午夜av一区二区三区| 中文字幕在线观看一区| 精品国产污网站| 欧美午夜精品久久久久久超碰| 国产精品一区三区| 男人操女人的视频在线观看欧美| 中文字幕在线不卡| 久久久久久久久久久电影| 欧美挠脚心视频网站| 91麻豆国产自产在线观看| 国产中文字幕一区| 午夜精品久久久久久不卡8050| 中文文精品字幕一区二区| 日韩手机在线导航| 欧美午夜精品久久久久久孕妇| 波多野洁衣一区| 国产福利精品导航| 精品中文字幕一区二区| 午夜av一区二区| 亚洲一区二区三区自拍| 亚洲欧美日韩一区二区| 中文字幕中文字幕中文字幕亚洲无线| 日韩午夜在线播放| 欧美另类久久久品| 欧美天堂亚洲电影院在线播放| 99久久er热在这里只有精品66| 国产激情一区二区三区桃花岛亚洲| 免费人成在线不卡| 日本美女视频一区二区| 亚洲国产综合色| 亚洲高清免费观看高清完整版在线观看 | 一本色道久久综合亚洲精品按摩| 福利一区福利二区| 国产精品亚洲视频| 国产乱人伦偷精品视频免下载 | 国产香蕉久久精品综合网| 日韩午夜在线观看| 亚洲精品在线一区二区| 久久影院视频免费| 中文欧美字幕免费| 亚洲欧洲av一区二区三区久久| 国产精品视频一二三区| 国产精品麻豆久久久| 亚洲女爱视频在线| 亚洲综合激情小说| 午夜久久久影院| 日韩不卡在线观看日韩不卡视频| 欧美aaaaaa午夜精品| 国产在线视频一区二区三区| 国产ts人妖一区二区| 91在线观看下载| 91福利视频网站| 欧美一区二区成人| 久久精品网站免费观看| 亚洲女人****多毛耸耸8| 亚洲成人综合网站| 久久精品国产免费| 成人av电影在线| 欧美体内she精高潮| 精品成人在线观看| 国产精品久久福利| 亚洲1区2区3区视频| 久久99精品网久久| 99精品欧美一区二区三区小说| 色哟哟日韩精品| 日韩视频在线观看一区二区| 国产欧美综合在线| 亚洲成人免费观看| 国产成人午夜精品5599| 99re视频精品| 欧美一级黄色录像| ...av二区三区久久精品| 石原莉奈在线亚洲二区| 成人国产免费视频| 91.com在线观看| 国产精品第五页| 美女诱惑一区二区| 色婷婷一区二区| 久久综合九色综合97婷婷| 亚洲美女区一区| 精品亚洲porn| 欧美日韩久久久一区| 国产精品久久久久久久浪潮网站| 五月综合激情网| 色综合天天综合网天天狠天天| 日韩一区二区三区视频在线观看| 亚洲人亚洲人成电影网站色| 美女mm1313爽爽久久久蜜臀| 欧洲亚洲精品在线| 中文字幕在线不卡视频| 精品在线免费观看| 欧美色爱综合网| 中文字幕一区二区三区不卡在线| 美女视频第一区二区三区免费观看网站 | 亚洲人成电影网站色mp4| 久久99久久精品| 欧美放荡的少妇| 亚洲国产综合人成综合网站| 成人av网站在线| 欧美精彩视频一区二区三区| 奇米综合一区二区三区精品视频| 欧美天堂亚洲电影院在线播放| 自拍偷自拍亚洲精品播放| 国产超碰在线一区| 精品国产一区二区三区久久久蜜月 | www.性欧美| 国产亚洲精品久| 国产麻豆视频精品| 久久男人中文字幕资源站| 日本不卡中文字幕| 91精品国产免费| 日本在线播放一区二区三区| 欧美日韩一区三区| 亚洲激情在线激情| 色狠狠av一区二区三区| 一级中文字幕一区二区| 色婷婷综合久久久中文字幕| 亚洲精品国产一区二区精华液| 99久久99久久免费精品蜜臀|