2015-09-11 16:13:26 +03:00
|
|
|
# Kconfig - IEEE 802.15.4 driver configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1) Redistributions of source code must retain the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer.
|
|
|
|
#
|
|
|
|
# 2) Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer in the documentation
|
|
|
|
# and/or other materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# 3) Neither the name of Intel Corporation nor the names of its contributors
|
|
|
|
# may be used to endorse or promote products derived from this software without
|
|
|
|
# specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
|
|
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# IEEE 802.15.4 options
|
|
|
|
#
|
2016-06-15 10:46:10 +02:00
|
|
|
menu "IEEE 802.15.4 drivers options"
|
2015-09-11 16:13:26 +03:00
|
|
|
|
2017-01-10 14:24:01 +01:00
|
|
|
config SYS_LOG_IEEE802154_DRIVER_LEVEL
|
|
|
|
int
|
|
|
|
prompt "IEEE802154 driver log level"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Sets log level for 802.15.4 drivers.
|
|
|
|
|
|
|
|
Levels are:
|
|
|
|
|
|
|
|
- 0 OFF, do not write
|
|
|
|
|
|
|
|
- 1 ERROR, only write SYS_LOG_ERR
|
|
|
|
|
|
|
|
- 2 WARNING, write SYS_LOG_WRN in adition to previous level
|
|
|
|
|
|
|
|
- 3 INFO, write SYS_LOG_INF in adition to previous levels
|
|
|
|
|
|
|
|
- 4 DEBUG, write SYS_LOG_DBG in adition to previous levels
|
|
|
|
|
2016-06-15 10:46:10 +02:00
|
|
|
config TI_CC2520
|
|
|
|
bool "TI CC2520 Driver support"
|
2016-11-12 00:13:24 +02:00
|
|
|
depends on NETWORKING
|
2016-08-24 13:11:48 +02:00
|
|
|
select NET_L2_IEEE802154
|
2016-06-15 10:46:10 +02:00
|
|
|
default n
|
|
|
|
|
2016-09-26 12:51:58 +03:00
|
|
|
config TI_CC2520_RAW
|
|
|
|
bool "TI CC2520 Driver RAW channel"
|
2016-09-27 15:45:09 +03:00
|
|
|
select NET_L2_RAW_CHANNEL
|
2016-09-26 12:51:58 +03:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable TI_CC2520 driver with RAW channel
|
|
|
|
|
|
|
|
The CC2520 driver with RAW channel allows to export radio interface
|
|
|
|
over USB making an USB 802.15.4 dongle.
|
|
|
|
|
2016-11-11 19:49:31 +02:00
|
|
|
if TI_CC2520 || TI_CC2520_RAW
|
2015-09-11 16:13:26 +03:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TI_CC2520_DRV_NAME
|
2016-03-18 13:08:40 +01:00
|
|
|
string "TI CC2520 Driver's name"
|
|
|
|
default "cc2520"
|
|
|
|
help
|
2016-08-24 13:20:12 +02:00
|
|
|
This option sets the driver name
|
2015-09-11 16:13:26 +03:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TI_CC2520_SPI_DRV_NAME
|
2016-01-18 14:07:39 +01:00
|
|
|
string "SPI driver's name to use to access CC2520"
|
|
|
|
default ""
|
|
|
|
help
|
2016-08-24 13:20:12 +02:00
|
|
|
This option is mandatory to set which SPI controller to use in order
|
|
|
|
to actually control the CC2520 chip.
|
2016-01-18 14:07:39 +01:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TI_CC2520_SPI_FREQ
|
2016-01-18 14:07:39 +01:00
|
|
|
int "SPI system frequency"
|
|
|
|
default 0
|
|
|
|
help
|
2016-08-24 13:20:12 +02:00
|
|
|
This option sets the SPI controller's frequency. Beware this value
|
|
|
|
depends on the SPI controller being used and also on the system
|
|
|
|
clock.
|
2016-01-18 14:07:39 +01:00
|
|
|
|
2016-08-24 13:20:12 +02:00
|
|
|
config TI_CC2520_SPI_SLAVE
|
2016-01-18 14:07:39 +01:00
|
|
|
int "SPI slave linked to CC2520"
|
|
|
|
default 0
|
|
|
|
help
|
2016-08-24 13:20:12 +02:00
|
|
|
This option sets the SPI slave number SPI controller has to switch
|
|
|
|
to when dealing with CC2520 chip.
|
2016-01-18 14:07:39 +01:00
|
|
|
|
2016-12-02 10:33:30 +01:00
|
|
|
config TI_CC2520_RX_STACK_SIZE
|
|
|
|
int "Driver's internal rx thread stack size"
|
2016-08-12 11:38:51 +02:00
|
|
|
default 800
|
2016-02-01 22:31:33 +01:00
|
|
|
help
|
2016-12-02 10:33:30 +01:00
|
|
|
This option sets the driver's stack size for its internal rx thread.
|
|
|
|
The default value should be sufficient, but in case it prooves to be
|
|
|
|
a too little one, this option makes it easy to play with the size.
|
2016-02-01 22:31:33 +01:00
|
|
|
|
2016-11-11 12:24:13 +01:00
|
|
|
config TI_CC2520_INIT_PRIO
|
|
|
|
int "CC2520 intialization priority"
|
|
|
|
default 80
|
|
|
|
help
|
|
|
|
Set the initialization priority number. Do not mess with it unless
|
|
|
|
you know what you are doing. Beware cc2520 requires gpio and spi to
|
|
|
|
be ready first (and sometime gpio should be the very first as spi
|
|
|
|
might need it too). And of course it has to start before the net stack.
|
|
|
|
|
2015-09-11 16:13:26 +03:00
|
|
|
endif
|
2016-08-17 16:48:36 +02:00
|
|
|
|
|
|
|
config UPIPE_15_4
|
|
|
|
bool "UART PIPE fake radio driver support for QEMU"
|
|
|
|
depends on BOARD_QEMU_X86
|
2016-11-12 00:13:24 +02:00
|
|
|
select NETWORKING
|
2016-08-17 16:48:36 +02:00
|
|
|
select UART_PIPE
|
|
|
|
default n
|
|
|
|
|
|
|
|
config UPIPE_15_4_DRV_NAME
|
|
|
|
string "UART PIPE Driver name"
|
|
|
|
default "upipe_15_4"
|
|
|
|
depends on UPIPE_15_4
|
|
|
|
|
2017-01-09 16:54:28 +01:00
|
|
|
config NXP_MCR20A
|
|
|
|
bool "NXP MCR20A Driver support"
|
|
|
|
depends on NETWORKING && SPI
|
|
|
|
select NET_L2_IEEE802154
|
|
|
|
default n
|
|
|
|
|
|
|
|
config NXP_MCR20A_RAW
|
|
|
|
bool "NXP MCR20A Driver RAW channel"
|
|
|
|
depends on SPI
|
|
|
|
select NET_L2_RAW_CHANNEL
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable NXP_MCR20A driver with RAW channel
|
|
|
|
|
|
|
|
The MCR20A driver with RAW channel allows to export radio interface
|
|
|
|
over USB making an USB 802.15.4 dongle.
|
|
|
|
|
|
|
|
if NXP_MCR20A || NXP_MCR20A_RAW
|
|
|
|
|
|
|
|
config NXP_MCR20A_DRV_NAME
|
|
|
|
string "NXP MCR20A Driver's name"
|
|
|
|
default "mcr20a"
|
|
|
|
help
|
|
|
|
This option sets the driver name
|
|
|
|
|
|
|
|
config NXP_MCR20A_SPI_DRV_NAME
|
|
|
|
string "SPI driver's name to use to access MCR20A"
|
|
|
|
default SPI_0_NAME
|
|
|
|
help
|
|
|
|
This option is mandatory to set which SPI controller to use in order
|
|
|
|
to actually control the MCR20A chip.
|
|
|
|
|
|
|
|
config NXP_MCR20A_SPI_FREQ
|
|
|
|
int "SPI system frequency"
|
|
|
|
default 4000000
|
|
|
|
help
|
|
|
|
This option sets the SPI controller's frequency. Beware this value
|
|
|
|
depends on the SPI controller being used and also on the system
|
|
|
|
clock.
|
|
|
|
|
|
|
|
config NXP_MCR20A_SPI_SLAVE
|
|
|
|
int "SPI slave linked to MCR20A"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
This option sets the SPI slave number SPI controller has to switch
|
|
|
|
to when dealing with MCR20A chip.
|
|
|
|
|
|
|
|
config MCR20A_GPIO_IRQ_B_NAME
|
|
|
|
string "GPIO device used for IRQ_B output of MCR20A"
|
|
|
|
default GPIO_MCUX_PORTB_NAME
|
|
|
|
|
|
|
|
config MCR20A_GPIO_IRQ_B_PIN
|
|
|
|
int "GPIO pin connected to IRQ_B output of MCR20A"
|
|
|
|
default 9
|
|
|
|
|
|
|
|
config MCR20A_GPIO_RESET_NAME
|
|
|
|
string "GPIO device used for RESET input of MCR20A"
|
|
|
|
default GPIO_MCUX_PORTA_NAME
|
|
|
|
|
|
|
|
config MCR20A_GPIO_RESET_PIN
|
|
|
|
int "GPIO pin connected to RESET input of MCR20A"
|
|
|
|
default 2
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "CLK_OUT frequency"
|
|
|
|
default MCR20A_CLK_OUT_DISABLED
|
|
|
|
help
|
|
|
|
Configuration of the MCR20A clock output pin.
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_DISABLED
|
|
|
|
bool "Disabled"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_32MHZ
|
|
|
|
bool "32 MHz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_16MHZ
|
|
|
|
bool "16 MHz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_8MHZ
|
|
|
|
bool "8 MHz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_4MHZ
|
|
|
|
bool "4 MHz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_1MHZ
|
|
|
|
bool "1 MHz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_250KHZ
|
|
|
|
bool "250 kHz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_62500HZ
|
|
|
|
bool "62500 Hz"
|
|
|
|
|
|
|
|
config MCR20A_CLK_OUT_32768HZ
|
|
|
|
bool "32768 Hz"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config NXP_MCR20A_RX_STACK_SIZE
|
|
|
|
int "Driver's internal rx thread stack size"
|
|
|
|
default 800
|
|
|
|
help
|
|
|
|
This option sets the driver's stack size for its internal rx thread.
|
|
|
|
The default value should be sufficient, but in case it proves to be
|
|
|
|
a too little one, this option makes it easy to play with the size.
|
|
|
|
|
|
|
|
config NXP_MCR20A_INIT_PRIO
|
|
|
|
int "MCR20A intialization priority"
|
|
|
|
default 80
|
|
|
|
help
|
|
|
|
Set the initialization priority number. Do not mess with it unless
|
|
|
|
you know what you are doing. Beware mcr20a requires gpio and spi to
|
|
|
|
be ready first (and sometime gpio should be the very first as spi
|
|
|
|
might need it too). And of course it has to start before the net stack.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2015-09-11 16:13:26 +03:00
|
|
|
endmenu
|