On Friday 22 July 2005 18:38, Nigel Winterbottom wrote: > The Attachment was missing (me being a buffoon). Now Added. ...
Thanks, the code is good optimized. Notes: You use short commands (rcall/rjmp). Very well, but it is necessary to use subsections in this case (look, for example, libm or ctype.S). I am not assured of necessity to do functions atomic. In that case it is necessary to rewrite all Avr-libc. But if to agree with such necessity your realization is unsafe, for example: .global Rd Rd: 1: sbic _SFR_IO_ADDR(EECR), EEWE rjmp 1b ; Make sure EEPR is ready << Interrupt with writing to EEPROM>> in __tmp_reg__, _SFR_IO_ADDR(SREG) cli ... Here record of byte in EEPROM will be crashed. Personally I use functions from Avr-libc in simple cases. In the same place, where the big volume of record is necessary, I use my own library based on interruptions. Regards. _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev