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

drivers/cc2420: model Kconfig

This commit is contained in:
Leandro Lanzieri 2022-03-09 09:07:16 +01:00
parent 7d95e9b5a9
commit 9225c4b80e
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
4 changed files with 31 additions and 0 deletions

View File

@ -16,3 +16,5 @@ config BOARD_TELOSB
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAVE_CC2420

View File

@ -16,3 +16,5 @@ config BOARD_Z1
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAVE_CC2420

View File

@ -13,6 +13,7 @@ rsource "at86rf215/Kconfig"
rsource "ata8520e/Kconfig"
rsource "can_trx/Kconfig"
rsource "cc110x/Kconfig"
rsource "cc2420/Kconfig"
rsource "$(RIOTCPU)/cc2538/radio/Kconfig"
rsource "$(RIOTCPU)/esp32/esp-eth/Kconfig"
rsource "$(RIOTCPU)/nrf5x_common/radio/Kconfig.nrf5x"

26
drivers/cc2420/Kconfig Normal file
View File

@ -0,0 +1,26 @@
# Copyright (c) 2022 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 MODULE_CC2420
bool "CC2420 radio"
depends on TEST_KCONFIG
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_GPIO_IRQ
depends on HAS_PERIPH_SPI
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
select MODULE_PERIPH_SPI
select MODULE_XTIMER
select MODULE_IEEE802154
select MODULE_NETDEV
select MODULE_NETDEV_IEEE802154
config HAVE_CC2420
bool
select MODULE_CC2420 if MODULE_NETDEV_DEFAULT
help
Indicates that a CC2420 radio is present.