From 5d29fe79d30f430ae326d9dc57ccfaed6fe61328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 8 Mar 2016 16:10:33 +0100 Subject: Another full update of current work --- include/mcu/atmega8a.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/mcu/atmega8a.h (limited to 'include/mcu/atmega8a.h') diff --git a/include/mcu/atmega8a.h b/include/mcu/atmega8a.h new file mode 100644 index 0000000..a2d3adf --- /dev/null +++ b/include/mcu/atmega8a.h @@ -0,0 +1,18 @@ +/* This is specific configuration for ATmega8A. + */ +#include + +// SPI +#define MCUSUPPORT_SPI +#define DDR_SPI DDRB +#define DD_SS DDB2 +#define DD_SCLK DDB5 +#define DD_MOSI DDB3 +#define DD_MISO DDB4 +#define PORT_SPI PORTB +#define PORT_SS PORTB2 +#define PORT_SCLK PORTB5 +#define PORT_MOSI PORTB3 +#define PORT_MISO PORTB4 +// USART +#define MCUSUPPORT_USART0 -- cgit v1.2.3