#include "spi.h" void spi_init() { // setup SPI-Port DDR_SPI = (1<'); /// uart_putc(c); /// uart_putc('\n'); SPDR = c; loop_until_bit_is_set(SPSR, SPIF); /// stdout_put_string(uart_putc, "- [done]\n"); } unsigned char spi_getc() { SPDR = 0xFF; // init receive register with value /* Wait for reception complete */ while(!(SPSR & (1<