Skip to content
Snippets Groups Projects
Commit 0eee4b0b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

arduino nano: add cpu frequency to kconfig

parent 8f1b5c41
No related branches found
No related tags found
No related merge requests found
# Copyright 2020 Daniel Friesel
#
# SPDX-License-Identifier: CC0-1.0
config arch_arduino_nano_cpufreq
int "CPU Frequency"
#!accept [62500, 125000, 250000, 500000, 1000000, 2000000, 4000000, 8000000, 16000000]
range 62500 16000000
default 16000000
help
Assumes an externel 16MHz crystal to be present
config arch_arduino_nano_driver_adc
bool "ADC (Analog-Digital-Converter)"
select meta_driver_adc
......
......@@ -13,6 +13,10 @@ ifdef CONFIG_arch_arduino_nano_mega168
BAUD = 19200
endif
ifdef CONFIG_arch_arduino_nano_cpufreq
cpu_freq = ${CONFIG_arch_arduino_nano_cpufreq}
endif
cpu_freq ?= 16000000
COMMON_FLAGS += -Werror=overflow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment