2017-05-05 01:27:27 +08:00
|
|
|
# Kconfig - Atmel SAM4S MCU series configuration options
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Justin Watson
|
2018-10-02 09:07:47 +08:00
|
|
|
# Copyright (c) 2018 Vincent van der Locht
|
2017-05-05 01:27:27 +08:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
if SOC_SERIES_SAM4S
|
|
|
|
|
|
|
|
config SOC_SERIES
|
|
|
|
string
|
2018-05-23 20:07:08 +08:00
|
|
|
default "sam4s"
|
2017-05-05 01:27:27 +08:00
|
|
|
|
|
|
|
config SOC_PART_NUMBER
|
|
|
|
string
|
2018-05-23 20:07:08 +08:00
|
|
|
default "sam4s16c" if SOC_PART_NUMBER_SAM4S16C
|
2018-10-02 09:07:47 +08:00
|
|
|
default "sam4s16b" if SOC_PART_NUMBER_SAM4S16B
|
|
|
|
default "sam4s8c" if SOC_PART_NUMBER_SAM4S8C
|
|
|
|
default "sam4s8b" if SOC_PART_NUMBER_SAM4S8B
|
|
|
|
default "sam4s4c" if SOC_PART_NUMBER_SAM4S4C
|
|
|
|
default "sam4s4b" if SOC_PART_NUMBER_SAM4S4B
|
|
|
|
default "sam4s4a" if SOC_PART_NUMBER_SAM4S4A
|
|
|
|
default "sam4s2c" if SOC_PART_NUMBER_SAM4S2C
|
|
|
|
default "sam4s2b" if SOC_PART_NUMBER_SAM4S2B
|
|
|
|
default "sam4s2a" if SOC_PART_NUMBER_SAM4S2A
|
2017-05-05 01:27:27 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# SAM4S family has total 35 peripherals capable of
|
|
|
|
# generating interrupts.
|
|
|
|
#
|
|
|
|
config NUM_IRQS
|
|
|
|
int
|
|
|
|
default 35
|
|
|
|
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
|
|
int
|
2017-05-19 05:52:03 +08:00
|
|
|
default 120000000
|
2017-05-05 01:27:27 +08:00
|
|
|
|
|
|
|
endif # SOC_SERIES_SAM4S
|