/* This function is used to config the pin in gpio or 7816 mode for the 7816 power on timing.  */
void wm_sc_io_clk_config(uint8_t mode)
/* This function is used to config the pin in gpio or 7816 mode for the 7816 power on timing.  */
void wm_sc_io_clk_config(uint8_t mode)
{	if (sc_io.initialed == 0)
	{
		printf("error : 7816 io map must init....\r\n");
		return ;
	}
	if (mode)
	{
		tls_io_cfg_set(sc_io.clk_pin_num, WM_IO_OPTION5);
		tls_io_cfg_set(sc_io.io_pin_num, WM_IO_OPTION5);
		tls_gpio_cfg(sc_io.clk_pin_num, WM_GPIO_DIR_OUTPUT, WM_GPIO_ATTR_PULLHIGH);
		tls_gpio_cfg(sc_io.io_pin_num, WM_GPIO_DIR_OUTPUT, WM_GPIO_ATTR_PULLHIGH);
	}
	else
	{		tls_io_cfg_set(sc_io.clk_pin_num, sc_io.clk_opt);
		tls_io_cfg_set(sc_io.io_pin_num, sc_io.io_opt);
	}
}