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

drivers/at86rf2xx: model Kconfig

This commit is contained in:
Leandro Lanzieri 2022-03-09 17:19:36 +01:00
parent eab508b4b1
commit 7d95e9b5a9
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
8 changed files with 139 additions and 2 deletions

View File

@ -22,6 +22,7 @@ config BOARD_COMMON_IOTLAB
select BOARD_HAS_HSE
select BOARD_HAS_LSE
select HAVE_AT86RF231
select HAVE_SAUL_GPIO
select HAVE_L3G4200D
select HAVE_LSM303DLHC

View File

@ -21,6 +21,7 @@ config BOARD_HAMILTON
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAVE_AT86RF233
select HAVE_FXOS8700
select HAVE_HDC1000
select HAVE_PIR

View File

@ -21,6 +21,7 @@ config BOARD_MULLE
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAVE_AT86RF212B
select HAVE_LIS3DH
select HAVE_SAUL_ADC
select HAVE_SAUL_GPIO

View File

@ -19,5 +19,7 @@ config BOARD_OPENMOTE_B
select HAS_PERIPH_UART
select HAS_RIOTBOOT
select HAVE_SI7006
select HAVE_AT86RF215
# select HAVE_CC2538_RF # TODO: the AT86 radio should be enabled with netdev_default
select HAVE_SAUL_GPIO
select HAVE_SI7006

View File

@ -23,5 +23,6 @@ config BOARD_SAMR21_XPRO
select HAS_PERIPH_USBDEV
select HAS_RIOTBOOT
select HAVE_SAUL_GPIO
select HAVE_EDBG_EUI
select HAVE_SAUL_GPIO
select HAVE_AT86RF233

View File

@ -21,4 +21,5 @@ config BOARD_SAMR30_XPRO
select HAS_PERIPH_USBDEV
select HAS_RIOTBOOT
select HAVE_AT86RF212B
select HAVE_SAUL_GPIO

View File

@ -8,6 +8,7 @@ menu "Network Device Drivers"
rsource "netdev/Kconfig"
rsource "at86rf2xx/Kconfig"
rsource "at86rf215/Kconfig"
rsource "ata8520e/Kconfig"
rsource "can_trx/Kconfig"

129
drivers/at86rf2xx/Kconfig Normal file
View File

@ -0,0 +1,129 @@
# 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.
#
menuconfig MODULE_AT86RF2XX
bool
prompt "AT86RF2xx series radios" if !(MODULE_NETDEV_DEFAULT && HAVE_AT86RF2XX)
default (MODULE_NETDEV_DEFAULT && HAVE_AT86RF2XX)
depends on TEST_KCONFIG
select MODULE_XTIMER
select MODULE_NETDEV
select MODULE_NETDEV_IEEE802154
select MODULE_IEEE802154
if MODULE_AT86RF2XX
choice AT86RF2XX_VARIANT
bool "Variants"
default MODULE_AT86RF212B if HAVE_AT86RF212B
default MODULE_AT86RF231 if HAVE_AT86RF231
default MODULE_AT86RF232 if HAVE_AT86RF232
default MODULE_AT86RF233 if HAVE_AT86RF233
default MODULE_AT86RFA1 if HAVE_AT86RFA1
default MODULE_AT86RFR2 if HAVE_AT86RFR2
help
Select the specific part-number.
config MODULE_AT86RF231
bool "AT86RF231"
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
config MODULE_AT86RF212B
bool "AT86RF212B"
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
config MODULE_AT86RF232
bool "AT86RF232"
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
config MODULE_AT86RF233
bool "AT86RF233"
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
config MODULE_AT86RFA1
bool "AT86RFA1"
config MODULE_AT86RFR2
bool "AT86RFR2"
endchoice
config MODULE_AUTO_INIT_AT86RF2XX
bool "Auto-initialize the driver"
default y
depends on MODULE_AUTO_INIT
config MODULE_AT86RF2XX_AES_SPI
bool "AES security"
config AT86RF2XX_OQPSK
bool "O-QPSK support"
select MODULE_NETDEV_IEEE802154_OQPSK
default y
endif # MODULE_AT86RF2XX
config HAVE_AT86RF2XX
bool
help
Indicates that an AT86RF2XX radio is present.
config HAVE_AT86RF212B
bool
select HAVE_AT86RF2XX
help
Indicates that an AT86RF212B radio is present.
config HAVE_AT86RF231
bool
select HAVE_AT86RF2XX
help
Indicates that an AT86RF231 radio is present.
config HAVE_AT86RF232
bool
select HAVE_AT86RF2XX
help
Indicates that an AT86RF232 radio is present.
config HAVE_AT86RF233
bool
select HAVE_AT86RF2XX
help
Indicates that an AT86RF233 radio is present.
config HAVE_AT86RFA1
bool
select HAVE_AT86RF2XX
help
Indicates that an AT86RFA1 radio is present.
config HAVE_AT86RFR2
bool
select HAVE_AT86RF2XX
help
Indicates that an AT86RFR2 radio is present.