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

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

?? example_28xswprioritizedinterrupts.c

?? TMS320C2812
?? 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一区二区三区免费野_久草精品视频
国产午夜精品一区二区三区视频 | 久久精品亚洲国产奇米99| 亚洲高清一区二区三区| 欧美视频在线不卡| 人禽交欧美网站| 久久久欧美精品sm网站| 成人激情开心网| 一区二区三区欧美视频| 欧美亚洲国产一区二区三区| 亚洲高清视频中文字幕| 精品噜噜噜噜久久久久久久久试看 | 国产亚洲人成网站| www.性欧美| 亚洲在线观看免费| 日韩欧美第一区| www.欧美亚洲| 视频在线观看91| 久久久不卡影院| 在线观看一区二区精品视频| 美女性感视频久久| 国产精品理论在线观看| 欧美私模裸体表演在线观看| 老色鬼精品视频在线观看播放| 国产欧美精品一区二区色综合 | 亚洲国产一区视频| 日韩午夜激情av| 91日韩精品一区| 久久精品免费观看| 亚洲日本中文字幕区| 欧美一区二区三区四区高清| 波多野结衣在线一区| 午夜久久久久久| 中文字幕精品一区二区三区精品 | 午夜精品一区二区三区免费视频| 欧美成人高清电影在线| 91麻豆精东视频| 国产老女人精品毛片久久| 亚洲一区二区3| 中文字幕欧美区| 日韩欧美国产综合一区| 91精品91久久久中77777| 国产在线精品视频| 亚洲成人先锋电影| 亚洲视频你懂的| 久久精品这里都是精品| 欧美一区二区三区系列电影| 一本久道久久综合中文字幕| 国产精品亚洲人在线观看| 午夜欧美视频在线观看 | 欧美日韩国产在线观看| 国产69精品一区二区亚洲孕妇| 天堂影院一区二区| 亚洲精品五月天| 国产欧美一区二区精品性色超碰| 欧美一区二区播放| 在线观看一区二区精品视频| 成人教育av在线| 国产精品一区二区久久不卡| 麻豆专区一区二区三区四区五区| 亚洲1区2区3区4区| 亚洲一二三区视频在线观看| 亚洲欧美经典视频| 中文字幕一区二区三区视频| 国产欧美一区二区精品婷婷| 久久久久久久综合色一本| 日韩一区二区电影在线| 91精品免费在线| 欧美日韩视频第一区| 一本大道av伊人久久综合| 2020国产精品| 欧美大片拔萝卜| 日韩三级免费观看| 日韩视频在线永久播放| 777色狠狠一区二区三区| 欧美日韩专区在线| 欧美久久久久免费| 欧美日韩国产另类不卡| 欧美三区在线视频| 精品污污网站免费看| 欧美日高清视频| 日韩欧美色综合网站| 欧美成人精品高清在线播放| 精品国产乱码久久久久久影片| 久久这里只有精品视频网| 久久奇米777| 国产欧美日韩久久| 尤物在线观看一区| 日韩高清在线一区| 国内精品视频一区二区三区八戒| 国产伦理精品不卡| 91同城在线观看| 欧美性色aⅴ视频一区日韩精品| 欧美日韩国产影片| www国产成人免费观看视频 深夜成人网| 精品国产乱子伦一区| 中文字幕欧美国产| 亚洲国产你懂的| 另类小说综合欧美亚洲| 国产精选一区二区三区| 97久久超碰国产精品| 欧美色综合天天久久综合精品| 9191精品国产综合久久久久久| 欧美xxxxx裸体时装秀| 国产精品毛片无遮挡高清| 一区二区三区欧美亚洲| 看电影不卡的网站| 91偷拍与自偷拍精品| 4438成人网| 国产精品理伦片| 亚洲444eee在线观看| 国产在线国偷精品免费看| 97精品电影院| 欧美一区二区视频在线观看2020| 国产蜜臀av在线一区二区三区| 一区二区三区在线观看视频| 久久精品噜噜噜成人av农村| 99久久国产综合精品麻豆| 欧美人妖巨大在线| 亚洲国产成人一区二区三区| 亚洲一区影音先锋| 国产精品一区二区视频| 欧美日韩一区久久| 国产欧美精品区一区二区三区| 亚洲第一主播视频| 国产福利电影一区二区三区| 欧美日韩视频一区二区| 国产精品色噜噜| 麻豆成人91精品二区三区| 一本高清dvd不卡在线观看| www久久精品| 青青青伊人色综合久久| 色综合天天综合网天天狠天天| 欧美成人三级电影在线| 亚洲va国产va欧美va观看| 国产一区二区精品久久99| 欧美日韩国产小视频| 成人免费在线视频观看| 国产一区二区视频在线播放| 欧美精品777| 亚洲色图一区二区| 国产sm精品调教视频网站| 日韩一级二级三级| 视频一区二区不卡| 国产精品欧美一级免费| 美女一区二区视频| 91精品国产乱码| 亚洲第四色夜色| 欧美影院一区二区| 亚洲欧洲日韩av| 成人美女视频在线看| 精品久久久久久久人人人人传媒 | 欧洲人成人精品| 国产精品久久久爽爽爽麻豆色哟哟| 蜜桃视频在线一区| 日韩三级免费观看| 美女国产一区二区三区| 欧美精品丝袜中出| 爽好久久久欧美精品| 欧美日韩久久一区二区| 亚洲黄色在线视频| 日本黄色一区二区| 一区二区三区精品在线观看| 91丨九色porny丨蝌蚪| 亚洲色大成网站www久久九九| 成人在线一区二区三区| 国产精品久线在线观看| 99久久国产综合精品色伊| 亚洲色图另类专区| 欧美在线影院一区二区| 亚洲伊人伊色伊影伊综合网| 色偷偷久久人人79超碰人人澡| 亚洲精品乱码久久久久久黑人 | 国产一区日韩二区欧美三区| 久久这里都是精品| 懂色av中文一区二区三区| 欧美国产精品专区| 97久久久精品综合88久久| 亚洲麻豆国产自偷在线| 欧美视频一区二区三区四区| 五月天激情综合| 在线播放日韩导航| 狠狠色丁香久久婷婷综合丁香| 日本一区二区三区四区在线视频| 成人综合在线网站| 亚洲婷婷国产精品电影人久久| 色哟哟国产精品| 日韩在线卡一卡二| 久久久精品免费免费| 岛国一区二区在线观看| 一卡二卡欧美日韩| 日韩欧美专区在线| 成人av综合一区| 亚洲午夜精品网| 欧美va亚洲va在线观看蝴蝶网| 国产99久久久国产精品潘金 | 亚洲人吸女人奶水| 91麻豆精品国产91| 国产a精品视频| 亚洲福利电影网| 久久蜜臀中文字幕|