SPI slave code atxmega
File list:
spi_slave
........\spi_slave
........\.........\Debug
........\.........\.....\src
........\.........\.....\...\ASF
........\.........\.....\...\...\common
........\.........\.....\...\...\......\boards
........\.........\.....\...\...\......\......\user_board
........\.........\.....\...\...\......\......\..........\init.d
........\.........\.....\...\...\......\......\..........\init.o
........\.........\.....\...\...\......\utils
........\.........\.....\...\...\......\.....\interrupt
........\.........\.....\...\...\......\.....\make
........\.........\.....\...\...\xmega
........\.........\.....\...\...\.....\utils
........\.........\.....\...\...\.....\.....\assembler
........\.........\.....\...\...\.....\.....\bit_handling
........\.........\.....\...\...\.....\.....\preprocessor
........\.........\.....\...\config
........\.........\.....\...\main.d
........\.........\.....\...\main.o
........\.........\.....\...\spi.d
........\.........\.....\...\spi.o
........\.........\.....\makedep.mk
........\.........\.....\Makefile
........\.........\.....\spi_slave.eep
........\.........\.....\spi_slave.elf
........\.........\.....\spi_slave.hex
........\.........\.....\spi_slave.lss
........\.........\.....\spi_slave.map
........\.........\.....\spi_slave.srec
........\.........\src
........\.........\...\ASF
........\.........\...\...\common
........\.........\...\...\......\boards
........\.........\...\...\......\......\user_board
........\.........\...\...\......\......\..........\init.c
........\.........\...\...\......\......\..........\user_board.h
........\.........\...\...\......\......\board.h
........\.........\...\...\......\utils
........\.........\...\...\......\.....\interrupt
........\.........\...\...\......\.....\.........\interrupt_avr8.h
........\.........\...\...\......\.....\make
........\.........\...\...\......\.....\....\Makefile.avr.in
........\.........\...\...\......\.....\interrupt.h
........\.........\...\...\......\.....\parts.h
........\.........\...\...\xmega
........\.........\...\...\.....\utils
........\.........\...\...\.....\.....\assembler
........\.........\...\...\.....\.....\.........\gas.h
........\.........\...\...\.....\.....\bit_handling
........\.........\...\...\.....\.....\............\clz_ctz.h
........\.........\...\...\.....\.....\preprocessor
........\.........\...\...\.....\.....\............\mrepeat.h
........\.........\...\...\.....\.....\............\preprocessor.h
........\.........\...\...\.....\.....\............\stringz.h
........\.........\...\...\.....\.....\............\tpaste.h
........\.........\...\...\.....\.....\assembler.h
........\.........\...\...\.....\.....\compiler.h
........\.........\...\...\.....\.....\progmem.h
........\.........\...\...\.....\.....\status_codes.h
........\.........\...\config
........\.........\...\......\conf_board.h
........\.........\...\asf.h
........\.........\...\main.c
........\.........\...\spi.c
........\.........\...\spi.h
........\.........\spi_slave.cproj
........\spi_slave.atsln
........\spi_slave.atsuo