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

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

?? sysnvram.c

?? at91rm9200 bsp at91rm9200 bsp
?? C
字號:
/* templateNvRam.c - NVRAM driver *//* Copyright 1984-2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01b,26apr01,m_h  convert tabs to spaces for readability01a,12apr01,m_h  created.*//*.SH TODO - Replace the documentation for this template driver with documentationfor the driver being written.   - Begin with an overview of the complete device.  Indicate if the new driveronly implements a sub-section of the whole device or not. - Describe all of the operating modes of the device, and indicate whichones this driver implements. - Document the device initialization steps to be used in the BSP to createand initialize the device.  Document all the macros thatcan be used to customize the driver to a particular hardware environment. - Document anything that will help the user to understand how this deviceworks and interacts with this driver.DESCRIPTIONThis template is for byte-oriented non-volatile RAM (NVRAM).  Typical usesare EEPROMs, static RAM, and any other byte-oriented device.This is boilerplate driver code.  It is to be included in source forminto sysLib.c.  Macros are used to provide the actual working elementswhile this code provides the generic logic.The following numeric value macros are required:  NV_RAM_ADRS      - address of first non-volatile byte  NV_RAM_INTRVL    - address interval between bytes  NV_RAM_SIZE      - total number of bytes in device  NV_BOOT_OFFSET   - Offset to first byte of boot line informationThe following procedural macros are used.  If not defined by thespecific BSP, then default procedures assuming static RAM with nospecial read/write requirements will be used.  NV_RAM_READ(x)    - Read and return one byte at offset (x).  NV_RAM_WRITE(x,y) - Write data (y) at offset (x).  NV_RAM_WR_ENBL    - procedure to enable writing, if any  NV_RAM_WR_DSBL    - procedure to disable writing, if any*/#include "vxWorks.h"#include "config.h"/* default procedures assume static ram with no special r/w routines */#ifndef NV_RAM_WR_ENBL#   define NV_RAM_WR_ENBL    /* no write enable procedure */#endif /*NV_RAM_WR_ENBL*/#ifndef NV_RAM_WR_DSBL#   define NV_RAM_WR_DSBL    /* no write disable procedure */#endif /*NV_RAM_WR_DSBL*/#ifndef NV_RAM_READ#   define NV_RAM_READ(x) \    (*(UCHAR *)((int)NV_RAM_ADRS + ((x) * NV_RAM_INTRVL)))#endif /*NV_RAM_READ*/#ifndef NV_RAM_WRITE#   define NV_RAM_WRITE(x,y) \    (*(UCHAR *)((int)NV_RAM_ADRS + ((x) * NV_RAM_INTRVL)) = (y))#endif /*NV_RAM_WRITE*/    /******************************************************************************** sysNvRamGet - get the contents of non-volatile RAM** This routine copies the contents of non-volatile memory into a specified* string.  The string is terminated with an EOS.** RETURNS: OK, or ERROR if access is outside the non-volatile RAM range.** SEE ALSO: sysNvRamSet()*/STATUS sysNvRamGet    (    char *string,    /* where to copy non-volatile RAM    */    int strLen,      /* maximum number of bytes to copy   */    int offset       /* byte offset into non-volatile RAM */    )    {    offset += NV_BOOT_OFFSET;   /* boot line begins at <offset> = 0 */    if ((offset < 0)     || (strLen < 0)     || ((offset + strLen) > NV_RAM_SIZE))        return (ERROR);    while (strLen--)        {        *string = NV_RAM_READ (offset);        string++, offset++;        }    *string = EOS;    return (OK);    }/********************************************************************************* sysNvRamSet - write to non-volatile RAM** This routine copies a specified string into non-volatile RAM.** RETURNS: OK, or ERROR if access is outside the non-volatile RAM range.** SEE ALSO: sysNvRamGet()*/STATUS sysNvRamSet    (    char *string,     /* string to be copied into non-volatile RAM */    int strLen,       /* maximum number of bytes to copy           */    int offset        /* byte offset into non-volatile RAM         */    )    {    STATUS result = OK;    offset += NV_BOOT_OFFSET;   /* boot line begins at <offset> = 0 */    if ((offset < 0)     || (strLen < 0)     || ((offset + strLen) > NV_RAM_SIZE))        return ERROR;    NV_RAM_WR_ENBL;    while (strLen--)        {        char data;        data = *string; /* avoid any macro side effects */        NV_RAM_WRITE (offset, data);        /* verify data */        if (NV_RAM_READ (offset) != (UCHAR)data)            {            result = ERROR;            goto exit;            }        string++, offset++;        }    exit:    NV_RAM_WR_DSBL;    return result;    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩三区在线观看| 欧美mv和日韩mv的网站| 蜜臀久久99精品久久久画质超高清 | 91色视频在线| www.日本不卡| 99精品国产99久久久久久白柏| 国产精华液一区二区三区| 狠狠色丁香九九婷婷综合五月| 久久aⅴ国产欧美74aaa| 国产在线不卡一区| 国产suv一区二区三区88区| 国产精品中文有码| av高清久久久| 欧美系列一区二区| 91精选在线观看| 日韩精品在线一区| 欧美国产欧美亚州国产日韩mv天天看完整 | 自拍偷拍欧美精品| 亚洲国产美女搞黄色| 无码av免费一区二区三区试看 | 亚洲另类在线视频| 亚洲国产精品人人做人人爽| 亚洲gay无套男同| 麻豆国产精品视频| 国产传媒欧美日韩成人| aaa国产一区| 欧美午夜片在线看| 精品国产乱码久久| 亚洲激情图片一区| 麻豆freexxxx性91精品| 99精品热视频| 日韩一卡二卡三卡四卡| 国产精品情趣视频| 午夜电影久久久| 国产高清不卡一区二区| 色菇凉天天综合网| 久久综合色天天久久综合图片| 自拍偷拍国产亚洲| 国产一区二区视频在线| 欧美日韩二区三区| 国产精品免费看片| 久久精品国产99| 色域天天综合网| 久久久久久久久久电影| 亚洲国产另类精品专区| 国产xxx精品视频大全| 欧美精品免费视频| 国产精品家庭影院| 国产一区二区三区黄视频 | 六月丁香综合在线视频| 色综合色狠狠天天综合色| 欧美va在线播放| 亚洲主播在线观看| 99久久久久免费精品国产| 精品乱人伦小说| 亚洲www啪成人一区二区麻豆 | 亚洲裸体在线观看| 久久国产综合精品| 在线不卡欧美精品一区二区三区| 中文字幕日韩一区| 成人精品视频.| 国产亚洲欧美色| 美女在线观看视频一区二区| 精品视频资源站| 亚洲电影第三页| 欧美性高清videossexo| 亚洲视频香蕉人妖| 色天使久久综合网天天| 中文字幕一区二区不卡| 99精品视频免费在线观看| 中文在线一区二区| 国产成人高清视频| 国产欧美一区二区精品性色| 国产精品一二三四区| xnxx国产精品| 国产不卡视频在线观看| 国产精品免费丝袜| 色爱区综合激月婷婷| 亚洲狼人国产精品| 欧美色中文字幕| 天堂久久久久va久久久久| 欧美日韩三级在线| 青青草原综合久久大伊人精品优势| 精品一区二区免费视频| 久久精品在线免费观看| 成人午夜伦理影院| 国产精品久久777777| 91久久精品国产91性色tv| 亚洲国产视频一区二区| 日韩情涩欧美日韩视频| 国产一区二区视频在线| 亚洲天堂免费看| 欧美视频完全免费看| 青娱乐精品在线视频| 欧美激情综合网| 色欧美日韩亚洲| 蜜桃免费网站一区二区三区| 国产日本欧洲亚洲| 色噜噜狠狠色综合中国| 日韩精品久久久久久| 久久综合九色综合久久久精品综合| 国产一区二区精品在线观看| 综合久久综合久久| 欧美电影免费观看高清完整版| 国产高清不卡一区二区| 亚洲高清视频在线| 久久亚洲春色中文字幕久久久| av一本久道久久综合久久鬼色| 午夜激情久久久| 国产精品第13页| 欧美丰满高潮xxxx喷水动漫| 国产成人激情av| 免费在线成人网| 欧美激情一区二区三区四区| 欧美日精品一区视频| 国产精品一卡二卡在线观看| 亚洲韩国精品一区| 国产精品福利一区| 91精品国产麻豆国产自产在线| 大桥未久av一区二区三区中文| 日韩一区精品字幕| 亚洲激情图片一区| 国产拍欧美日韩视频二区| 91麻豆精品国产自产在线观看一区| 高潮精品一区videoshd| 久久爱www久久做| 天天综合网 天天综合色| 亚洲激情男女视频| 国产日韩欧美麻豆| xf在线a精品一区二区视频网站| 欧美伊人久久大香线蕉综合69| 国产成人av福利| 蜜臀av一区二区| 午夜久久久久久电影| 国产精品欧美久久久久无广告 | 欧美午夜宅男影院| 91日韩精品一区| 国产.欧美.日韩| 丁香一区二区三区| 国产69精品久久99不卡| 国产一区亚洲一区| 国产毛片精品视频| 国产一区视频网站| 国产一区二区三区综合| 美女视频一区二区| 青娱乐精品视频| 久久99热99| 韩国精品主播一区二区在线观看 | 国产午夜三级一区二区三| 91精品久久久久久久99蜜桃| 欧美在线影院一区二区| 色哦色哦哦色天天综合| 日本丶国产丶欧美色综合| 99久久99精品久久久久久| 99热国产精品| 91女神在线视频| 色www精品视频在线观看| 日本福利一区二区| 欧美美女激情18p| 日韩欧美电影在线| 久久新电视剧免费观看| 国产欧美视频在线观看| 日本一二三不卡| 亚洲丝袜精品丝袜在线| 一区二区三区毛片| 人人爽香蕉精品| 国产福利不卡视频| 91视频91自| 日韩一区国产二区欧美三区| 亚洲精品一区二区三区香蕉| xnxx国产精品| 亚洲欧美日本在线| 午夜精品久久久久久久99水蜜桃| 日本成人在线网站| 国产一区二区不卡在线| 成人午夜视频福利| 欧美日韩国产高清一区| 久久综合av免费| 亚洲男人的天堂一区二区| 婷婷夜色潮精品综合在线| 精品亚洲国内自在自线福利| 国产suv一区二区三区88区| 在线亚洲欧美专区二区| 日韩欧美在线影院| 最新欧美精品一区二区三区| 丝袜亚洲精品中文字幕一区| 国产精品一区二区在线看| 欧洲亚洲国产日韩| 久久精品视频一区二区三区| 亚洲免费在线视频一区 二区| 亚洲va欧美va人人爽| 成人av电影在线| 69堂成人精品免费视频| 国产视频911| 午夜精品视频一区| 成人精品视频.| 精品久久久影院| 亚洲午夜精品网| av一区二区三区四区| 精品久久久影院|