aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-28 09:59:51 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-28 09:59:51 -0400
commit7e3d7e071f3819894e6a56272a95df0cd9324548 (patch)
tree1b179659cfbad17ebc754b310dbb74511fa9eff0 /src
parentd4bed025ed6de39e517422b076b5af9d7b31abb7 (diff)
downloadkutter-7e3d7e071f3819894e6a56272a95df0cd9324548.tar.gz
kutter-7e3d7e071f3819894e6a56272a95df0cd9324548.tar.xz
kutter-7e3d7e071f3819894e6a56272a95df0cd9324548.zip
avr: Reorder Kconfig entries so that atmega2560 at 16mhz is default
Reorder the MCU list so that newer chips are at the top of the list. This causes the very popular atmega2560 to be the default chip selected. Reorder the frequency list so that higher frequencies are at the top of the list. Restrict the 20Mhz frequency to only chips that support that speed. This causes the popular 16Mhz frequency to be the default speed on AVR. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/avr/Kconfig25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/avr/Kconfig b/src/avr/Kconfig
index f678d639..46dc08bb 100644
--- a/src/avr/Kconfig
+++ b/src/avr/Kconfig
@@ -16,16 +16,16 @@ config BOARD_DIRECTORY
choice
prompt "Processor model"
- config MACH_atmega168
- bool "atmega168"
- config MACH_atmega644p
- bool "atmega644p"
- config MACH_at90usb1286
- bool "at90usb1286"
- config MACH_atmega1280
- bool "atmega1280"
config MACH_atmega2560
bool "atmega2560"
+ config MACH_atmega1280
+ bool "atmega1280"
+ config MACH_at90usb1286
+ bool "at90usb1286"
+ config MACH_atmega644p
+ bool "atmega644p"
+ config MACH_atmega168
+ bool "atmega168"
endchoice
config MCU
@@ -38,12 +38,13 @@ config MCU
choice
prompt "Processor speed"
- config AVR_FREQ_8000000
- bool "8Mhz"
- config AVR_FREQ_16000000
- bool "16Mhz"
config AVR_FREQ_20000000
bool "20Mhz"
+ depends on MACH_atmega168 || MACH_atmega644p
+ config AVR_FREQ_16000000
+ bool "16Mhz"
+ config AVR_FREQ_8000000
+ bool "8Mhz"
endchoice
config CLOCK_FREQ