这篇教程C++ EnableInterrupts函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中EnableInterrupts函数的典型用法代码示例。如果您正苦于以下问题:C++ EnableInterrupts函数的具体用法?C++ EnableInterrupts怎么用?C++ EnableInterrupts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了EnableInterrupts函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: HotPlugServicevoid HotPlugService (void) { DisableInterrupts(0xFF); Active9232(); if ((HDCP_TxSupports == true)) { if (HDCP_AksvValid == true) { // AV MUTE TPI_DEBUG_PRINT (("TMDS -> Enabled (Video Muted)/n")); ReadModifyWriteTPI(0x1A, BIT_6 | BIT_4 | BIT_3, 0x40 | 0x00 | 0x08); tmdsPoweredUp = true; EnableInterrupts(BIT_0 | 0x02 | 0x10 | 0x20 | 0x40 | 0x80); } } else { TPI_DEBUG_PRINT (("TMDS -> Enabled/n")); ReadModifyWriteTPI(0x1A, BIT_6 | BIT_4 | BIT_3, 0x40 | 0x00 | 0x08); tmdsPoweredUp = TRUE; EnableInterrupts(0x01 | 0x02 | 0x10 | 0x40); } TxPowerStateD0(); I2C_WriteByte(TPI_SLAVE_ADDR, 0xcd, 0x0); I2C_WriteByte(TPI_SLAVE_ADDR, 0x19, 0x0);}
开发者ID:Flemmard,项目名称:htc7x30-3.0,代码行数:29,
示例2: xmbrs_flush_charsstatic void xmbrs_flush_chars(struct tty_struct *tty){ volatile unsigned int *uartp; struct xmb_serial *info = (struct xmb_serial *)tty->driver_data; unsigned long flags; if (serial_paranoia_check(info, tty->device, "xmbrs_flush_chars")) return; uartp = (volatile unsigned int *) info->addr; EnableInterrupts(uartp); /* If there are chars waiting in RX buffer then enable interrupt to permit receiving them */ save_flags_cli(flags); if ( (uartp[XUL_STATUS_REG_OFFSET/4] & XUL_SR_RX_FIFO_VALID_DATA) && (info->flags & ASYNC_INITIALIZED) ) { EnableInterrupts(uartp); } /* Any chars pending to go out (and tty not stopped etc)? */ if (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped || !info->xmit_buf) return; /* Force remaining chars out */ save_flags_cli(flags); EnableInterrupts(uartp); force_tx_fifo_fill(info); restore_flags(flags);}
开发者ID:ProjectZeroSlackr,项目名称:linux-2.4.32-ipod,代码行数:31,
示例3: mainint main(void){ // Real Lab13 // for the real board grader to work // you must connect PD3 to your DAC output TExaS_Init(SW_PIN_PE3210, DAC_PIN_PB3210,ScopeOn); // activate grader and set system clock to 80 MHz// PortE used for piano keys, PortB used for DAC Sound_Init(); // initialize SysTick timer and DAC Piano_Init(); EnableInterrupts(); // enable after all initialization are done DAC_Init(); while(1){ volatile unsigned long current_switch; current_switch = Piano_In(); if (current_switch == 0x01){ EnableInterrupts(); Sound_Tone(4780); } else if (current_switch == 0x02){ EnableInterrupts(); Sound_Tone(4259); } else if (current_switch == 0x04){ EnableInterrupts(); Sound_Tone(3794); } else if (current_switch == 0x08){ EnableInterrupts(); Sound_Tone(3189); }// else if (current_switch == 0x00){// Sound_Off();// DisableInterrupts();// } delay(10); } }
开发者ID:dbadami,项目名称:UT.6.01x,代码行数:35,
|