/* Poll the acknowledge from AT24CXX. 
Support and FAQ: visit  */
static void at24cxx_acknowledge_polling(twi_package_t *twi_package)
/* Poll the acknowledge from AT24CXX. 
Support and FAQ: visit  */
static void at24cxx_acknowledge_polling(twi_package_t *twi_package)
{
	uint8_t data = 0;
	uint8_t addr = twi_package->addr[0];
	uint32_t addr_length = twi_package->addr_length;
	void *buffer = twi_package->buffer;
	uint32_t length = twi_package->length;
	twi_package->addr[0] = 0;
	twi_package->addr_length = 0;
	twi_package->buffer = &data;
	twi_package->length = 1;
	while (twi_master_write(BOARD_AT24C_TWI_INSTANCE, twi_package) !=
		TWI_SUCCESS);
	twi_package->addr[0] = addr;
	twi_package->addr_length = addr_length;
	twi_package->buffer = buffer;
	twi_package->length = length;
}