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

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

?? example_28xswprioritizedinterrupts.c

?? TI 281x DSP 各種通信接口驅動源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
//
//      TMDX ALPHA RELEASE
//      Intended for product evaluation purposes
//
//###########################################################################
//
// FILE:	DSP28_28xSWPrioritizedInterrupts.c
//
// TITLE:	DSP28 Software Prioritized Interrupt Example.
//
// ASSUMPTIONS:
//
//          This program requires the DSP28 header files.  To compile the
//          program as is, it should reside in the DSP28/examples/sw_prioritized_interrupts 
//          sub-directory.
//
//          As supplied, this project is configured for "boot to H0" operation.  
//
// DESCRIPTION:
//
//          For more information on F2810/12 interrupt priorities, refer to the
//          ReadMe_Example_28xISRPriorities.pdf file included with this example.
//
//          This program simulates interrupt conflicts by writing to the
//          PIEIFR registers.  This will simulate multiple interrupts coming into
//          the PIE block at the same time. 
//
//          The interrupt service routine routines are software prioritized
//          by the table found in the DSP28_SWPrioritizedIsrLevels.h file.
//
//          1) Before compiling you must set the Global and Group interrupt priorities
//             in the DSP28_SWPrioritizedIsrLevels.h file.
//
//          2) Compile the code, load, and run
//
//          3) At the end of each test there is a hard coded breakpoint.  When code
//             stops at the breakpoint, examine the ISRTrace buffer to see the order
//             in which the ISR's completed.    All PIE interrupts will add to the
//             ISRTrace.
//
//             The ISRTrace will consist of a list of hex values as shown:
//
//                                  0x00wx    <- PIE Group w interrup x finished first
//                                  0x00yz    <- PIE Group y interrupt z finished next
//
//          4) If desired, set a new set of Global and Group interrupt priorites
//             and repeat the test to see the change.
//          
//
//          Watch Variables:
//                ISRTrace[50]           Trace of ISR's in the order they complete
//                                       After each test, examine this buffer
//                                       to determine if the ISR's completed in
//                                       the order desired. 
//
//###########################################################################
//
//  Ver | dd mmm yyyy | Who  | Description of changes
// =====|=============|======|===============================================
//  0.57| 06 Jun 2002 | L.H. | First Release
//###########################################################################


// Step 0.  Include required header files
         // DSP28_Device.h: device specific definitions #include statements for
         // all of the peripheral .h definition files.
         // DSP28_Example.h is specific for the given example.  

#include "DSP28_Device.h"

// Define which interrupts are used in the PIE for each group.
#define ISRS_GROUP1  (M_INT1|M_INT2|M_INT4|M_INT5|M_INT6|M_INT7|M_INT8)
#define ISRS_GROUP2  (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5|M_INT6|M_INT7)
#define ISRS_GROUP3  (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5|M_INT6|M_INT7)
#define ISRS_GROUP4  (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5|M_INT6|M_INT7)
#define ISRS_GROUP5  (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5|M_INT6|M_INT7)
#define ISRS_GROUP6  (M_INT1|M_INT2|M_INT5|M_INT6)
#define ISRS_GROUP9  (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5)


// This array will be used as a trace to check the order that the
// interrupts were serviced
Uint16  ISRTrace[50];
Uint16  ISRTraceIndex;  // used to update an element in the trace buffer

