Welcome, Guest

Author Topic: gcc optimizations on AVR-CAN example source code  (Read 1964 times)

banoso

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
gcc optimizations on AVR-CAN example source code
« 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