aboutsummaryrefslogtreecommitdiff
path: root/include/mcu
diff options
context:
space:
mode:
Diffstat (limited to 'include/mcu')
-rw-r--r--include/mcu/Kconfig11
-rw-r--r--include/mcu/atmega328p.Kconfig11
-rw-r--r--include/mcu/attiny4313.Kconfig2
-rw-r--r--include/mcu/attiny85.Kconfig2
-rw-r--r--include/mcu/mcu.h8
5 files changed, 22 insertions, 12 deletions
diff --git a/include/mcu/Kconfig b/include/mcu/Kconfig
index cecefdf..0468540 100644
--- a/include/mcu/Kconfig
+++ b/include/mcu/Kconfig
@@ -1,11 +1,12 @@
config MMCU
- string
- default "atmega328p" if ATMEGA328P
- default "attiny85" if ATTINY85
- default "attiny4313" if ATTINY4313
+ string
+ default "atmega328p" if ATMEGA328P
+ default "atmega168a" if ATMEGA168A
+ default "attiny85" if ATTINY85
+ default "attiny4313" if ATTINY4313
choice MCU
- prompt "Microcontroller (MMCU)"
+ prompt "Microcontroller (MMCU)"
source "$IOEROOT/include/mcu/atmega328p.Kconfig"
source "$IOEROOT/include/mcu/attiny85.Kconfig"
diff --git a/include/mcu/atmega328p.Kconfig b/include/mcu/atmega328p.Kconfig
index 5b4bf27..498887f 100644
--- a/include/mcu/atmega328p.Kconfig
+++ b/include/mcu/atmega328p.Kconfig
@@ -1,5 +1,14 @@
config ATMEGA328P
- bool "atmega328p"
+ bool "ATmega328P"
+ select MCUSUPPORT_IOPORTS
+ select MCUSUPPORT_PCINT0
+ select MCUSUPPORT_PCINT1
+ select MCUSUPPORT_PCINT2
+ select MCUSUPPORT_SPI
+ select MCUSUPPORT_USART
+
+config ATMEGA168A
+ bool "ATmega168A"
select MCUSUPPORT_IOPORTS
select MCUSUPPORT_PCINT0
select MCUSUPPORT_PCINT1
diff --git a/include/mcu/attiny4313.Kconfig b/include/mcu/attiny4313.Kconfig
index f685793..bb56684 100644
--- a/include/mcu/attiny4313.Kconfig
+++ b/include/mcu/attiny4313.Kconfig
@@ -1,5 +1,5 @@
config ATTINY4313
- bool "attiny4313"
+ bool "ATtiny4313"
select MCUSUPPORT_IOPORTS
select MCUSUPPORT_PCINT0
select MCUSUPPORT_PCINT1
diff --git a/include/mcu/attiny85.Kconfig b/include/mcu/attiny85.Kconfig
index d58c1d8..06d712f 100644
--- a/include/mcu/attiny85.Kconfig
+++ b/include/mcu/attiny85.Kconfig
@@ -1,4 +1,4 @@
config ATTINY85
- bool "attiny85"
+ bool "ATtiny85"
select MCUSUPPORT_IOPORTS
select MCUSUPPORT_PCINT0
diff --git a/include/mcu/mcu.h b/include/mcu/mcu.h
index e1272b9..6038103 100644
--- a/include/mcu/mcu.h
+++ b/include/mcu/mcu.h
@@ -1,8 +1,8 @@
#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__))
+ 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))
@@ -15,4 +15,4 @@
#define __MCU_ATtiny85__ \
((defined __AVR_ATtiny85__ || defined __AVR_ATtiny45__ || \
- defined __AVR_ATtiny25__))
+ defined __AVR_ATtiny25__))