All pastes #20568 Raw Edit

Anonymous

public text v1 · immutable
#20568 ·published 2005-08-20 21:01 UTC
rendered paste body
void enable_ir() 
{
	int count = 0;
	while(input(PIN_IR_EN_n) && (count < 100)) {
		output_low(PIN_IR_EN_n);
		delay_ms(1);
		count++;
	}
	if (input(PIN_IR_EN_n)) {
		printf("ERROR: could not enable IR\r\n");
	}
}