aboutsummaryrefslogtreecommitdiff
path: root/mcu/ATmega8A.h
blob: 1ded66541153d629b98475d74da7ca5f503e4355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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