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:
commit
d7bf363517
1
.murdock
1
.murdock
@ -50,6 +50,7 @@ slstk3400a
|
||||
sltb001a
|
||||
slwstk6220a
|
||||
waspmote-pro
|
||||
z1
|
||||
"}
|
||||
|
||||
: ${TEST_KCONFIG_ENFORCE_APP_GROUPS:="
|
||||
|
@ -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.
|
||||
|
@ -1,3 +1,3 @@
|
||||
MODULE = boards_common_msb-430
|
||||
MODULE = boards_common_msb_430
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -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"
|
||||
|
@ -2,4 +2,4 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += sht11
|
||||
endif
|
||||
|
||||
USEMODULE += boards_common_msb-430
|
||||
USEMODULE += boards_common_msb_430
|
||||
|
@ -2,4 +2,4 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += sht11
|
||||
endif
|
||||
|
||||
USEMODULE += boards_common_msb-430
|
||||
USEMODULE += boards_common_msb_430
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,2 +1 @@
|
||||
USEMODULE += periph
|
||||
include $(RIOTCPU)/msp430_common/Makefile.dep
|
||||
|
Loading…
Reference in New Issue
Block a user