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

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

?? syslib.c

?? 菲利普22系列 vxworks bsp 可以用來可以和其他版本的ARM vxworks bsp(特別是7內核的進行比較)進行比較可以加深對BSP的理解和掌握
?? C
?? 第 1 頁 / 共 2 頁
字號:
#endif /* FORCE_DEFAULT_BOOT_LINE */

    sysSerialHwInit ();      /* initialize serial data structure */
}

/******************************************************************************
*
* sysHwInit2 - additional system configuration and initialization
*
* This routine connects system interrupts and does any additional
* configuration necessary.
*
* RETURNS: N/A
*
* NOMANUAL
*
* Note: this is called from sysClkConnect() in the timer driver.
*/

void sysHwInit2 (void)
{
    /* initialize the interrupt library and interrupt driver */
    intLibInit (LPC2210_INTNUMLEVELS, LPC2210_INTNUMLEVELS, INT_MODE);
    lpc2210IntDevInit();

    /* connect sys clock interrupt and auxiliary clock interrupt */
    (void)intConnect(INT_VEC_TIMER0, sysClkInt, 0);
    /*(void)intConnect(INT_VEC_TIMER1, sysAuxClkInt, 0);*/
    (void)intConnect(INT_VEC_EXTINT3, (VOIDFUNCPTR)IRQ_Eint3, 0);
    
    /* connect serial interrupt */
    sysSerialHwInit2();
}

/******************************************************************************
*
* sysPhysMemTop - get the address of the top of physical memory
*
* This routine returns the address of the first missing byte of memory,
* which indicates the top of memory.
*
* Normally, the user specifies the amount of physical memory with the
* macro LOCAL_MEM_SIZE in config.h.  BSPs that support run-time
* memory sizing do so only if the macro LOCAL_MEM_AUTOSIZE is defined.
* If not defined, then LOCAL_MEM_SIZE is assumed to be, and must be, the
* true size of physical memory.
*
* NOTE: Do no adjust LOCAL_MEM_SIZE to reserve memory for application
* use.  See sysMemTop() for more information on reserving memory.
*
* RETURNS: The address of the top of physical memory.
*
* SEE ALSO: sysMemTop()
*/

char * sysPhysMemTop (void)
    {
    static char * physTop = NULL;

    if (physTop == NULL)
        {
#ifdef LOCAL_MEM_AUTOSIZE

        /* If auto-sizing is possible, this would be the spot.  */

#    error   "Dynamic memory sizing not supported"

#else
        /* Don't do autosizing, if size is given */

        physTop = (char *)(LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE);

#endif /* LOCAL_MEM_AUTOSIZE */
        }

    return physTop;
    }

/******************************************************************************
*
* sysMemTop - get the address of the top of VxWorks memory
*
* This routine returns a pointer to the first byte of memory not
* controlled or used by VxWorks.
*
* The user can reserve memory space by defining the macro USER_RESERVED_MEM
* in config.h.  This routine returns the address of the reserved memory
* area.  The value of USER_RESERVED_MEM is in bytes.
*
* RETURNS: The address of the top of VxWorks memory.
*/

char * sysMemTop (void)
    {
    static char * memTop = NULL;

    if (memTop == NULL)
        {
        memTop = sysPhysMemTop () - USER_RESERVED_MEM;
        }

    return memTop;
    }

/******************************************************************************
*
* sysToMonitor - transfer control to the ROM monitor
*
* This routine transfers control to the ROM monitor.  It is usually called
* only by reboot() -- which services ^X -- and bus errors at interrupt
* level.  However, in some circumstances, the user may wish to introduce a
* new <startType> to enable special boot ROM facilities.
*
* RETURNS: Does not return.
*/

STATUS sysToMonitor
    (
    int startType    /* passed to ROM to tell it how to boot */
    )
    {
    FUNCPTR     pRom;
    UINT32 *    p = (UINT32 *)ROM_TEXT_ADRS;
#ifdef INCLUDE_SNGKS32C_END
    END_OBJ *   pEnd;
#endif

    /*
     * Examine ROM - if it's a VxWorks boot ROM, jump to the warm boot entry
     * point; otherwise jump to the start of the ROM.
     * A VxWorks boot ROM begins
     *    MOV    R0,#BOOT_COLD
     *    B    ...
     *    DCB    "Copyright"
     * We check the first and third words only. This could be tightened up
     * if required (see romInit.s).
     */

#if (_BYTE_ORDER == _LITTLE_ENDIAN)
    if (p[0] == 0xE3A00002 && p[2] == 0x79706F43)
        pRom = (FUNCPTR)(ROM_TEXT_ADRS + 4);    /* warm boot address */
    else
        pRom = (FUNCPTR)ROM_TEXT_ADRS;        /* start of ROM */
#else /* (_BYTE_ORDER == _LITTLE_ENDIAN) */
    if (p[0] == 0xE3A00002 && p[2] == 0x436F7079)
        pRom = (FUNCPTR)(ROM_TEXT_ADRS + 4);    /* warm boot address */
    else
        pRom = (FUNCPTR)ROM_TEXT_ADRS;        /* start of ROM */
#endif /* (_BYTE_ORDER == _LITTLE_ENDIAN) */

#ifdef INCLUDE_SNGKS32C_END
    /*
     * Reset Ethernet controller to prevent it doing anything
     * before jumping to the bootrom.
     */

    pEnd = endFindByName ("sng", 0);

    if (pEnd != NULL)
        pEnd->pFuncTable->stop(pEnd->devObject.pDevice);
#endif /* INCLUDE_SNGKS32C_END */

    (*pRom)(startType);    /* jump to bootrom */

    return OK;        /* in case we ever continue from ROM monitor */
    }

