From 9447247c1ab0b0a02c5ec87c138135953986975c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 22 Mar 2015 13:58:58 +0100 Subject: mcu definitions change and update --- mcu/ATmega32U4.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'mcu/ATmega32U4.h') diff --git a/mcu/ATmega32U4.h b/mcu/ATmega32U4.h index 204dce4..acf3a24 100644 --- a/mcu/ATmega32U4.h +++ b/mcu/ATmega32U4.h @@ -3,8 +3,14 @@ */ #include -#define DDR_SPI DDRB -#define DD_SS DDB0 -#define DD_MOSI DDB2 -#define DD_MISO DDB3 -#define DD_SCLK DDB5 +// SPI +#define DDR_SPI DDRB +#define DD_SS DDB0 +#define DD_SCLK DDB1 +#define DD_MOSI DDB2 +#define DD_MISO DDB3 +#define PORT_SPI PORTB +#define PORT_SS PORTB0 +#define PORT_SCLK PORTB1 +#define PORT_MOSI PORTB2 +#define PORT_MISO PORTB3 -- cgit v1.2.3