mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/cc2538: Add Kconfig cpu and radio
This commit is contained in:
parent
99d43a7223
commit
537c4c7096
@ -21,6 +21,7 @@ config CPU_FAM_CC2538
|
||||
select HAS_PERIPH_UART_NONBLOCKING
|
||||
select HAS_PERIPH_RTT_OVERFLOW
|
||||
select HAS_PERIPH_WDT
|
||||
select HAVE_CC2538_RF
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_CC2538NF53
|
||||
@ -48,4 +49,9 @@ config CPU_MODEL
|
||||
config CPU
|
||||
default "cc2538" if CPU_FAM_CC2538
|
||||
|
||||
config MODULE_PERIPH_UART_NONBLOCKING
|
||||
bool
|
||||
depends on HAS_PERIPH_UART_NONBLOCKING
|
||||
select MODULE_TSRB
|
||||
|
||||
source "$(RIOTCPU)/cortexm_common/Kconfig"
|
||||
|
@ -15,3 +15,9 @@ FEATURES_PROVIDED += periph_wdt
|
||||
FEATURES_PROVIDED += cortexm_mpu
|
||||
|
||||
include $(RIOTCPU)/cortexm_common/Makefile.features
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTCPU)/cc2538/cc2538.config
|
||||
endif
|
||||
|
1
cpu/cc2538/cc2538.config
Normal file
1
cpu/cc2538/cc2538.config
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MODULE_PM_LAYERED=y
|
30
cpu/cc2538/radio/Kconfig
Normal file
30
cpu/cc2538/radio/Kconfig
Normal file
@ -0,0 +1,30 @@
|
||||
# Copyright (c) 2021 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.
|
||||
#
|
||||
|
||||
menuconfig MODULE_CC2538_RF
|
||||
bool "CC2538 IEEE 802.15.4 radio"
|
||||
depends on TEST_KCONFIG
|
||||
depends on CPU_FAM_CC2538
|
||||
|
||||
if MODULE_CC2538_RF
|
||||
|
||||
config MODULE_CC2538_RF_OBS_SIG
|
||||
bool "Output observation signals"
|
||||
help
|
||||
Say y to output different observation signals from the RF Core
|
||||
to GPIO pins. These signals can be useful for debugging of
|
||||
low-level protocols or control of external PA, LNA, or switches.
|
||||
|
||||
For more information check section 9.2.4 of the CC2538 User's Manual.
|
||||
|
||||
endif # MODULE_CC2538_RF
|
||||
|
||||
config HAVE_CC2538_RF
|
||||
bool
|
||||
select MODULE_CC2538_RF if MODULE_NETDEV_DEFAULT
|
||||
help
|
||||
Indicates that a cc2538 radio is present.
|
@ -9,6 +9,7 @@ rsource "at86rf215/Kconfig"
|
||||
rsource "ata8520e/Kconfig"
|
||||
rsource "can_trx/Kconfig"
|
||||
rsource "cc110x/Kconfig"
|
||||
source "$(RIOTCPU)/cc2538/radio/Kconfig"
|
||||
rsource "dose/Kconfig"
|
||||
rsource "mcp2515/Kconfig"
|
||||
rsource "mrf24j40/Kconfig"
|
||||
|
Loading…
Reference in New Issue
Block a user