Open GoogleCodeExporter opened 9 years ago
This should be easy to fix. Change it to read:
#if defined(EEPE)
while(bit_is_set(EECR,EEPE)); //Wait for previous EEPROM writes to complete
#else
while(bit_is_set(EECR,EEWE)); //Wait for previous EEPROM writes to complete
#endif
While you're at it, this should probably be changed too:
#if defined(SPMCSR)
: "=m" (SPMCSR) : "M" (PAGE_SIZE) : "r0","r16","r17","r24","r25","r28","r29","r30","r31"
#else
: "=m" (SPMCR) : "M" (PAGE_SIZE) : "r0","r16","r17","r24","r25","r28","r29","r30","r31"
#endif
This way when new devices are added these don't need to be changed yet again.
Original comment by walker...@gmail.com
on 8 Jun 2010 at 10:53
Original issue reported on code.google.com by
madworm_...@spitzenpfeil.org
on 7 Dec 2009 at 11:06