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>
This commit is contained in:
Kevin O'Connor 2019-02-16 08:23:00 -05:00
parent cc4ecef88b
commit a285668b46
1 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ config AVRDUDE_PROTOCOL
default "arduino" default "arduino"
choice choice
prompt "Processor speed" prompt "Processor speed" if LOW_LEVEL_OPTIONS
config AVR_FREQ_20000000 config AVR_FREQ_20000000
bool "20Mhz" bool "20Mhz"
depends on MACH_atmega168 || MACH_atmega328 || MACH_atmega328p || MACH_atmega644p || MACH_atmega1284p depends on MACH_atmega168 || MACH_atmega328 || MACH_atmega328p || MACH_atmega644p || MACH_atmega1284p
@ -76,8 +76,8 @@ endchoice
config CLOCK_FREQ config CLOCK_FREQ
int int
default 8000000 if AVR_FREQ_8000000 default 8000000 if AVR_FREQ_8000000
default 16000000 if AVR_FREQ_16000000
default 20000000 if AVR_FREQ_20000000 default 20000000 if AVR_FREQ_20000000
default 16000000
config CLEAR_PRESCALER config CLEAR_PRESCALER
bool "Manually clear the CPU prescaler field at startup" if LOW_LEVEL_OPTIONS bool "Manually clear the CPU prescaler field at startup" if LOW_LEVEL_OPTIONS
@ -111,7 +111,7 @@ config SERIAL
default y default y
choice choice
depends on SERIAL 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 help
Select the serial device to use on the AVR chip. This is Select the serial device to use on the AVR chip. This is
almost always UART0. almost always UART0.