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

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

?? qs_ek-lm3s2965.c

?? 最新版IAR FOR ARM(EWARM)5.11中的代碼例子
?? C
?? 第 1 頁 / 共 2 頁
字號:
            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_GPIOE);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_PWM);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);

    //
    // Configure the GPIOs used to read the state of the on-board push buttons.
    //
    GPIOPinTypeGPIOInput(GPIO_PORTF_BASE,
                         GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7);
    GPIOPadConfigSet(GPIO_PORTF_BASE,
                     GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7,
                     GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
    GPIOPinTypeGPIOInput(GPIO_PORTG_BASE, GPIO_PIN_4);
    GPIOPadConfigSet(GPIO_PORTG_BASE, GPIO_PIN_4, 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_PORTG_BASE, GPIO_PIN_3);
    GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE, GPIO_PIN_2);
    GPIOPinWrite(GPIO_PORTG_BASE, GPIO_PIN_2, 0);

    //
    // Initialize the CAN controller.
    //
    CANConfigure();

    //
    // 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.色综合.com| 东方欧美亚洲色图在线| 大陆成人av片| 91麻豆精品一区二区三区| 91在线你懂得| 欧洲亚洲精品在线| 欧美一级艳片视频免费观看| 欧美一区二区私人影院日本| 日韩欧美国产三级电影视频| 精品精品欲导航| 国产午夜亚洲精品理论片色戒| 久久精品综合网| 中文字幕在线一区二区三区| 一区二区三区产品免费精品久久75| 一区二区三区在线免费播放| 亚洲国产精品久久久久秋霞影院| 日本一不卡视频| 国产精品99久久久久久宅男| av在线播放一区二区三区| 欧美伊人精品成人久久综合97| 欧美日韩不卡一区| 精品久久久久久综合日本欧美| 国产精品高潮呻吟| 日韩精品五月天| 国产jizzjizz一区二区| 欧美亚洲一区二区在线| 欧美成人r级一区二区三区| 国产日本欧美一区二区| 亚洲乱码一区二区三区在线观看| 天堂一区二区在线| 国产不卡视频在线观看| 欧美日韩一级二级三级| 久久久久亚洲蜜桃| 亚洲国产日韩综合久久精品| 激情久久五月天| 色av综合在线| 国产亚洲欧洲一区高清在线观看| 伊人色综合久久天天| 韩国理伦片一区二区三区在线播放 | 亚洲男人的天堂在线观看| 亚洲va天堂va国产va久| 国产乱国产乱300精品| 欧美日韩国产中文| 日韩一区欧美一区| 国产一区二区精品在线观看| 欧美精品少妇一区二区三区| 精品入口麻豆88视频| 偷拍日韩校园综合在线| 成人午夜视频福利| 久久伊人蜜桃av一区二区| 亚洲成人动漫精品| 91福利在线看| 一区视频在线播放| zzijzzij亚洲日本少妇熟睡| 精品91自产拍在线观看一区| 看电影不卡的网站| 777亚洲妇女| 亚洲国产日韩一区二区| 色综合天天视频在线观看| 亚洲国产精品v| 国产精品亚洲一区二区三区在线| 日韩一区二区免费电影| 五月天激情小说综合| 欧美偷拍一区二区| 一区二区三区中文字幕电影 | 免费成人性网站| 欧美理论在线播放| 亚洲午夜久久久久久久久久久| 91网站最新地址| 亚洲图片欧美激情| 95精品视频在线| 亚洲情趣在线观看| 欧美亚洲一区三区| 日韩电影免费在线看| 日韩欧美在线123| 国产一区不卡精品| 国产欧美一区二区在线| 丁香亚洲综合激情啪啪综合| 中文字幕不卡在线| 色视频成人在线观看免| 亚洲尤物在线视频观看| 777奇米成人网| 精品一区二区三区的国产在线播放| 欧美一区二区久久久| 国产精品自拍三区| 亚洲天堂av老司机| 欧美视频一区二| 麻豆精品视频在线观看免费| 亚洲精品一区二区三区福利| 丰满亚洲少妇av| 一区二区三区**美女毛片| 欧美日韩午夜精品| 精品午夜久久福利影院| 中文字幕在线观看不卡| 欧美巨大另类极品videosbest | 青娱乐精品视频| xfplay精品久久| 91一区二区在线| 日日夜夜精品免费视频| 国产日本欧美一区二区| 在线观看三级视频欧美| 国内精品伊人久久久久av影院| 亚洲色图20p| 日韩欧美一区中文| 色婷婷久久久综合中文字幕| 美美哒免费高清在线观看视频一区二区| 国产亚洲人成网站| 欧美日韩一级大片网址| 国产精品一区二区在线观看网站| 亚洲精品写真福利| 久久综合色综合88| 精品视频免费在线| 高清不卡一区二区在线| 午夜成人免费电影| 中文字幕在线不卡| 精品剧情v国产在线观看在线| 色综合天天性综合| 国产精一品亚洲二区在线视频| 亚洲成人三级小说| 亚洲婷婷国产精品电影人久久| 日韩一区二区在线播放| 欧美性猛交xxxx乱大交退制版| 国产成人欧美日韩在线电影| 日韩中文字幕亚洲一区二区va在线| 国产精品热久久久久夜色精品三区 | 一区二区三区国产| 国产精品久久久久婷婷二区次| 日韩欧美视频一区| 欧美日韩国产三级| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 亚洲国产视频一区| 自拍偷自拍亚洲精品播放| 国产视频亚洲色图| 精品国产91洋老外米糕| 在线不卡免费av| 欧美福利一区二区| 欧美日韩黄视频| 在线观看91视频| 欧美一a一片一级一片| 91免费国产在线观看| 波多野洁衣一区| 成人精品国产一区二区4080| 国产精品一区二区三区99| 久久99热狠狠色一区二区| 男男视频亚洲欧美| 日本v片在线高清不卡在线观看| 亚洲18色成人| 日韩专区一卡二卡| 免费观看30秒视频久久| 老司机一区二区| 日本成人中文字幕在线视频| 日本系列欧美系列| 久久精品国产在热久久| 国产中文字幕精品| 国产精品自拍在线| 成人h精品动漫一区二区三区| 成人性生交大合| 色综合天天天天做夜夜夜夜做| 欧美怡红院视频| 日韩欧美中文字幕公布| 久久久久久久久久久黄色| 中文字幕高清不卡| 亚洲精品你懂的| 秋霞午夜av一区二区三区| 久久激情五月激情| 国产+成+人+亚洲欧洲自线| 99久久伊人精品| 欧美日韩国产另类不卡| 日韩精品一区二区三区在线观看| 精品国精品国产| 亚洲天堂2014| 秋霞午夜av一区二区三区| 国产成人av一区| 欧美在线一区二区| 久久久精品tv| 亚洲在线成人精品| 国产一区欧美日韩| 欧美最新大片在线看| 欧美电视剧免费全集观看| 国产精品国产自产拍在线| 亚洲福利视频一区二区| 国产一区二区三区美女| 91蜜桃网址入口| 欧美大片在线观看一区二区| 亚洲欧洲日韩av| 久久国产精品72免费观看| 色综合天天综合网天天狠天天| 日韩一区二区三| 亚洲一区二区精品久久av| 国产一区二区三区免费| 欧美巨大另类极品videosbest| 国产精品蜜臀在线观看| 麻豆久久久久久久| 欧美综合欧美视频| 国产精品久久久久影视| 激情综合色丁香一区二区|