Changes between Version 1 and Version 2 of ArduinoToNativeC


Ignore:
Timestamp:
Jan 25, 2017, 12:08:35 PM (7 years ago)
Author:
Eric Hazen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ArduinoToNativeC

    v1 v2  
    2424  PORTB &= ~_BV( PB5);     // turn off LED
    2525}}}
     26  EXPERT NOTE:  These idioms are recognized by the AVR code generator for
     27  GCC and generate the SBR and CBR machine instructions which are more efficient
     28  and safer than other more "obvious" ways of coding.  In particular they do
     29  not depend on the current state of the register.
     30
    2631Also, setting the direction of the pins (input/output) is a bit different.
    2732In the Arduino environment you would use: