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

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

?? qs_ek-lm3s6965.c

?? 最新版IAR FOR ARM(EWARM)5.11中的代碼例子
?? C
?? 第 1 頁 / 共 2 頁
字號:
//
//*****************************************************************************
static void
DisplayLogo(const unsigned char *pucLogo, unsigned long ulWidth,
            unsigned long ulHeight, unsigned long ulDelay)
{
    unsigned char *pucDest, ucHigh, ucLow;
    unsigned long ulLoop1, ulLoop2;
    const unsigned char *pucSrc;
    long lIdx;

    //
    // Loop through thirty two intensity levels to fade the logo in from black.
    //
    for(lIdx = 1; lIdx <= 32; lIdx++)
    {
        //
        // Clear the local frame buffer.
        //
        for(ulLoop1 = 0; ulLoop1 < 4096; ulLoop1 += 4)
        {
            *(unsigned long *)(g_pucFrame + ulLoop1) = 0;
        }

        //
        // Get a pointer to the beginning of the logo.
        //
        pucSrc = pucLogo;

        //
        // Get a point to the upper left corner of the frame buffer where the
        // logo will be placed.
        //
        pucDest = (g_pucFrame + (((64 - ulHeight) / 2) * 64) +
                   ((128 - ulWidth) / 4));

        //
        // Copy the logo into the frame buffer, scaling the intensity.  Loop
        // over the rows.
        //
        for(ulLoop1 = 0; ulLoop1 < ulHeight; ulLoop1++)
        {
            //
            // Loop over the columns.
            //
            for(ulLoop2 = 0; ulLoop2 < (ulWidth / 2); ulLoop2++)
            {
                //
                // Get the two nibbles of the next byte from the source.
                //
                ucHigh = pucSrc[ulLoop2] >> 4;
                ucLow = pucSrc[ulLoop2] & 15;

                //
                // Scale the intensity of the two nibbles.
                //
                ucHigh = ((unsigned long)ucHigh * lIdx) / 32;
                ucLow = ((unsigned long)ucLow * lIdx) / 32;

                //
                // Write the two nibbles to the frame buffer.
                //
                pucDest[ulLoop2] = (ucHigh << 4) | ucLow;
            }

            //
            // Increment to the next row of the source and destination.
            //
            pucSrc += (ulWidth / 2);
            pucDest += 64;
        }

        //
        // Wait until an update has been requested.
        //
        while(HWREGBITW(&g_ulFlags, FLAG_UPDATE) == 0)
        {
        }

        //
        // Clear the update request flag.
        //
        HWREGBITW(&g_ulFlags, FLAG_UPDATE) = 0;

        //
        // Display the local frame buffer on the display.
        //
        OSRAM128x64x4ImageDraw(g_pucFrame, 0, 0, 128, 64);
    }

    //
    // Delay for the specified time while the logo is displayed.
    //
    Delay(ulDelay);

    //
    // Loop through the thirty two intensity levels to face the logo back to
    // black.
    //
    for(lIdx = 31; lIdx >= 0; lIdx--)
    {
        //
        // Clear the local frame buffer.
        //
        for(ulLoop1 = 0; ulLoop1 < 4096; ulLoop1 += 4)
        {
            *(unsigned long *)(g_pucFrame + ulLoop1) = 0;
        }

        //
        // Get a pointer to the beginning of the logo.
        //
        pucSrc = pucLogo;

        //
        // Get a point to the upper left corner of the frame buffer where the
        // logo will be placed.
        //
        pucDest = (g_pucFrame + (((64 - ulHeight) / 2) * 64) +
                   ((128 - ulWidth) / 4));

        //
        // Copy the logo into the frame buffer, scaling the intensity.  Loop
        // over the rows.
        //
        for(ulLoop1 = 0; ulLoop1 < ulHeight; ulLoop1++)
        {
            //
            // Loop over the columns.
            //
            for(ulLoop2 = 0; ulLoop2 < (ulWidth / 2); ulLoop2++)
            {
                //
                // Get the two nibbles of the next byte from the source.
                //
                ucHigh = pucSrc[ulLoop2] >> 4;
                ucLow = pucSrc[ulLoop2] & 15;

                //
                // Scale the intensity of the two nibbles.
                //
                ucHigh = ((unsigned long)ucHigh * lIdx) / 32;
                ucLow = ((unsigned long)ucLow * lIdx) / 32;

                //
                // Write the two nibbles to the frame buffer.
                //
                pucDest[ulLoop2] = (ucHigh << 4) | ucLow;
            }

            //
            // Increment to the next row of the source and destination.
            //
            pucSrc += (ulWidth / 2);
            pucDest += 64;
        }

        //
        // Wait until an update has been requested.
        //
        while(HWREGBITW(&g_ulFlags, FLAG_UPDATE) == 0)
        {
        }

        //
        // Clear the update request flag.
        //
        HWREGBITW(&g_ulFlags, FLAG_UPDATE) = 0;

        //
        // Display the local frame buffer on the display.
        //
        OSRAM128x64x4ImageDraw(g_pucFrame, 0, 0, 128, 64);
    }
}

//*****************************************************************************
//
// The main code for the application.  It sets up the peripherals, displays the
// splash screens, and then manages the interaction between the game and the
// screen saver.
//
//*****************************************************************************
int
main(void)
{
    //
    // If running on Rev A2 silicon, turn the LDO voltage up to 2.75V.  This is
    // a workaround to allow the PLL to operate reliably.
    //
    if(DEVICE_IS_REVA2)
    {
        SysCtlLDOSet(SYSCTL_LDO_2_75V);
    }

    //
    // Set the clocking to run at 50MHz from the PLL.
    //
    SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |
                   SYSCTL_XTAL_8MHZ);
    SysCtlPWMClockSet(SYSCTL_PWMDIV_8);

    //
    // Get the system clock speed.
    //
    g_ulSystemClock = SysCtlClockGet();

    //
    // Enable the peripherals used by the application.
    //
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_PWM);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);

    //
    // Configure the GPIOs used to read the state of the on-board push buttons.
    //
    GPIOPinTypeGPIOInput(GPIO_PORTE_BASE,
                         GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3);
    GPIOPadConfigSet(GPIO_PORTE_BASE,
                     GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3,
                     GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
    GPIOPinTypeGPIOInput(GPIO_PORTF_BASE, GPIO_PIN_1);
    GPIOPadConfigSet(GPIO_PORTF_BASE, GPIO_PIN_1, GPIO_STRENGTH_2MA,
                     GPIO_PIN_TYPE_STD_WPU);

    //
    // Configure the LED, speaker, and UART GPIOs as required.
    //
    GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
    GPIOPinTypePWM(GPIO_PORTD_BASE, GPIO_PIN_1);
    GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_0);
    GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_0, 0);

    //
    // Intialize the Ethernet Controller and TCP/IP Stack.
    //
    EnetInit();

    //
    // Configure the first UART for 115,200, 8-N-1 operation.
    //
    UARTConfigSetExpClk(UART0_BASE, SysCtlClockGet(), 115200,
                        (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
                         UART_CONFIG_PAR_NONE));
    UARTEnable(UART0_BASE);

    //
    // Send a welcome message to the UART.
    //
    UARTCharPut(UART0_BASE, 'W');
    UARTCharPut(UART0_BASE, 'e');
    UARTCharPut(UART0_BASE, 'l');
    UARTCharPut(UART0_BASE, 'c');
    UARTCharPut(UART0_BASE, 'o');
    UARTCharPut(UART0_BASE, 'm');
    UARTCharPut(UART0_BASE, 'e');
    UARTCharPut(UART0_BASE, '\r');
    UARTCharPut(UART0_BASE, '\n');

    //
    // Initialize the OSRAM OLED display.
    //
    OSRAM128x64x4Init(3500000);

    //
    // Initialize the PWM for generating music and sound effects.
    //
    AudioOn();

    //
    // Configure SysTick to periodically interrupt.
    //
    SysTickPeriodSet(g_ulSystemClock / CLOCK_RATE);
    SysTickIntEnable();
    SysTickEnable();

    //
    // Delay for a bit to allow the initial display flash to subside.
    //
    Delay(CLOCK_RATE / 4);

    //
    // Play the intro music.
    //
    AudioPlaySong(g_pusIntro, sizeof(g_pusIntro) / 2);

    //
    // Display the Luminary Micro logo for five seconds.
    //
    DisplayLogo(g_pucLMILogo, 120, 42, 5 * CLOCK_RATE);

    //
    // Display the Keil/ARM logo for five seconds.
    //
