/* * Mainboard.c * * Created: 06.10.2013 19:12:35 * Author: netz */ #define F_CPU 16000000 //#define F_CPU 8000000 //#define F_CPU 2000000 #include #include //#include "config.h" //#include //#include "led.h" //#include "rs232.h" //#include "usb.h" /*void wait_for_usb() { while(true) { if(usb_getstatus() == USB_STATUS_DISCONNECTED) { led(YELLOW); if(!(PINC & (1<= 29) { text[29] = 13; text[30] = 10; text[31] = 0; } else { text[l] = 13; text[l+1] = 10; text[l+2] = 0; } led(MAGENTA); rs232_send(text); if(usb_getstatus() == USB_STATUS_CONFIGURED && usb_ready()) { usb_send(text); } led(GREEN); } void resi(char * text) { _delay_ms(10); send("Nachricht bekommen!"); //send(text); led(RED); _delay_ms(2000); }*/ uint8_t spi_putc( uint8_t data ) { SPDR = data; while(!(SPSR & (1<