diff options
Diffstat (limited to 'mcu')
-rw-r--r-- | mcu/ATmega328P.h | 29 | ||||
-rw-r--r-- | mcu/ATmega32U4.h | 19 | ||||
-rw-r--r-- | mcu/ATmega8A.h | 18 | ||||
-rw-r--r-- | mcu/ATtiny4313.h | 17 | ||||
-rw-r--r-- | mcu/ATtiny85.h | 15 | ||||
-rw-r--r-- | mcu/mcu.h | 18 | ||||
-rw-r--r-- | mcu/mcu_def.h | 21 |
7 files changed, 0 insertions, 137 deletions
diff --git a/mcu/ATmega328P.h b/mcu/ATmega328P.h deleted file mode 100644 index e876295..0000000 --- a/mcu/ATmega328P.h +++ /dev/null @@ -1,29 +0,0 @@ -/* This is specific configuration for ATmega328P. - * Also applies on ATmega48A, ATmega48PA, ATmega88A, ATmega88PA, ATmega168A and - * ATmega168PA. - */ -#include <avr/io.h> - -// SPI -#define MCUSUPPORT_SPI -#define DDR_SPI DDRB -#define DD_SS DDB2 -#define DD_MOSI DDB3 -#define DD_MISO DDB4 -#define DD_SCLK DDB5 -#define PORT_SPI PORTB -#define PORT_SS PORTB2 -#define PORT_MOSI PORTB3 -#define PORT_MISO PORTB4 -#define PORT_SCLK PORTB5 -// USART -#define MCUSUPPORT_USART -// TWI -#define MCUSUPPORT_TWI -// TIMERS -#define MCUSUPPORT_TIMER_0 -#define MCUSUPPORT_TIMER_1 -#define MCUSUPPORT_TIMER_2 -#define COUNTER0_PWM 0 -#define COUNTER1_16PWM 1 -#define COUNTER2_PWM_ASYNC 2 diff --git a/mcu/ATmega32U4.h b/mcu/ATmega32U4.h deleted file mode 100644 index 16351e8..0000000 --- a/mcu/ATmega32U4.h +++ /dev/null @@ -1,19 +0,0 @@ -/* This is specific configuration for ATmega32U4. - * This configuration also applies on ATmega16U4. - */ -#include <avr/io.h> - -// SPI -#define MCUSUPPORT_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 -// USART -#define MCUSUPPORT_USART0 diff --git a/mcu/ATmega8A.h b/mcu/ATmega8A.h deleted file mode 100644 index a2d3adf..0000000 --- a/mcu/ATmega8A.h +++ /dev/null @@ -1,18 +0,0 @@ -/* This is specific configuration for ATmega8A. - */ -#include <avr/io.h> - -// 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 diff --git a/mcu/ATtiny4313.h b/mcu/ATtiny4313.h deleted file mode 100644 index efbc01d..0000000 --- a/mcu/ATtiny4313.h +++ /dev/null @@ -1,17 +0,0 @@ -/* This is specific configuration for ATtiny4313. - * This configuration also applies on ATtiny2313A. - */ -#include <avr/io.h> - -// SPI USI -#define MCUSUPPORT_USI -#define DDR_USI DDRB -#define DD_DI DDB5 -#define DD_DO DDB6 -#define DD_USCK DDB7 -#define PORT_USI PORTB -#define PORT_DI PORTB5 -#define PORT_DO PORTB6 -#define PORT_USCK PORTB7 -// USART -#define MCUSUPPORT_USART0 diff --git a/mcu/ATtiny85.h b/mcu/ATtiny85.h deleted file mode 100644 index 19db90d..0000000 --- a/mcu/ATtiny85.h +++ /dev/null @@ -1,15 +0,0 @@ -/* This is specific configuration for ATtiny85. - * This configuration also applies on ATtiny45 and ATtiny25. - */ -#include <avr/io.h> - -// SPI USI -#define MCUSUPPORT_USI -#define DDR_USI DDRB -#define DD_DI DDB0 -#define DD_DO DDB1 -#define DD_USCK DDB2 -#define PORT_USI PORTB -#define PORT_DI PORTB0 -#define PORT_DO PORTB1 -#define PORT_USCK PORTB2 diff --git a/mcu/mcu.h b/mcu/mcu.h deleted file mode 100644 index e1272b9..0000000 --- a/mcu/mcu.h +++ /dev/null @@ -1,18 +0,0 @@ -#define __MCU_ATmega328p__ \ - ((defined __AVR_ATmega328P__ || defined __AVR_ATmega328__ || \ - defined __AVR_ATmega1688PA__ || defined __AVR_ATmega168A__ || \ - defined __AVR_ATmega88PA__ || defined __AVR_ATmega88A__ || \ - defined __AVR_ATmega48PA__ || defined AVR_ATmega48A__)) - -#define __MCU_ATmega32U4__ \ - ((defined __AVR_ATmega32U4__ || defined __AVR_ATmega16U4)) - -#define __MCU_ATmega8A__ \ - (defined __AVR_ATmega8A__) - -#define __MCU_ATtiny4313__ \ - ((defined __AVR_ATtiny4313__ || defined __AVR_ATtiny2313A__)) - -#define __MCU_ATtiny85__ \ - ((defined __AVR_ATtiny85__ || defined __AVR_ATtiny45__ || \ - defined __AVR_ATtiny25__)) diff --git a/mcu/mcu_def.h b/mcu/mcu_def.h deleted file mode 100644 index 51b70fe..0000000 --- a/mcu/mcu_def.h +++ /dev/null @@ -1,21 +0,0 @@ -#include "mcu.h" - -#if __MCU_ATmega328p__ -#include "ATmega328P.h" -#endif - -#if __MCU_ATmega32U4__ -#include "ATmega32U4.h" -#endif - -#if __MCU_ATmega8A__ -#include "ATmega8A.h" -#endif - -#if __MCU_ATtiny4313__ -#include "ATtiny4313.h" -#endif - -#if __MCU_ATtiny85__ -#include "ATtiny85.h" -#endif |