void main(void)
{
   Uint16 i;

// Step 1. Initialize System Control registers, PLL, WatchDog, Clocks to default state:
        // This function is found in the DSP28_SysCtrl.c file.
	InitSysCtrl();

// Step 2. Select GPIO for the device or for the specific application:
        // This function is found in the DSP28_Gpio.c file.
	// InitGpio();  // Skip for this test

// Step 3. Initialize PIE vector table:
	// The PIE vector table is initialized with pointers to shell Interrupt 
        // Service Routines (ISR).  The shell routines are found in DSP28_DefaultIsr.c.
	// Insert user specific ISR code in the appropriate shell ISR routine in 
        // the DSP28_DefaultIsr.c file.

	// Disable and clear all CPU interrupts:
	DINT;
	IER = 0x0000;
	IFR = 0x0000;

	// Initialize Pie Control Registers To Default State:
        // This function is found in the DSP28_PieCtrl.c file.
	InitPieCtrl();

	// Initialize the PIE Vector Table To a Known State:
        // This function is found in DSP28_PieVect.c.
	// This function populates the PIE vector table with pointers
        // to the shell ISR functions found in DSP28_DefaultIsr.c.
	InitPieVectTable();	
	
// Step 4. Initialize all the Device Peripherals to a known state:
	// This function is found in DSP28_InitPeripherals.c
    // InitPeripherals();
   
// Step 5. User specific functions, Reassign vectors (optional), Enable Interrupts:
	
    
// Step 6. Test:	

// CASE 1:
//     Force all group 1 interrupts at once by writing to the PIEIFR1 register

	   // Clear the trace buffer
	   for(i = 0; i < 50; i++) ISRTrace[i] = 0;
	   ISRTraceIndex = 0;

       // Force all valid interrupts for Group 1
       PieCtrlRegs.PIEIFR1.all = (M_INT1|M_INT2|M_INT4|M_INT5|M_INT6|M_INT7|M_INT8);  

       // Enable PIE group 1 interrupt 1-8 for T1PINT
       PieCtrlRegs.PIEIER1.all = 0x00FF;
	
       // Enable CPU INT1
       IER |= M_INT1;

       // Enable global Interrupts:
	   EINT;   // Enable Global interrupt INTM
	   
	   // Wait for all Group 1 interrupts to be serviced
	   while(PieCtrlRegs.PIEIFR1.all != 0x0000 ){}
	   
       // Stop here and check the ISRTrace to determine which order the 
       // ISR Routines completed.  The order is dependant on the priority
       // assigned in the DSP28_SWPrioritizedIsrLevels.h file
       // 
       // The ISRTrace will contain a list of values corresponding to the
       // interrupts serviced in the order they were serviced. 
	   // For example if the ISRTrace looks like this
	   //        0x0014     ISR Group 1 interrupt 4
	   //        0x0017     ISR Group 1 interrupt 7
	   //        0x0016     ISR Group 1 interrupt 6
	   //        0x0000     end of trace
	   asm("        ESTOP0");	

// CASE 2:
//     Force all group 2 interrupts at once by writing to the PIEIFR2 register

	   // Clear the trace buffer
	   for(i = 0; i < 50; i++) ISRTrace[i] = 0;
	   ISRTraceIndex = 0;

       // Disable Global interrupts
       DINT;
       
       // Clear CPU enable register
       IER &= 0x0000;
       
       // Disable PIE group 2 interrupts 1-8 
       PieCtrlRegs.PIEIER2.all = 0x00FF;

       // Force all valid interrupts for Group 1 and from Group 2
       PieCtrlRegs.PIEIFR2.all = ISRS_GROUP2;  

       // Enable PIE group 2 interrupts 1-8 
       PieCtrlRegs.PIEIER2.all = 0x00FF;

       // Enable CPU INT2
       IER |= (M_INT2);

	   // Enable Global interrupts
	   EINT;
	   
	   // Wait for all group 2 interrupts to be serviced
	   while(PieCtrlRegs.PIEIFR2.all != 0x0000 ){}
	   
       // Stop here and check the order the ISR's were serviced in the
       // ISRTrace
	   asm("        ESTOP0");
	   
	   
// CASE 3:
//     Force all group 3 interrupts at once by writing to the PIEIFR3 register

	   // Clear the trace buffer
	   for(i = 0; i < 50; i++) ISRTrace[i] = 0;
	   ISRTraceIndex = 0;

       // Disable Global interrupts
       DINT;

       // Clear CPU enable register
       IER &= 0x0000;
              
       // Disable PIE group 3 interrupts 1-8 
       PieCtrlRegs.PIEIER3.all = 0x00FF;

       // Force all valid interrupts for Group 1 and from Group 2
       PieCtrlRegs.PIEIFR3.all = ISRS_GROUP3;  

       // Enable PIE group 3 interrupts 1-8 
       PieCtrlRegs.PIEIER3.all = 0x00FF;

       // Enable CPU INT3
       IER |= (M_INT3);

	   // Enable Global interrupts
	   EINT;
	   
	   // Wait for all group 3 interrupts to be serviced
	   while(PieCtrlRegs.PIEIFR3.all != 0x0000 ){}
	   
       // Stop here and check the order the ISR's were serviced in the
       // ISRTrace
	   asm("        ESTOP0");	   	   	   
	   
// CASE 4:
//     Force all group 4 interrupts at once by writing to the PIEIFR4 register

	   // Clear the trace buffer
	   for(i = 0; i < 50; i++) ISRTrace[i] = 0;
	   ISRTraceIndex = 0;

       // Disable Global interrupts
       DINT;
       
       // Clear CPU enable register
       IER &= 0x0000;
       
       // Disable PIE group 4 interrupts 1-8 
       PieCtrlRegs.PIEIER4.all = 0x00FF;

       // Force all valid interrupts for Group 4
       PieCtrlRegs.PIEIFR4.all = ISRS_GROUP4;  

       // Enable PIE group 4 interrupts 1-8 
       PieCtrlRegs.PIEIER4.all = 0x00FF;

       // Enable CPU INT4
       IER |= (M_INT4);

	   // Enable Global interrupts
	   EINT;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天使萌一区二区三区免费观看| 波多野结衣中文字幕一区二区三区| 精品写真视频在线观看| www..com久久爱| 精品日韩在线一区| 亚洲精品日韩一| 国产成人精品一区二区三区四区| 欧美日韩一区二区不卡| 午夜av电影一区| 成人av先锋影音| 久久久亚洲国产美女国产盗摄| 亚洲午夜国产一区99re久久| 粉嫩一区二区三区在线看| 91.成人天堂一区| 樱花影视一区二区| 成人在线视频一区二区| 精品免费国产二区三区| 首页国产丝袜综合| 91国模大尺度私拍在线视频| 欧美激情综合在线| 国产伦精品一区二区三区免费迷| 欧美人与z0zoxxxx视频| 伊人婷婷欧美激情| eeuss鲁片一区二区三区在线看| 欧美电影一区二区| 亚洲五码中文字幕| 欧美性色综合网| 亚洲男人电影天堂| 波多野结衣欧美| 久久亚洲二区三区| 久久99国产精品久久99果冻传媒| 欧美精品久久久久久久久老牛影院 | 欧美日韩精品欧美日韩精品一 | 亚洲精品在线观| 另类综合日韩欧美亚洲| 欧美一区二区三区日韩| 日韩avvvv在线播放| 欧美精品乱码久久久久久 | 青草av.久久免费一区| 欧美精品xxxxbbbb| 日韩二区在线观看| 日韩精品一区在线| 国产精品一区二区不卡| 国产亚洲一区二区三区四区 | 亚洲成人免费在线观看| 欧美日韩你懂的| 奇米精品一区二区三区在线观看一| 91精品国产91久久久久久最新毛片 | 精品视频免费看| 亚洲成人动漫一区| 精品裸体舞一区二区三区| 国模套图日韩精品一区二区| 国产女人18毛片水真多成人如厕| 成人免费的视频| 亚洲国产一区二区三区| 制服.丝袜.亚洲.另类.中文| 激情伊人五月天久久综合| 国产亚洲美州欧州综合国| www.99精品| 午夜激情久久久| 久久亚洲精品小早川怜子| 99久久久久久| 五月婷婷另类国产| 精品国产网站在线观看| 成人免费的视频| 亚洲国产精品久久久久秋霞影院 | 日韩欧美不卡一区| 国产91露脸合集magnet| 亚洲一区二区3| 欧美xxxxxxxxx| 色综合一个色综合| 免费成人你懂的| 一区在线中文字幕| 日韩欧美一级片| www.成人在线| 韩国毛片一区二区三区| 亚洲欧美激情一区二区| 日韩免费一区二区| av成人免费在线| 免费不卡在线观看| 亚洲乱码国产乱码精品精的特点 | 91成人在线免费观看| 麻豆91精品91久久久的内涵| 亚洲欧美怡红院| 精品动漫一区二区三区在线观看| 色综合久久中文综合久久牛| 久久电影国产免费久久电影| 一区二区三区国产| 国产偷国产偷亚洲高清人白洁 | 免费的成人av| 亚洲一区在线看| 中文字幕中文字幕一区二区| 精品日韩99亚洲| 91麻豆精品91久久久久久清纯| 成人av免费网站| 国产盗摄视频一区二区三区| 三级久久三级久久| 亚洲综合一区二区精品导航| 亚洲国产岛国毛片在线| 欧美哺乳videos| 777午夜精品免费视频| 色网站国产精品| 99视频在线精品| 成人精品在线视频观看| 国产一区二区电影| 美女任你摸久久| 午夜精品福利在线| 亚洲成a人v欧美综合天堂下载| 亚洲色图制服丝袜| 国产精品天干天干在线综合| 欧美精品一区二区高清在线观看| 日韩一区二区三区视频| 欧美男男青年gay1069videost| 99精品视频在线播放观看| 国产成人免费视频网站| 国产精品一二三区在线| 国产精品中文字幕日韩精品| 麻豆91免费看| 国内成人免费视频| 国模娜娜一区二区三区| 国产伦精品一区二区三区免费| 精品一区二区av| 国产一区二区视频在线| 国产精品亚洲第一区在线暖暖韩国| 麻豆成人久久精品二区三区红 | 亚洲免费观看高清在线观看| 亚洲激情成人在线| 亚洲国产一区二区三区| 日韩激情一区二区| 青青草精品视频| 久久99精品久久久| 国产高清精品网站| 成人免费视频视频| 99re这里都是精品| 欧美做爰猛烈大尺度电影无法无天| 欧美午夜精品一区二区蜜桃| 6080yy午夜一二三区久久| 日韩欧美一区在线观看| 久久久久久久av麻豆果冻| 国产精品美女一区二区| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲制服丝袜av| 久久99久久久久久久久久久| 国产精品自拍毛片| 色婷婷激情一区二区三区| 在线观看一区二区视频| 日韩欧美一区二区免费| 欧美激情艳妇裸体舞| 亚洲综合免费观看高清在线观看| 视频一区视频二区中文字幕| 裸体歌舞表演一区二区| av午夜一区麻豆| 欧美一二三四在线| 亚洲国产精品av| 爽好久久久欧美精品| 国产美女娇喘av呻吟久久| 一本色道亚洲精品aⅴ| 日韩欧美一级片| 亚洲欧美激情在线| 麻豆国产精品视频| 91色乱码一区二区三区| 日韩网站在线看片你懂的| 国产精品不卡一区二区三区| 青青青爽久久午夜综合久久午夜| 岛国精品一区二区| 91麻豆精品国产| 最新成人av在线| 美女免费视频一区二区| 在线观看亚洲成人| 欧美激情在线看| 久久精品久久99精品久久| 色呦呦国产精品| 久久精品欧美一区二区三区不卡| 亚洲午夜私人影院| 成人精品小蝌蚪| 日韩欧美在线一区二区三区| 亚洲午夜久久久久久久久电影网 | 26uuu色噜噜精品一区二区| 亚洲国产精品精华液网站| 成人综合婷婷国产精品久久免费| 日韩欧美高清dvd碟片| 亚洲va中文字幕| 97se亚洲国产综合自在线观| 久久久久久影视| 青娱乐精品在线视频| 欧美亚洲综合久久| 亚洲免费av高清| 99久久精品99国产精品| 国产女人aaa级久久久级| 久久97超碰色| 欧美成人一区二区三区| 午夜天堂影视香蕉久久| 日本精品一区二区三区高清 | 日韩免费在线观看| 免费成人av资源网| 日韩午夜激情视频| 蜜桃视频免费观看一区| 日韩视频免费观看高清完整版 | 国产乱淫av一区二区三区| 欧美电视剧在线看免费|