/****************************************************************************
*
* sysProcNumGet - get the processor number
*
* This routine returns the processor number for the CPU board, which is
* set with sysProcNumSet().
*
* RETURNS: The processor number for the CPU board.
*
* SEE ALSO: sysProcNumSet()
*/

int sysProcNumGet (void)
    {
    return 0;
    }

/****************************************************************************
*
* sysProcNumSet - set the processor number
*
* Set the processor number for the CPU board.  Processor numbers should be
* unique on a single backplane.
*
* NOTE
* By convention, only processor 0 should dual-port its memory.
*
* RETURNS: N/A
*
* SEE ALSO: sysProcNumGet()
*/

void sysProcNumSet
    (
    int procNum        /* processor number */
    )
    {
    sysProcNum = procNum;
    }

#ifdef INCLUDE_FLASH

/* 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 */
    )

    {
    STATUS retVal;

    offset += NV_BOOT_OFFSET;   /* boot line begins at <offset> = 0 */

    if ((offset < 0)
     || (strLen < 0)
     || ((offset + strLen) > NV_RAM_SIZE))
        return (ERROR);

    retVal = sysFlashGet (string, strLen, offset);
    string [strLen] = 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         */
    )

    {
    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;

    return (sysFlashSet (string, strLen, offset));

    }

/******************************************************************************
*
* sysFlashBoardDelay - create a delay
*
* This routine is used by flashMem.c to produce specified delays. It
* appears that the Flash driver cannot use taskDelay() at certain
* points.
*
* RETURNS: N/A
*/

void sysFlashBoardDelay (void)
    {
    return;
    }
#endif /* INCLUDE_FLASH */

#ifdef DEBUG
/******************************************************************************
*
* sysDebug - print message using polled serial driver
*
* Use the polled driver to print debug messages.  Useful before the full
* hardware initialization is complete (but only after sysHwInit).
*
* RETURNS: N/A.
*
* NOMANUAL
*/

void sysDebug
    (
    char *str
    )
    {
    int msgSize;
    int msgIx;
    LOCAL SIO_CHAN * pSioChan;        /* serial I/O channel */
    LOCAL BOOL beenHere = FALSE;

    msgSize = strlen (str);

    if (!beenHere)
        {
        sysSerialHwInit ();

        pSioChan = sysSerialChanGet (0);

        sioIoctl (pSioChan, SIO_BAUD_SET, (void *)CONSOLE_BAUD_RATE);

        sioIoctl (pSioChan, SIO_MODE_SET, (void *) SIO_MODE_POLL);

        beenHere = TRUE;
	}

    for (msgIx = 0; msgIx < msgSize; msgIx++)
        {
        while (sioPollOutput (pSioChan, str[msgIx]) == EAGAIN)
            /* do nothing */;
        }
    }
