diff options
Diffstat (limited to 'src/avr/Kconfig')
-rw-r--r-- | src/avr/Kconfig | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/avr/Kconfig b/src/avr/Kconfig new file mode 100644 index 000000000..e09646760 --- /dev/null +++ b/src/avr/Kconfig @@ -0,0 +1,64 @@ +# Kconfig settings for AVR processors + +if MACH_AVR + +config BOARD_DIRECTORY + string + default "avr" + +choice + prompt "Processor model" + config MACH_atmega168 + bool "atmega168" + config MACH_atmega644p + bool "atmega644p" + config MACH_atmega1280 + bool "atmega1280" + config MACH_atmega2560 + bool "atmega2560" +endchoice + +config MCU + string + default "atmega168" if MACH_atmega168 + default "atmega644p" if MACH_atmega644p + default "atmega1280" if MACH_atmega1280 + default "atmega2560" if MACH_atmega2560 + +choice + prompt "Processor speed" + config AVR_FREQ_8000000 + bool "8Mhz" + config AVR_FREQ_16000000 + bool "16Mhz" + config AVR_FREQ_20000000 + bool "20Mhz" +endchoice + +config CLOCK_FREQ + int + default 8000000 if AVR_FREQ_8000000 + default 16000000 if AVR_FREQ_16000000 + default 20000000 if AVR_FREQ_20000000 + +config AVR_STACK_SIZE + int + default 256 if MACH_atmega2560 + default 128 + +config AVR_WATCHDOG + bool "Support for automated reset on watchdog timeout" + default y +config AVR_SERIAL + bool + default y +config SERIAL_BAUD + depends on AVR_SERIAL + int "Baud rate for serial port" + default 250000 +config SERIAL_BAUD_U2X + depends on AVR_SERIAL + bool "Use AVR Baud 2X mode" + default y + +endif |