Added atomic integer operations for avr