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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? portmacro.h

?? Modbus協議的源代碼 Modbus協議的源代碼、 Modbus協議的源代碼 Modbus協議的源代碼
?? H
字號:
/*
    FreeRTOS V4.1.1 - Copyright (C) 2003-2005 Richard Barry.
    Modification for STR71X/GCC -  Copyright (C) 2006 Christian Walter.

    This file is part of the FreeRTOS distribution.

    FreeRTOS is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    FreeRTOS is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with FreeRTOS; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    A special exception to the GPL can be applied should you wish to distribute
    a combined work that includes FreeRTOS, without being obliged to provide
    the source code for any proprietary components.  See the licensing section 
    of http://www.FreeRTOS.org for full details of how and when the exception
    can be applied.

    ***************************************************************************
    See http://www.FreeRTOS.org for documentation, latest information, license 
    and contact details.  Please ensure to read the configuration and relevant 
    port sections of the online documentation.
    ***************************************************************************
*/

#ifndef PORTMACRO_H
#define PORTMACRO_H

/* ----------------------- Defines ------------------------------------------*/
#define portCHAR        char
#define portFLOAT       float
#define portDOUBLE      double
#define portLONG        long
#define portSHORT       short
#define portSTACK_TYPE  unsigned portLONG
#define portBASE_TYPE   portLONG

#if( configUSE_16_BIT_TICKS == 1 )
typedef unsigned portSHORT portTickType;

#define portMAX_DELAY ( portTickType ) 0xffff
#else
typedef unsigned portLONG portTickType;

#define portMAX_DELAY ( portTickType ) 0xffffffff
#endif

/* ----------------------- Defines (Architecture) ---------------------------*/

#define portSTACK_GROWTH        ( -1 )
#define portTICK_RATE_MS        ( ( portTickType ) 1000 / configTICK_RATE_HZ )
#define portBYTE_ALIGNMENT      4

/* ----------------------- Global variables ---------------------------------*/
extern volatile unsigned portLONG ulCriticalNesting;

/*------------------------ Defines (Scheduler) ------------------------------*/
/*
 * portRESTORE_CONTEXT, portRESTORE_CONTEXT, portENTER_SWITCHING_ISR
 * and portEXIT_SWITCHING_ISR can only be called from ARM mode, but
 * are included here for efficiency.  An attempt to call one from
 * THUMB mode code will result in a compile time error.
 */

#define portRESTORE_CONTEXT()                                           \
do {                                                                    \
    extern void * volatile pxCurrentTCB;                                \
    /* Set the LR to the task stack. */                                 \
    asm volatile ( "LDR     R0, %0" : : "m" (pxCurrentTCB) );           \
    asm volatile ( "LDR     LR, [R0]" );                                \
                                                                        \
    /* The critical nesting depth is the first item on the stack. */    \
    /* Load it into the ulCriticalNesting variable. */                  \
    asm volatile ( "LDR     R0, =ulCriticalNesting" );                  \
    asm volatile ( "LDMFD   LR!, {R1}" );                               \
    asm volatile ( "STR     R1, [R0]" );                                \
                                                                        \
    /* Get the SPSR from the stack. */                                  \
    asm volatile ( "LDMFD   LR!, {R0}" );                               \
    asm volatile ( "MSR     SPSR, R0" );                                \
                                                                        \
    /* Restore all system mode registers for the task. */               \
    asm volatile ( "LDMFD   LR, {R0-R14}^" );                           \
    asm volatile ( "NOP" );                                             \
                                                                        \
    /* Restore the return address. */                                   \
    asm volatile ( "LDR     LR, [LR, #+60]" );                          \
                                                                        \
    /* And return - correcting the offset in the LR to obtain the */    \
    /* correct address. */                                              \
    asm volatile ( "SUBS    PC, LR, #4" );                              \
} while( 0 );

/*-----------------------------------------------------------*/

#define portSAVE_CONTEXT()                                              \
do {                                                                    \
    extern void * volatile pxCurrentTCB;                                \
    /* Push R0 as we are going to use the register. */                  \
    asm volatile ( "STMDB   SP!, {R0}" );                               \
                                                                        \
    /* Set R0 to point to the task stack pointer. */                    \
    asm volatile ( "STMDB   SP,{SP}^" );                                \
    asm volatile ( "SUB     SP, SP, #4" );                              \
    asm volatile ( "LDMIA   SP!,{R0}" );                                \
                                                                        \
    /* Push the return address onto the stack. */                       \
    asm volatile ( "STMDB   R0!, {LR}" );                               \
                                                                        \
    /* Now we have saved LR we can use it instead of R0. */             \
    asm volatile ( "MOV     LR, R0" );                                  \
                                                                        \
    /* Pop R0 so we can save it onto the system mode stack. */          \
    asm volatile ( "LDMIA   SP!, {R0}" );                               \
                                                                        \
    /* Push all the system mode registers onto the task stack. */       \
    asm volatile ( "STMDB   LR,{R0-LR}^");                              \
    asm volatile ( "SUB     LR, LR, #60" );                             \
                                                                        \
    /* Push the SPSR onto the task stack. */                            \
    asm volatile ( "MRS     R0, SPSR" );                                \
    asm volatile ( "STMDB   LR!, {R0}" );                               \
                                                                        \
    asm volatile ( "LDR     R0, =ulCriticalNesting " );                 \
    asm volatile ( "LDR     R0, [R0]" );                                \
    asm volatile ( "STMDB   LR!, {R0}" );                               \
                                                                        \
    /* Store the new top of stack for the task. */                      \
    asm volatile ( "LDR     R0, %0" : : "m" (pxCurrentTCB) );           \
    asm volatile ( "STR     LR, [R0]" );                                \
} while( 0 );


/*-----------------------------------------------------------
 * ISR entry and exit macros.  These are only required if a task switch
 * is required from the ISR.
 *----------------------------------------------------------*/


#define portENTER_SWITCHING_ISR()                                       \
    /* Save the context of the interrupted task. */                     \
    portSAVE_CONTEXT();                                                 \
                                                                        \
    /* We don't know the stack requirements for the ISR, so the frame */\
    /* pointer will be set to the top of the task stack, and the stack*/\
    /* pointer left where it is.  The IRQ stack will get used for any */\
    /* functions calls made by this ISR. */                             \
    asm volatile ( "SUB     R11, LR, #4" );                             \
    do {

#define portEXIT_SWITCHING_ISR( SwitchRequired )                        \
        /* If a switch is required then we just need to call */         \
        /* vTaskSwitchContext() as the context has already been */      \
        /* saved. */                                                    \
        if( SwitchRequired )                                            \
        {                                                               \
            vTaskSwitchContext();                                       \
        }                                                               \
    } while( 0 );                                                       \
    /* Restore the context of which ever task is now the highest */     \
    /* priority that is ready to run. */                                \
    portRESTORE_CONTEXT();

#define portYIELD()                 asm volatile ( "SWI" );

/* ----------------------- Prototypes ---------------------------------------*/

#define portDISABLE_INTERRUPTS( ) vPortDisableInterrupts()
#define portENABLE_INTERRUPTS( ) vPortEnableInterrupts()

extern void     vPortDisableInterrupts( void ) __attribute__ ( ( naked ) );
extern void     vPortEnableInterrupts( void ) __attribute__ ( ( naked ) );
extern void     vPortEnterCritical( void );
extern void     vPortExitCritical( void );

#define portENTER_CRITICAL()    vPortEnterCritical();
#define portEXIT_CRITICAL()     vPortExitCritical();

#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) \
    void vFunction( void *pvParameters )
#define portTASK_FUNCTION( vFunction, pvParameters ) \
    void vFunction( void *pvParameters )

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
菠萝蜜视频在线观看一区| 欧美一级日韩不卡播放免费| 欧美亚洲图片小说| 久久免费美女视频| 亚洲国产日韩a在线播放| 黄页网站大全一区二区| 国产欧美日韩中文久久| 亚洲v日本v欧美v久久精品| 国产一区二区三区蝌蚪| 欧美一级高清大全免费观看| 亚洲免费av高清| 成人精品一区二区三区四区| 精品三级在线观看| 亚洲18女电影在线观看| 色偷偷一区二区三区| 欧美激情艳妇裸体舞| 麻豆国产欧美一区二区三区| 91精品国产高清一区二区三区蜜臀| 国产精品全国免费观看高清| 国产专区欧美精品| 精品嫩草影院久久| 狠狠久久亚洲欧美| 日韩一区二区三区观看| 蜜臂av日日欢夜夜爽一区| 欧美精三区欧美精三区| 亚洲www啪成人一区二区麻豆| 色一区在线观看| 综合久久一区二区三区| a在线欧美一区| 国产精品久久久久三级| 国产成人在线影院| 欧美国产日韩亚洲一区| 懂色一区二区三区免费观看| 国产三级久久久| 国产成人av电影免费在线观看| 欧美精品一区视频| 国产成人精品免费网站| 亚洲国产激情av| 成人午夜激情影院| 亚洲欧美欧美一区二区三区| 一道本成人在线| 亚洲国产精品久久一线不卡| 欧美色欧美亚洲另类二区| 亚洲成人av在线电影| 欧美猛男gaygay网站| 石原莉奈在线亚洲二区| 欧美成人精品福利| 国产精品小仙女| 亚洲欧美在线视频观看| 在线影院国内精品| 男女激情视频一区| 26uuuu精品一区二区| 成人黄色av电影| 亚洲自拍偷拍麻豆| 日韩区在线观看| 国产精品 欧美精品| 综合色天天鬼久久鬼色| 欧美性videosxxxxx| 美女国产一区二区三区| 欧美激情一区二区| 欧美日韩国产一级| 国产曰批免费观看久久久| 亚洲欧美综合色| 4438x成人网最大色成网站| 国产另类ts人妖一区二区| 亚洲免费视频成人| 欧美成人a∨高清免费观看| 成人激情免费网站| 日韩中文字幕1| 国产精品女人毛片| 欧美一级高清片在线观看| 成人精品视频.| 日本在线不卡一区| 国产精品国产三级国产| 5858s免费视频成人| 粉嫩av亚洲一区二区图片| 亚洲第一二三四区| 国产精品萝li| 337p日本欧洲亚洲大胆精品| 色八戒一区二区三区| 国产老肥熟一区二区三区| 五月天激情小说综合| 中文字幕一区二区三区在线观看| 3d成人动漫网站| 色女孩综合影院| 国产成人aaa| 久久精品国产精品亚洲红杏| 一区二区三区高清| 亚洲国产电影在线观看| 欧美一级欧美一级在线播放| 色婷婷激情一区二区三区| 国产精品1区2区| 捆绑变态av一区二区三区| 一区二区三区在线播| 亚洲国产精品ⅴa在线观看| 精品国产123| 91精品国产综合久久久蜜臀粉嫩| 色狠狠一区二区| 99久久免费精品高清特色大片| 国产一区二区三区最好精华液| 亚洲成人免费观看| 亚洲一区二区偷拍精品| 《视频一区视频二区| 国产欧美一区二区精品秋霞影院| 欧美一级精品在线| 51精品秘密在线观看| 欧美精品一二三| 欧美亚一区二区| 在线观看三级视频欧美| 在线中文字幕一区| 91丨porny丨在线| 99re在线精品| 日本黄色一区二区| 91成人免费电影| 欧美日韩国产乱码电影| 欧美日韩精品福利| 日韩一级完整毛片| 日韩欧美国产精品| 久久午夜色播影院免费高清| 精品国产一区二区三区久久影院| 欧美成人在线直播| 欧美精品一区在线观看| 欧美韩国日本综合| 椎名由奈av一区二区三区| 亚洲视频一区二区在线观看| 亚洲视频在线一区二区| 洋洋成人永久网站入口| 性做久久久久久久久| 毛片av一区二区| 国产福利91精品一区二区三区| 国产精品一级二级三级| 99re这里都是精品| 欧美日韩成人激情| 精品成人佐山爱一区二区| 国产日韩精品视频一区| 亚洲欧美一区二区三区孕妇| 亚洲一区二区三区中文字幕 | 97精品国产97久久久久久久久久久久| 成人污污视频在线观看| 一本色道久久加勒比精品| 欧美日韩久久一区| 精品国产一区二区三区四区四| 国产精品麻豆一区二区| 午夜一区二区三区在线观看| 久久66热偷产精品| 成人av综合在线| 欧美人伦禁忌dvd放荡欲情| 久久亚洲一级片| 夜夜爽夜夜爽精品视频| 久久99精品久久久| 91网上在线视频| 欧美一区午夜视频在线观看| 国产片一区二区| 日本中文一区二区三区| 高清日韩电视剧大全免费| 欧美日韩在线播放三区四区| 久久久久久免费毛片精品| 亚洲国产精品天堂| 国产a精品视频| 欧美乱妇23p| 亚洲欧洲三级电影| 久久99精品久久久久婷婷| 91片黄在线观看| 2020国产精品| 偷拍日韩校园综合在线| 成人av综合在线| 久久日一线二线三线suv| 一个色在线综合| 风间由美一区二区av101| 91精品国产美女浴室洗澡无遮挡| 中文字幕中文乱码欧美一区二区 | 亚洲区小说区图片区qvod| 麻豆91在线播放免费| 色噜噜狠狠成人网p站| 久久精品男人的天堂| 蜜桃视频第一区免费观看| 在线视频一区二区免费| 国产精品视频免费看| 日本大胆欧美人术艺术动态| 色婷婷av久久久久久久| 中文幕一区二区三区久久蜜桃| 蜜臀久久99精品久久久画质超高清 | 久久av老司机精品网站导航| 在线日韩一区二区| 中文字幕日韩av资源站| 国产宾馆实践打屁股91| 欧美成人精精品一区二区频| 日韩高清在线一区| 欧美无人高清视频在线观看| 亚洲理论在线观看| av毛片久久久久**hd| 国产精品拍天天在线| 成人sese在线| 国产精品久久综合| 成人免费av在线| 国产精品美女视频| 99热国产精品| 亚洲欧美日韩电影| 欧美性感一区二区三区| 亚洲成a人片在线观看中文|