/* set tx threshold.when TX FIFO depth <= threshold value, trigger interrupt  */
void IR_SetTxThreshold(IR_TypeDef *IRx, uint8_t thd)
/* set tx threshold.when TX FIFO depth <= threshold value, trigger interrupt  */
void IR_SetTxThreshold(IR_TypeDef *IRx, uint8_t thd)
{
	u32 Tx_config;
	assert_param(IS_IR_ALL_PERIPH(IRx));
	assert_param(IS_IR_RX_FIFO_THRESHOLD(thd));
	Tx_config = IRx->IR_TX_CONFIG;
	Tx_config &= ~IR_TX_FIFO_THRESHOLD_MASK;
	Tx_config |= IR_TX_FIFO_THRESHOLD(thd);
	IRx->IR_TX_CONFIG = Tx_config;
}