1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpu/atmega328p: Add Kconfig symbols

This commit is contained in:
Leandro Lanzieri 2020-05-29 19:25:46 +02:00
parent 19bdb11548
commit 981aecf9cc
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5

36
cpu/atmega328p/Kconfig Normal file
View File

@ -0,0 +1,36 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config CPU_FAM_ATMEGA328
bool
select CPU_COMMON_ATMEGA
select HAS_ATMEGA_PCINT1
select HAS_ATMEGA_PCINT2
## CPU Models
config CPU_MODEL_ATMEGA328P
bool
select CPU_FAM_ATMEGA328
select HAS_CPU_ATMEGA328P
## Definition of specific features
config HAS_CPU_ATMEGA328P
bool
help
Indicates that a 'atmega328p' cpu is being used.
## Common CPU symbols
config CPU_FAM
default "atmega328" if CPU_FAM_ATMEGA328
config CPU_MODEL
default "atmega328p" if CPU_MODEL_ATMEGA328P
config CPU
default "atmega328p" if CPU_FAM_ATMEGA328
source "$(RIOTCPU)/atmega_common/Kconfig"