diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-02 11:31:37 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-02 11:31:37 +0200 |
commit | 4e39af4195506e746048d5ad48ea91692b0173b5 (patch) | |
tree | a46cc7f3a621ad4ecca7ec31c68d450d1d48c751 /mcu/ATmega8A.h | |
parent | 028c7f8c571ea2d9ad1910b196a8788d06dcc203 (diff) | |
download | avr-ioe-4e39af4195506e746048d5ad48ea91692b0173b5.tar.gz avr-ioe-4e39af4195506e746048d5ad48ea91692b0173b5.tar.bz2 avr-ioe-4e39af4195506e746048d5ad48ea91692b0173b5.zip |
Add support for ATmega8A
Diffstat (limited to 'mcu/ATmega8A.h')
-rw-r--r-- | mcu/ATmega8A.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <avr/io.h> + +// 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 |