cpu/msp430_common: Add Kconfig symbols
Also specify CPU_ARCH and CPU_CORE in Makefile.features.
This commit is contained in:
parent
6774f7e412
commit
c86bf5074d
@ -1,9 +1,37 @@
|
||||
# Copyright (c) 2020 Freie Universitaet Berlin
|
||||
# 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_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
|
||||
default 2560
|
||||
depends on KCONFIG_MODULE_GNRC_PKTBUF_STATIC
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
CPU_ARCH = msp430
|
||||
CPU_CORE = msp430
|
||||
|
||||
FEATURES_PROVIDED += arch_16bit
|
||||
FEATURES_PROVIDED += arch_msp430
|
||||
FEATURES_PROVIDED += periph_flashpage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user