/* This function is used to config the block guard time param in 7816 mode.  */
void wm_sc_set_bgt(uint8_t bgt)
/* This function is used to config the block guard time param in 7816 mode.  */
void wm_sc_set_bgt(uint8_t bgt)
{
	uint32_t reg;
	bgt = (bgt > 0x1f) ? 0x1F : bgt;
	reg = tls_reg_read32(HR_UART2_LINE_CTRL);
	reg &= ~(0x1f << 11);
	reg |= (bgt << 11);
	tls_reg_write32(HR_UART2_LINE_CTRL, reg);
}