/* set rx threshold.when RX FIFO depth > threshold value, trigger interrupt  */
void IR_SetRxThreshold(IR_TypeDef *IRx, uint8_t thd)
/* set rx threshold.when RX FIFO depth > threshold value, trigger interrupt  */
void IR_SetRxThreshold(IR_TypeDef *IRx, uint8_t thd)
{
	u32 Rx_config;
	assert_param(IS_IR_ALL_PERIPH(IRx));
	assert_param(IS_IR_RX_FIFO_THRESHOLD(thd));
	Rx_config = IRx->IR_RX_CONFIG;
	Rx_config &= ~IR_RX_FIFO_THRESHOLD_MASK;
	Rx_config |= IR_RX_FIFO_THRESHOLD(thd);
	IRx->IR_RX_CONFIG = Rx_config;
}