1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17290 from fjmolinas/pr_kconfig_msp430

cpu/msp430: add Kconfig
This commit is contained in:
Leandro Lanzieri 2021-12-03 08:37:11 +01:00 committed by GitHub
commit d7bf363517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 38 additions and 6 deletions

View File

@ -50,6 +50,7 @@ slstk3400a
sltb001a
slwstk6220a
waspmote-pro
z1
"}
: ${TEST_KCONFIG_ENFORCE_APP_GROUPS:="

View File

@ -9,3 +9,11 @@ config BOARD_COMMON_MSB_430
bool
default y
select CPU_MODEL_MSP430F1612
config MODULE_BOARDS_COMMON_MSB_430
bool
default y
depends on TEST_KCONFIG
depends on BOARD_COMMON_MSB_430
help
Common code for msb-430 boards.

View File

@ -1,3 +1,3 @@
MODULE = boards_common_msb-430
MODULE = boards_common_msb_430
include $(RIOTBASE)/Makefile.base

View File

@ -18,4 +18,6 @@ config BOARD_MSB_430
select HAS_PERIPH_UART
select BOARD_COMMON_MSB_430
select HAVE_SHT11
source "$(RIOTBOARD)/common/msb-430/Kconfig"

View File

@ -2,4 +2,4 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += sht11
endif
USEMODULE += boards_common_msb-430
USEMODULE += boards_common_msb_430

View File

@ -2,4 +2,4 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += sht11
endif
USEMODULE += boards_common_msb-430
USEMODULE += boards_common_msb_430

View File

@ -6,6 +6,27 @@
# directory for more details.
#
config MODULE_MSP430_COMMON
bool
default y if CPU_CORE_MSP430
depends on TEST_KCONFIG
imply MODULE_NEWLIB_NANO
select MODULE_MALLOC_THREAD_SAFE
help
Common code for MSP430 cores.
config MODULE_MSP430_COMMON_PERIPH
bool
default y if CPU_CORE_MSP430
depends on TEST_KCONFIG
select MODULE_PERIPH
help
Common peripheral code for MSP430 cores.
choice LIBC_IMPLEMENTATION
default MODULE_NEWLIB
endchoice
config CPU_ARCH_MSP430
bool
select HAS_ARCH_16BIT
@ -15,7 +36,6 @@ config CPU_ARCH_MSP430
select HAS_PERIPH_FLASHPAGE_PAGEWISE
select HAS_NEWLIB
select HAS_PERIPH_PM
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
config CPU_CORE_MSP430
bool

View File

@ -1,4 +1,6 @@
USEMODULE += msp430_common msp430_common_periph
USEMODULE += msp430_common
USEMODULE += msp430_common_periph
USEMODULE += periph
ifneq (,$(filter newlib,$(USEMODULE)))
DEFAULT_MODULE += newlib_nano

View File

@ -1,2 +1 @@
USEMODULE += periph
include $(RIOTCPU)/msp430_common/Makefile.dep