#endif /* DEBUG */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产三级国产aⅴ入口| 一区二区三区视频在线观看 | 日本一区二区成人在线| 国产乱码精品一区二区三区av | 精品视频免费在线| 日韩成人免费看| 精品国产伦一区二区三区免费| 久久99久久久久| 国产日韩精品久久久| gogo大胆日本视频一区| 伊人婷婷欧美激情| 日韩午夜av一区| 国产精品一区二区男女羞羞无遮挡 | 久热成人在线视频| 欧美精品一区二区三区很污很色的 | 无吗不卡中文字幕| 精品对白一区国产伦| 成人免费观看av| 五月婷婷激情综合| 久久一区二区视频| 91国偷自产一区二区三区成为亚洲经典| 亚洲国产精品人人做人人爽| 日韩欧美一区中文| 国产成人一区在线| 午夜欧美在线一二页| 久久婷婷一区二区三区| 91麻豆精东视频| 毛片av中文字幕一区二区| 中文字幕精品综合| 欧美精品在线观看一区二区| 床上的激情91.| 日韩精品免费专区| 亚洲视频图片小说| 久久久久久一二三区| 欧美日韩国产中文| 99久久国产免费看| 经典一区二区三区| 亚洲狠狠爱一区二区三区| 久久久久久毛片| 欧美日韩一区二区三区在线看| 国产91丝袜在线播放| 日本不卡视频在线观看| 亚洲女爱视频在线| 国产欧美综合在线| 欧美日韩国产小视频在线观看| 成人动漫精品一区二区| 美国欧美日韩国产在线播放| 亚洲影院在线观看| 中文字幕一区二区三| 精品免费国产二区三区| 欧美日韩国产天堂| 色哟哟欧美精品| 成人晚上爱看视频| 国产主播一区二区三区| 视频一区视频二区在线观看| 亚洲视频中文字幕| 国产精品人成在线观看免费| 欧美成人午夜电影| 日韩午夜在线播放| 91精品一区二区三区久久久久久 | 成人黄色片在线观看| 久久精品999| 日韩激情av在线| 五月天欧美精品| 亚洲大片精品永久免费| 一区二区三区在线视频观看| 亚洲欧洲日韩女同| 中文字幕一区二区在线观看 | 久久亚洲影视婷婷| 日韩欧美国产1| 日韩欧美黄色影院| 91精品国产入口| 欧美一区二区二区| 91精品啪在线观看国产60岁| 欧美久久一二区| 欧美一区永久视频免费观看| 欧美日韩成人综合在线一区二区| 欧美日韩国产精选| 欧美一区二区网站| 精品粉嫩aⅴ一区二区三区四区 | 欧美一级在线观看| 欧美一级黄色大片| 精品久久久久久久人人人人传媒| 在线不卡免费欧美| 欧美tickling挠脚心丨vk| 日韩免费在线观看| 久久久久9999亚洲精品| 久久久久久久久久久久久久久99 | 国产精品色一区二区三区| 中文字幕欧美区| 亚洲欧洲制服丝袜| 亚洲高清视频在线| 美女在线视频一区| 国产成人av自拍| 99精品1区2区| 欧美日韩一级二级| 精品国产伦一区二区三区免费| 国产一区二区导航在线播放| 国产精品三级av在线播放| 中文字幕一区二区三区在线观看| 国产精品久久久久久妇女6080| 亚洲美女屁股眼交| 免费不卡在线观看| 成人污视频在线观看| 欧美怡红院视频| 日韩精品一区二区三区在线| 日本一区二区三区国色天香| 亚洲三级久久久| 日本美女一区二区三区| 成人午夜在线免费| 欧美日韩一区不卡| 国产欧美精品国产国产专区| 亚洲综合在线第一页| 理论片日本一区| 色诱视频网站一区| 久久奇米777| 午夜精品一区二区三区免费视频| 国产九色sp调教91| 欧美日韩激情一区二区| 亚洲国产高清在线观看视频| 亚洲高清在线视频| 北条麻妃国产九九精品视频| 91精品欧美福利在线观看| 国产农村妇女毛片精品久久麻豆 | 无码av免费一区二区三区试看 | 不卡视频在线看| 欧美精品在线观看一区二区| 国产精品久久久久永久免费观看 | 懂色中文一区二区在线播放| 欧美系列亚洲系列| 欧美国产精品一区二区三区| 日韩精品免费专区| 91精品在线免费| 亚洲精品高清在线观看| 国产精品66部| 日韩西西人体444www| 亚洲老妇xxxxxx| 成人性色生活片免费看爆迷你毛片| 制服丝袜中文字幕一区| 亚洲女同女同女同女同女同69| 国产福利精品导航| 制服丝袜亚洲色图| 亚洲综合男人的天堂| 97久久超碰精品国产| 国产亚洲欧美激情| 麻豆一区二区三| 欧美一区在线视频| 亚洲va欧美va国产va天堂影院| 成人永久aaa| 国产日韩欧美亚洲| 国产美女av一区二区三区| 91精品国产色综合久久ai换脸| 亚洲国产欧美在线| 精品婷婷伊人一区三区三| 亚洲男人的天堂在线观看| 成人av在线资源网站| 中文字幕av不卡| eeuss国产一区二区三区| 国产亚洲污的网站| 国产精品一二一区| 久久综合九色综合97婷婷| 韩国av一区二区| 精品国产乱码久久久久久久久| 免费成人在线视频观看| 欧美一区二区播放| 青娱乐精品视频| 日韩精品综合一本久道在线视频| 日韩激情视频网站| 欧美tk—视频vk| 国产经典欧美精品| 亚洲国产高清不卡| 91麻豆蜜桃一区二区三区| 艳妇臀荡乳欲伦亚洲一区| 欧洲色大大久久| 丝瓜av网站精品一区二区| 91精品国产一区二区三区香蕉| 琪琪一区二区三区| 精品精品国产高清一毛片一天堂| 精品午夜久久福利影院| 久久久久亚洲蜜桃| 99久久久国产精品| 亚洲激情自拍视频| 欧美剧情片在线观看| 韩国三级在线一区| 中文字幕在线不卡一区二区三区| 91小视频免费看| 午夜精品久久久| 欧美变态tickling挠脚心| 国产精品亚洲第一| 亚洲女同一区二区| 欧美一级片免费看| 国产iv一区二区三区| 亚洲美女区一区| 欧美一级理论性理论a| 国产精品99久久久久久似苏梦涵 | 69p69国产精品| 国产成人无遮挡在线视频| 亚洲理论在线观看| 精品免费视频一区二区| 成人av中文字幕|