From 4e39af4195506e746048d5ad48ea91692b0173b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 Apr 2015 11:31:37 +0200 Subject: Add support for ATmega8A --- mcu/ATmega8A.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mcu/ATmega8A.h (limited to 'mcu/ATmega8A.h') diff --git a/mcu/ATmega8A.h b/mcu/ATmega8A.h new file mode 100644 index 0000000..1ded665 --- /dev/null +++ b/mcu/ATmega8A.h @@ -0,0 +1,15 @@ +/* This is specific configuration for ATmega8A. + */ +#include + +// 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 -- cgit v1.2.3