cpu/msp430_common: Add Kconfig symbols

Also specify CPU_ARCH and CPU_CORE in Makefile.features.
This commit is contained in:
Leandro Lanzieri 2020-06-24 09:26:05 +02:00
parent 6774f7e412
commit c86bf5074d
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 31 additions and 0 deletions

View File

@ -1,9 +1,37 @@
# Copyright (c) 2020 Freie Universitaet Berlin # Copyright (c) 2020 Freie Universitaet Berlin
# 2020 HAW Hamburg
# #
# This file is subject to the terms and conditions of the GNU Lesser # 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 # General Public License v2.1. See the file LICENSE in the top level
# directory for more details. # directory for more details.
# #
config CPU_ARCH_MSP430
bool
select HAS_ARCH_16BIT
select HAS_ARCH_MSP430
select HAS_PERIPH_FLASHPAGE
select HAS_PERIPH_FLASHPAGE_RAW
select HAS_PERIPH_PM
config CPU_CORE_MSP430
bool
select CPU_ARCH_MSP430
## Common CPU symbols
config CPU_ARCH
default "msp430" if CPU_ARCH_MSP430
config CPU_CORE
default "msp430" if CPU_CORE_MSP430
## Definition of specific features
config HAS_ARCH_MSP430
bool
help
Indicates that the current architecture is MSP430.
## Specific default configuration values
config GNRC_PKTBUF_SIZE config GNRC_PKTBUF_SIZE
default 2560 default 2560
depends on KCONFIG_MODULE_GNRC_PKTBUF_STATIC depends on KCONFIG_MODULE_GNRC_PKTBUF_STATIC

View File

@ -1,3 +1,6 @@
CPU_ARCH = msp430
CPU_CORE = msp430
FEATURES_PROVIDED += arch_16bit FEATURES_PROVIDED += arch_16bit
FEATURES_PROVIDED += arch_msp430 FEATURES_PROVIDED += arch_msp430
FEATURES_PROVIDED += periph_flashpage FEATURES_PROVIDED += periph_flashpage