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

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

?? intc_example3.c

?? dsp tms320c6486的csl例程
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*  ===========================================================================
 *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005
 *
 *   Use of this software is controlled by the terms and conditions found in 
 *   the license agreement under which this software has been supplied.
 *   ==========================================================================
 */
/** ===========================================================================
 *   @file  Intc_example3.c
 *
 *   @path  $(CSLPATH)\example\c64xplus\intc\intc_example3\src
 *
 *   @desc  Example of INTC
 *
 *  ============================================================================
 *   @n Target Platform: TCI6486 VDB
 *  ============================================================================
 *   @n <b> Example Description </b>
 *   @n This example illustrates the opening of an event handle, 
 *      associating a handler with it, enabling it for 124 events starting from 
 *      4 to 128. This example,
 *          1. Initalizes the intc CSL required with proper ISR
 *          2. Opens 4 to 31 events with vector line 4,
 *             32 to 63 events with vector line 5, 64 to 95 events with 
 *             vector line 6 and 96 to 127 events with vector line 7
 *          3. Enables the 4 to 127 events.
 *          4. Manually sets all these events
 *          5. Prints the total number of events occured.
 *
 * =============================================================================
 *      
 *   <b> Procedure to run the example </b>
 *   @verbatim
 *      1. Configure the CCS setup to work with the emulator being used
 *      2. Please refer CCS manual for setup configuration and loading 
 *         proper GEL file
 *      3. Launch CCS window
 *      4. Open project Intc_example3.pjt
 *      5. Build the project and load the .out file of the project.
 *          
 *   @endverbatim
 *
 */

/* ============================================================================
 *  Revision History
 *  ===============
 *  24-Mar-2005 BRN File Created
 *
 *  16-Dec-2005 ds  Updated documetation
 * ============================================================================
 */
 
#include <stdio.h>
#include <csl_intc.h>
#include <csl_intcAux.h>

/* Intc variables declaration */
CSL_IntcContext                 context; 
CSL_IntcEventHandlerRecord      EventHandler[30];
CSL_IntcGlobalEnableState       state;
CSL_IntcEventHandlerRecord      EventRecord;

/*  Function forwards */
void eventHandler(CSL_IntcEventId* event);
void intc_example (void);

/* Global variable declaration */
Uint32  evtNum = 0;

/*
 * ============================================================================
 *
 *   @func   main
 *
 *   @desc
 *     Application that calls example function
 * ============================================================================
*/
void main (void)
{
    printf ("Running Interrupt Example\n");
    
    intc_example ();

    return;
    
}

/*
 * ============================================================================
 *   @func intc_example
 *   
 *   @arg
 *      NONE
 *
 *   @desc
 *     This checks functionalities of the intc CSL.It implements following steps
 *          1. Initializes the Intc module 
 *          2. Opens the 4 to 31 events with interrupt vector line 4 
 *          3. Enables the 4 to 31 events.
 *          4. Sets manually all these events
 *          5. Opens the 32 to 63 events with interrupt vector line 5
 *          6. Enables the 32 to 63 events.
 *          7. Sets manually all these events
 *          8. Opens the 64 to 95 events with interrupt vector line 6
 *          9. Enables the 64 to 95 events.
 *          10. Sets manually all these events
 *          11. Opens the 96 to 127 events with interrupt vector line 7
 *          12. Enables the 96 to 127 events.
 *          13. Sets manually all these events.
 *          14. Prints the total number of events occured.           
 *   
 *   @return
 *      NONE
 *
 * =============================================================================
 */

void intc_example (void)
{   
    
    /* Obj for combined events */
    CSL_IntcObj         intcObj;
    CSL_IntcObj         intcObj2;
    CSL_IntcObj         intcObj4;
    CSL_IntcObj         intcObj6; 
    
    /* Obj for combiner events */
    CSL_IntcObj         intcObj0;
    CSL_IntcObj         intcObj1;
    CSL_IntcObj         intcObj3;
    CSL_IntcObj         intcObj5; 
    
    CSL_IntcHandle      hIntc;
    CSL_IntcHandle      hIntc0;
    CSL_IntcHandle      hIntc1;
    CSL_IntcHandle      hIntc2;
    CSL_IntcHandle      hIntc3;
    CSL_IntcHandle      hIntc4;
    CSL_IntcHandle      hIntc5;
    CSL_IntcHandle      hIntc6; 
    CSL_Status          intStat;
    CSL_IntcParam       vectId;
    CSL_BitMask32       evtEn;
    Uint32              eventId;
    
    /* Since there are only 3 events in the system table of 3 elements are 
     *  enough 
     */
    CSL_IntcEventHandlerRecord Record[128]; 
    context.numEvtEntries = 128; 
    context.eventhandlerRecord = Record;
    
    /* Initializes the CPU vector table, dispatchr */
    intStat = CSL_intcInit(&context);
    if (intStat != CSL_SOK) {
        printf ("INTR: Initialization... Failed.\n");
        printf ("\tReason: CSL_intcInit failed. [status = 0x%x].\n", intStat);
    }
    else {
        printf ("INTR: Initialization... Passed.\n");
    }

    /* Enable NMIs */
    intStat = CSL_intcGlobalNmiEnable();
    if (intStat != CSL_SOK) {
        printf ("INTR: Global NMI Enable ... Failed.\n");
        printf ("\tReason: CSL_intcGlobalNmiEnable failed. [status = 0x%x]\n", 
                                                                     intStat);
    }
    else {
        printf ("INTR: Global NMI Enable... Passed.\n");
    }

    /* Enable Global Interrupts */
    intStat = CSL_intcGlobalEnable(&state);
    if (intStat != CSL_SOK) {
        printf ("INTR: Global Enable ... Failed.\n");
        printf ("\tReason: CSL_intcGlobalEnable failed. [status = 0x%x].\n", 
                                                                     intStat);
    }
    else {
        printf ("INTR: Global Enable... Passed.\n");
    }
    
    /* Opening a handle for the Combiner 0 onto CPU vector 4 */
    vectId = CSL_INTC_VECTID_4;
    hIntc0 = CSL_intcOpen (&intcObj0, CSL_INTC_EVENTID_EVT0, &vectId , NULL);
    if ((hIntc0 == NULL) || (intStat != CSL_SOK)) {
            printf ("INTR: Open... Failed.\n");
            printf ("\tReason: Error opening the instance ");
            printf ("[status = 0x%x, hIntc = 0x%x]\n", intStat, hIntc0);
            
    }
    else
        printf ("INTR: Open... Passed.\n");

    /* Opening a handle for the Combiner 1 onto CPU vector 5 */
    vectId = CSL_INTC_VECTID_5;
    hIntc1 = CSL_intcOpen (&intcObj1, CSL_INTC_EVENTID_EVT1, &vectId , NULL);
    if ((hIntc1 == NULL) || (intStat != CSL_SOK)) {
            printf ("INTR: Open... Failed.\n");
            printf ("\tReason: Error opening the instance. [status = 0x%x, \
                                        hIntc = 0x%x].\n", intStat, hIntc1);
            
    }
    else
        printf ("INTR: Open... Passed.\n");

    /* Opening a handle for the Combiner 2 onto CPU vector 6 */
    vectId = CSL_INTC_VECTID_6;
    hIntc3 = CSL_intcOpen (&intcObj3, CSL_INTC_EVENTID_EVT2, &vectId , NULL);
    if ((hIntc3 == NULL) || (intStat != CSL_SOK)) {
            printf ("INTR: Open... Failed.\n");
            printf ("\tReason: Error opening the instance. [status = 0x%x, \
                                    hIntc = 0x%x].\n", intStat, hIntc3);
            
    }
    else
        printf ("INTR: Open... Passed.\n");

    /* Opening a handle for the Combiner 3 onto CPU vector 7 */
    vectId = CSL_INTC_VECTID_7;
    hIntc5 = CSL_intcOpen (&intcObj5, CSL_INTC_EVENTID_EVT3, &vectId , NULL);
    if ((hIntc5 == NULL) || (intStat != CSL_SOK)) {
            printf ("INTR: Open... Failed.\n");
            printf ("\tReason: Error opening the instance. [status = 0x%x, \
                                    hIntc = 0x%x].\n",  intStat, hIntc5);
            
    }
    else
        printf ("INTR: Open... Passed.\n");
        
    /* The event combiner divides the 124 system events in four groups. 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人不卡免费av| 美女视频黄频大全不卡视频在线播放| 一区二区三区视频在线观看| 亚洲成人精品一区二区| 久久99热这里只有精品| 国产福利91精品| 欧美私人免费视频| 久久综合久久综合亚洲| 最新久久zyz资源站| 视频一区二区欧美| 国产成人a级片| 欧美精品在线一区二区三区| 国产亚洲精品bt天堂精选| 一区av在线播放| 韩国欧美国产1区| 在线观看视频91| 精品福利av导航| 亚洲老妇xxxxxx| 国产一区日韩二区欧美三区| 色视频欧美一区二区三区| 日韩精品一区二区三区四区视频| 亚洲国产成人午夜在线一区| 日韩精品亚洲专区| 99精品偷自拍| 久久亚洲精品国产精品紫薇| 亚洲综合无码一区二区| 国产成人av福利| 欧美日韩成人在线| 日韩一区在线播放| 国模少妇一区二区三区| 欧洲av一区二区嗯嗯嗯啊| 久久女同性恋中文字幕| 日日摸夜夜添夜夜添亚洲女人| 成人99免费视频| 精品国产免费人成电影在线观看四季| 亚洲黄色免费网站| 懂色av中文一区二区三区| 日韩一区二区三区高清免费看看| 亚洲色图色小说| 国产精品伊人色| 日韩欧美成人一区| 亚洲h动漫在线| 91日韩精品一区| 中文字幕第一页久久| 国产专区欧美精品| 欧美精品久久99久久在免费线| 亚洲精品美国一| 99久久精品免费| 中文一区在线播放 | 欧美午夜精品一区二区蜜桃| 国产农村妇女精品| 国产毛片精品视频| 日韩三级电影网址| 欧美aaaaaa午夜精品| 欧美三级韩国三级日本三斤| 自拍av一区二区三区| 国产不卡在线播放| 久久久精品天堂| 国内偷窥港台综合视频在线播放| 欧美日韩不卡在线| 亚洲va国产天堂va久久en| 欧美性生活一区| 亚洲在线观看免费视频| 91丝袜美腿高跟国产极品老师 | 成人午夜看片网址| 久久精品夜色噜噜亚洲a∨| 理论片日本一区| 欧美一级爆毛片| 免费高清在线一区| 欧美一级爆毛片| 麻豆精品视频在线观看| 日韩欧美中文字幕制服| 激情综合五月天| 精品国精品自拍自在线| 韩国av一区二区三区四区| xfplay精品久久| 国产精品一区在线观看乱码| 国产亚洲精品aa午夜观看| 国产精品自拍av| 亚洲宅男天堂在线观看无病毒| 在线精品亚洲一区二区不卡| 亚洲一级二级在线| 欧美二区在线观看| 日本在线不卡视频一二三区| 欧美不卡一区二区| 激情久久五月天| 国产精品三级av| 91在线观看免费视频| 亚洲自拍偷拍九九九| 欧美老年两性高潮| 麻豆精品视频在线观看视频| 26uuu国产电影一区二区| 成人一区二区三区在线观看| 日韩美女视频一区| 欧美三级电影一区| 麻豆一区二区三| 日本一区二区三区高清不卡| 99久久精品情趣| 午夜欧美在线一二页| 日韩视频免费直播| 粉嫩绯色av一区二区在线观看| 中文字幕视频一区| 欧洲一区二区三区免费视频| 日韩二区三区四区| 久久久99久久| 色噜噜久久综合| 免费一级欧美片在线观看| xnxx国产精品| 一本到三区不卡视频| 日韩av中文字幕一区二区三区| 久久亚洲综合av| 一本大道av伊人久久综合| 日韩激情一区二区| 中文字幕第一区二区| 欧美日韩一区二区欧美激情| 激情图片小说一区| 亚洲欧洲成人av每日更新| 欧美人牲a欧美精品| 国产精品自在在线| 亚洲成人综合网站| 国产亚洲精品资源在线26u| 色婷婷亚洲婷婷| 激情五月婷婷综合网| 一区二区免费看| 久久免费看少妇高潮| 欧美性大战xxxxx久久久| 国产一区久久久| 亚洲国产精品久久久久婷婷884| 久久亚洲影视婷婷| 欧美怡红院视频| 成人妖精视频yjsp地址| 日本最新不卡在线| 亚洲男人天堂av| 免费在线成人网| 亚洲欧美一区二区三区极速播放 | 九色porny丨国产精品| 亚洲男人的天堂网| 337p粉嫩大胆噜噜噜噜噜91av| 在线观看视频91| 成人丝袜18视频在线观看| 蜜臀av性久久久久蜜臀av麻豆| 亚洲人成在线观看一区二区| 亚洲精品一区在线观看| 欧美在线免费视屏| 99精品欧美一区二区蜜桃免费| 久久er精品视频| 日韩va亚洲va欧美va久久| 一区二区三区四区视频精品免费| 久久久99免费| 日韩欧美一区二区视频| 欧美三区在线观看| 91免费观看视频| 粉嫩高潮美女一区二区三区| 久久精品国产99| 日韩精品专区在线影院观看| 国产精品成人一区二区艾草| 欧美精品三级在线观看| 成人国产精品免费网站| 九色|91porny| 日韩综合小视频| 亚洲五月六月丁香激情| 亚洲精选免费视频| 最新久久zyz资源站| 中文字幕+乱码+中文字幕一区| 精品久久久久久久人人人人传媒| 欧美精品在欧美一区二区少妇| 91老师片黄在线观看| av在线播放一区二区三区| 国产成人超碰人人澡人人澡| 国产精品正在播放| 国产美女在线观看一区| 国产一区二区三区视频在线播放| 久久国产精品免费| 六月丁香婷婷色狠狠久久| 奇米影视在线99精品| 青青草原综合久久大伊人精品优势| 午夜激情久久久| 污片在线观看一区二区| 五月激情六月综合| 日韩电影网1区2区| 蜜桃av一区二区三区| 美女国产一区二区| 韩国v欧美v亚洲v日本v| 国产精品一二三区在线| 国产成人免费9x9x人网站视频| 国产精品自拍三区| 成人免费视频免费观看| 成人精品在线视频观看| 99久久综合精品| 在线免费观看一区| 欧美日韩视频一区二区| 91精品欧美久久久久久动漫| 97成人超碰视| 亚洲va欧美va天堂v国产综合| 精品久久久三级丝袜| 一本久久a久久免费精品不卡| 中文在线一区二区| 精品久久国产97色综合| 欧美久久一二区| 精品蜜桃在线看|