您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ EnableInterrupts函数代码示例

51自学网 2021-06-01 20:37:26
  C++
这篇教程C++ EnableInterrupts函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中EnableInterrupts函数的典型用法代码示例。如果您正苦于以下问题:C++ EnableInterrupts函数的具体用法?C++ EnableInterrupts怎么用?C++ EnableInterrupts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了EnableInterrupts函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: HotPlugService

void 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_chars

static 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: main

int 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,


示例4: main

int main(void){  // configurar a UART1  U1BRG = ((20000000 + 8 * 38400) / (16 * 38400)) - 1;  U1MODEbits.BRGH = 0; //divis
C++ EnableOK函数代码示例
C++ EnableDocking函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。