#if defined(rvmdk) || defined(__ARMCC_VERSION)
    DisplayLogo(g_pucKeilLogo, 128, 40, 5 * CLOCK_RATE);
#endif

    //
    // Display the IAR logo for five seconds.
    //
#if defined(ewarm)
    DisplayLogo(g_pucIarLogo, 102, 61, 5 * CLOCK_RATE);
#endif

    //
    // Display the CodeSourcery logo for five seconds.
    //
#if defined(gcc) || defined(sourcerygxx)
    DisplayLogo(g_pucCodeSourceryLogo, 128, 34, 5 * CLOCK_RATE);
#endif

    //
    // Throw away any button presses that may have occurred while the splash
    // screens were being displayed.
    //
    HWREGBITW(&g_ulFlags, FLAG_BUTTON_PRESS) = 0;

    //
    // Loop forever.
    //
    while(1)
    {
        //
        // Display the main screen.
        //
        if(MainScreen())
        {
            //
            // The button was pressed, so start the game.
            //
            PlayGame();
        }
        else
        {
            //
            // The button was not pressed during the timeout period, so start
            // the screen saver.
            //
            ScreenSaver();
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区公司| 色综合久久久久网| 亚洲成人激情社区| 日本美女一区二区| 色欧美片视频在线观看| 日本一区二区三区在线观看| 成人av免费在线| 亚洲国产精品一区二区www| 91精品国产全国免费观看| 国产在线观看免费一区| 国产精品一区二区视频| 欧美日韩一区二区在线观看| 午夜激情综合网| 51精品国自产在线| 国产一区二区三区蝌蚪| 久久久久国产精品麻豆ai换脸| 国产高清不卡二三区| 国产精品亲子伦对白| 日本韩国一区二区三区视频| 国产成+人+日韩+欧美+亚洲| 日韩一区二区三区在线| 久久久美女毛片| 亚洲免费观看在线视频| 日本亚洲视频在线| 欧美成人伊人久久综合网| 国产精品毛片久久久久久| 99久久国产免费看| 国产精品久久久久一区二区三区 | 日本午夜一区二区| 久久影院视频免费| 在线视频国内自拍亚洲视频| 亚洲成人www| 日韩精品一区二区三区蜜臀 | 亚洲福中文字幕伊人影院| 欧美日韩成人在线| 99久久精品免费看| 久久精品99久久久| 中文字幕久久午夜不卡| 精品视频在线视频| 欧美亚洲一区二区在线| 99国产精品久| 午夜精品久久久久久久99水蜜桃| 欧美亚洲图片小说| 青青草91视频| 久久午夜色播影院免费高清| 韩国v欧美v日本v亚洲v| 国产欧美视频在线观看| 色999日韩国产欧美一区二区| 免费成人在线观看视频| 依依成人综合视频| 欧美激情一区二区三区全黄| 中文字幕不卡在线| 精品少妇一区二区三区在线视频| 国产不卡在线一区| 午夜精品福利视频网站| 欧美亚洲国产一卡| 成人av资源在线| 日韩毛片视频在线看| 日本乱人伦aⅴ精品| 国产主播一区二区| 久久99精品久久久久婷婷| 一区二区在线观看免费| 亚洲老司机在线| 亚洲一区二区不卡免费| 欧美激情一区二区三区全黄| 中文字幕一区二区三区四区| 亚洲人xxxx| 亚洲国产日韩综合久久精品| 蜜臂av日日欢夜夜爽一区| 极品少妇一区二区| 成人国产在线观看| 欧美三级在线视频| 日韩精品一区在线| 中文字幕一区免费在线观看 | 国产一区啦啦啦在线观看| 国产呦精品一区二区三区网站| 国产91露脸合集magnet| 色综合久久天天综合网| 在线日韩一区二区| 欧美成人精品二区三区99精品| 国产欧美一区二区精品性色| ...中文天堂在线一区| 日韩二区在线观看| 色综合天天性综合| 欧美mv日韩mv亚洲| 亚洲夂夂婷婷色拍ww47| 国产乱码字幕精品高清av| 欧美亚洲国产bt| 国产精品美女一区二区| 六月丁香婷婷色狠狠久久| 91亚洲精品久久久蜜桃网站| www.色综合.com| 精品久久久久99| 日韩av中文字幕一区二区 | 国产河南妇女毛片精品久久久| 日本丰满少妇一区二区三区| 中文字幕欧美区| 日韩国产精品久久久久久亚洲| 国产福利不卡视频| 91.com视频| 日本aⅴ精品一区二区三区| 欧美午夜精品久久久久久超碰| 自拍偷在线精品自拍偷无码专区 | 久久av资源站| 日韩精品一区二区三区在线观看| 午夜精品福利一区二区蜜股av| 欧美性受极品xxxx喷水| 91网站黄www| 久久久久久久久一| 国产成人免费网站| 国产精品视频免费看| 丁香天五香天堂综合| 欧美国产日韩一二三区| youjizz国产精品| 亚洲精品久久7777| 欧美日韩久久不卡| 久久99国产精品成人| 日本一区免费视频| 色av综合在线| 狠狠色狠狠色综合系列| 中文成人综合网| 在线视频一区二区免费| 日产精品久久久久久久性色| 久久品道一品道久久精品| www.爱久久.com| 日韩一级二级三级| bt欧美亚洲午夜电影天堂| 亚洲一区二区av在线| 欧美激情在线看| 欧美性大战久久| 国产一区二区三区在线观看免费视频 | 久久久久国产精品麻豆ai换脸| 99在线热播精品免费| 另类小说欧美激情| 日韩免费视频一区二区| 在线亚洲一区二区| 精品一区二区日韩| 一区免费观看视频| 精品国产一区二区三区久久影院 | 一二三区精品视频| 日韩欧美一级二级三级| 欧美乱熟臀69xxxxxx| 91女神在线视频| 99久久夜色精品国产网站| 精品一区二区影视| 午夜亚洲国产au精品一区二区| 国产精品久久久久影院亚瑟| 精品久久久久av影院| 日韩一区二区三区电影在线观看| 91一区二区三区在线播放| 成人午夜免费视频| 99久久久久久99| 99久久国产综合色|国产精品| 成人黄色在线视频| 成人av动漫网站| 99久久99久久精品国产片果冻| 成人黄色a**站在线观看| 成人亚洲一区二区一| 久久婷婷综合激情| 精品国产sm最大网站| 久久久一区二区三区| 国产精品欧美一级免费| 亚洲欧洲性图库| 日本午夜精品一区二区三区电影| 日韩电影免费在线| 麻豆精品视频在线观看免费| 精品中文av资源站在线观看| 国产精品香蕉一区二区三区| av在线不卡观看免费观看| 一本色道久久综合亚洲91| 在线电影一区二区三区| 精品国产精品一区二区夜夜嗨| 国产欧美精品一区aⅴ影院| 成人免费在线视频观看| 视频一区二区三区在线| 国产精品99久| 91国产丝袜在线播放| 日韩视频在线观看一区二区| 久久久久国产精品麻豆ai换脸| 亚洲一本大道在线| 成人理论电影网| 日韩午夜在线影院| 国产精品国产自产拍高清av| 日本中文字幕一区二区视频| www.日本不卡| 国产亚洲精品免费| 视频一区二区三区入口| 色综合天天综合| 国产精品久久精品日日| 精品综合免费视频观看| 欧美日韩亚洲综合一区二区三区| 日韩午夜在线观看| 日韩高清国产一区在线| 99麻豆久久久国产精品免费优播| 欧美大胆一级视频| 亚洲成a人v欧美综合天堂| 91年精品国产| 日韩伦理av电影| 成人免费观看男女羞羞视频| 日韩免费看的电影|