Olimex Support Forum

Microcontrollers => AVR => Topic started by: banoso on July 01, 2013, 02:44:57 AM

Title: gcc optimizations on AVR-CAN example source code
Post by: banoso on July 01, 2013, 02:44:57 AM
I recently purchased the Olimex AVR-CAN development board and an ATMEL AVRDRAGON for JTAG programming and debugging.  So far so good. I'm curious about the gcc optimization assembly language code included in the examples under the function "WDT_OFF(Void)". The comments indicate that the code does not meet the datasheet specifications unless these optimizations are included. The function messes with the CPU Z register. What is it doing?
Thanks,
El Chapo