aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-16 08:23:00 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-16 08:23:00 -0500
commita285668b46a78968b70da9f1c97be4778543720a (patch)
tree46942657526e4b73ea6fb4148cb3a399c11e3f10
parentcc4ecef88b07f0a9381ac40aaf386eb77f80e4d4 (diff)
downloadkutter-a285668b46a78968b70da9f1c97be4778543720a.tar.gz
kutter-a285668b46a78968b70da9f1c97be4778543720a.tar.xz
kutter-a285668b46a78968b70da9f1c97be4778543720a.zip
avr: Only prompt for cpu speed and uart port on LOW_LEVEL_OPTIONS
The cpu is almost always 16Mhz and the serial port is almost always UART0, so no need to prompt in the normal case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/avr/Kconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/avr/Kconfig b/src/avr/Kconfig
index 0bd4409f..399d79d9 100644
--- a/src/avr/Kconfig
+++ b/src/avr/Kconfig
@@ -63,7 +63,7 @@ config AVRDUDE_PROTOCOL
default "arduino"
choice
- prompt "Processor speed"
+ prompt "Processor speed" if LOW_LEVEL_OPTIONS
config AVR_FREQ_20000000
bool "20Mhz"
depends on MACH_atmega168 || MACH_atmega328 || MACH_atmega328p || MACH_atmega644p || MACH_atmega1284p
@@ -76,8 +76,8 @@ endchoice
config CLOCK_FREQ
int
default 8000000 if AVR_FREQ_8000000
- default 16000000 if AVR_FREQ_16000000
default 20000000 if AVR_FREQ_20000000
+ default 16000000
config CLEAR_PRESCALER
bool "Manually clear the CPU prescaler field at startup" if LOW_LEVEL_OPTIONS
@@ -111,7 +111,7 @@ config SERIAL
default y
choice
depends on SERIAL
- prompt "Serial Port" if MACH_atmega2560 || MACH_atmega1280 || MACH_atmega1284p
+ prompt "Serial Port" if LOW_LEVEL_OPTIONS && (MACH_atmega2560 || MACH_atmega1280 || MACH_atmega1284p)
help
Select the serial device to use on the AVR chip. This is
almost always UART0.