/* Reset AT24MACXX. 
Send 9 clock cycles to reset memory state. */
void at24macxx_reset(void)
/* Reset AT24MACXX. 
Send 9 clock cycles to reset memory state. */
void at24macxx_reset(void)
{
	uint32_t i;
	ioport_set_pin_dir(BOARD_CLK_TWIHS_EEPROM, IOPORT_DIR_OUTPUT);
	ioport_set_pin_level(BOARD_CLK_TWIHS_EEPROM, 1);
	ioport_enable_pin(BOARD_CLK_TWIHS_EEPROM);
	for (i = 0; i < 10; i ++) {
		delay_us(5);
		ioport_set_pin_level(BOARD_CLK_TWIHS_EEPROM, 0);
		delay_us(5);
		ioport_set_pin_level(BOARD_CLK_TWIHS_EEPROM, 1);
	}
	ioport_set_pin_mode(BOARD_CLK_TWIHS_EEPROM, BOARD_CLK_TWIHS_MUX_EEPROM);
	ioport_disable_pin(BOARD_CLK_TWIHS_EEPROM);
}