/* These access an Atmel AT24 SEEPROM using their glue chip registers.  */
static void at24_writedatabyte(unsigned long regaddr, unsigned char byte)
/* These access an Atmel AT24 SEEPROM using their glue chip registers.  */
static void at24_writedatabyte(unsigned long regaddr, unsigned char byte)
{
	int i;
	for (i = 0; i < 8; i++) {
		at24_setlines(regaddr, 0, (byte >> (7-i))&0x01);
		at24_setlines(regaddr, 1, (byte >> (7-i))&0x01);
		at24_setlines(regaddr, 0, (byte >> (7-i))&0x01);
	}
}