samples/net: Removing config support for arduino_101 with CC2520
It's useless now, arduino_101 has proven not working very well with x86 gpios and CC2520 never got to work properly there. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
91df111386
commit
d4eeaff93c
|
@ -6,12 +6,6 @@
|
|||
|
||||
# Common routines used in net samples
|
||||
|
||||
ifeq ($(CONFIG_IEEE802154_CC2520),y)
|
||||
ifeq ($(CONFIG_BOARD_ARDUINO_101),y)
|
||||
ccflags-y +=-I${ZEPHYR_BASE}/include/drivers/
|
||||
obj-y += ../../common/cc2520_a101.o
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BOARD_FRDM_K64F),y)
|
||||
ccflags-y +=-I${ZEPHYR_BASE}/drivers/
|
||||
ccflags-y +=-I${ZEPHYR_BASE}/include/drivers/
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
/* cc2520_a101.c - Arduino 101 board setup for cc2520 */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2016 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ieee802154/cc2520.h>
|
||||
#include <gpio.h>
|
||||
|
||||
#define CC2520_GPIO_DEV_NAME CONFIG_GPIO_QMSI_0_NAME
|
||||
|
||||
#define CC2520_GPIO_VREG_EN 16 /* PIN 50, IO8 */
|
||||
#define CC2520_GPIO_RESET 20 /* PIN 54, IO7 */
|
||||
#define CC2520_GPIO_FIFO 19 /* PIN 53, IO4 */
|
||||
#define CC2520_GPIO_CCA 18 /* PIN 52, IO2 */
|
||||
#define CC2520_GPIO_SFD 15 /* PIN 49, IO5 */
|
||||
#define CC2520_GPIO_FIFOP 17 /* PIN 51, IO3 */
|
||||
|
||||
static struct cc2520_gpio_configuration cc2520_gpios[CC2520_GPIO_IDX_MAX] = {
|
||||
{ .dev = NULL, .pin = CC2520_GPIO_VREG_EN, },
|
||||
{ .dev = NULL, .pin = CC2520_GPIO_RESET, },
|
||||
{ .dev = NULL, .pin = CC2520_GPIO_FIFO, },
|
||||
{ .dev = NULL, .pin = CC2520_GPIO_CCA, },
|
||||
{ .dev = NULL, .pin = CC2520_GPIO_SFD, },
|
||||
{ .dev = NULL, .pin = CC2520_GPIO_FIFOP, },
|
||||
};
|
||||
|
||||
struct cc2520_gpio_configuration *cc2520_configure_gpios(void)
|
||||
{
|
||||
struct device *gpio;
|
||||
int i;
|
||||
|
||||
gpio = device_get_binding(CC2520_GPIO_DEV_NAME);
|
||||
if (!gpio) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i = 0; i < CC2520_GPIO_IDX_MAX; i++) {
|
||||
int flags;
|
||||
|
||||
if (i >= 0 && i < CC2520_GPIO_IDX_FIFO) {
|
||||
flags = GPIO_DIR_OUT;
|
||||
} else if (i < CC2520_GPIO_IDX_SFD) {
|
||||
flags = GPIO_DIR_IN;
|
||||
} else {
|
||||
flags = (GPIO_DIR_IN | GPIO_INT | GPIO_INT_EDGE |
|
||||
GPIO_INT_ACTIVE_HIGH | GPIO_INT_DEBOUNCE);
|
||||
}
|
||||
|
||||
gpio_pin_configure(gpio, cc2520_gpios[i].pin, flags);
|
||||
cc2520_gpios[i].dev = gpio;
|
||||
}
|
||||
|
||||
return cc2520_gpios;
|
||||
}
|
|
@ -28,9 +28,6 @@ described in :ref:`networking_with_qemu`.
|
|||
There are configuration files for different boards and setups in the
|
||||
echo-client directory:
|
||||
|
||||
- :file:`prj_arduino_101_cc2520.conf`
|
||||
Use this for Arduino 101 with external IEEE 802.15.4 cc2520 board.
|
||||
|
||||
- :file:`prj_arduino_101.conf`
|
||||
Use this for Arduino 101 with external enc28j60 ethernet board.
|
||||
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
CONFIG_NETWORKING=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
|
||||
CONFIG_NET_PKT_RX_COUNT=20
|
||||
CONFIG_NET_PKT_TX_COUNT=5
|
||||
CONFIG_NET_BUF_RX_COUNT=20
|
||||
CONFIG_NET_BUF_TX_COUNT=20
|
||||
|
||||
CONFIG_NET_IPV4=n
|
||||
CONFIG_NET_IPV6=y
|
||||
CONFIG_NET_IPV6_RA_RDNSS=y
|
||||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=2
|
||||
|
||||
CONFIG_NET_6LO=y
|
||||
CONFIG_NET_DEBUG_6LO=n
|
||||
|
||||
CONFIG_NET_LOG=y
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_INIT_STACKS=y
|
||||
CONFIG_PRINTK=y
|
||||
|
||||
CONFIG_NET_DEBUG_CORE=y
|
||||
CONFIG_NET_DEBUG_IPV6_NBR_CACHE=y
|
||||
CONFIG_NET_DEBUG_IPV6=y
|
||||
CONFIG_NET_DEBUG_CONTEXT=y
|
||||
CONFIG_NET_DEBUG_NET_PKT=n
|
||||
CONFIG_NET_DEBUG_UTILS=n
|
||||
CONFIG_NET_DEBUG_IF=n
|
||||
CONFIG_NET_DEBUG_ICMPV6=y
|
||||
CONFIG_NET_DEBUG_CONN=n
|
||||
CONFIG_NET_STATISTICS=y
|
||||
CONFIG_NET_STATISTICS_PERIODIC_OUTPUT=y
|
||||
|
||||
CONFIG_NET_L2_IEEE802154=y
|
||||
CONFIG_NET_DEBUG_L2_IEEE802154=y
|
||||
CONFIG_NET_L2_IEEE802154_FRAGMENT=y
|
||||
CONFIG_NET_DEBUG_L2_IEEE802154_FRAGMENT=y
|
||||
|
||||
CONFIG_IEEE802154_CC2520=y
|
||||
CONFIG_IEEE802154_CC2520_AUTO_ACK=y
|
||||
CONFIG_SYS_LOG_IEEE802154_DRIVER_LEVEL=1
|
||||
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_0=n
|
||||
CONFIG_SPI_1=y
|
||||
CONFIG_SPI_CS_GPIO=y
|
||||
CONFIG_SPI_1_CS_GPIO_PORT="GPIO_0"
|
||||
CONFIG_SPI_1_CS_GPIO_PIN=0
|
||||
CONFIG_IEEE802154_CC2520_SPI_DRV_NAME="SPI_1"
|
||||
CONFIG_IEEE802154_CC2520_SPI_FREQ=4
|
||||
CONFIG_IEEE802154_CC2520_SPI_SLAVE=1
|
||||
|
||||
CONFIG_NET_APP=y
|
||||
CONFIG_NET_APP_NEED_IPV6=y
|
||||
CONFIG_NET_APP_CLIENT=y
|
||||
CONFIG_NET_APP_SETTINGS=y
|
||||
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
|
||||
CONFIG_NET_APP_PEER_IPV6_ADDR="2001:db8::2"
|
|
@ -29,9 +29,6 @@ described in :ref:`networking_with_qemu`.
|
|||
There are configuration files for different boards and setups in the
|
||||
echo-server directory:
|
||||
|
||||
- :file:`prj_arduino_101_cc2520.conf`
|
||||
Use this for Arduino 101 with external IEEE 802.15.4 cc2520 board.
|
||||
|
||||
- :file:`prj_arduino_101.conf`
|
||||
Use this for Arduino 101 with external enc28j60 ethernet board.
|
||||
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
CONFIG_NETWORKING=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
|
||||
CONFIG_NET_PKT_RX_COUNT=10
|
||||
CONFIG_NET_PKT_TX_COUNT=5
|
||||
CONFIG_NET_BUF_RX_COUNT=20
|
||||
CONFIG_NET_BUF_TX_COUNT=20
|
||||
|
||||
CONFIG_NET_IPV4=n
|
||||
CONFIG_NET_IPV6=y
|
||||
CONFIG_NET_IPV6_RA_RDNSS=y
|
||||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=2
|
||||
|
||||
CONFIG_NET_6LO=y
|
||||
CONFIG_NET_DEBUG_6LO=n
|
||||
|
||||
CONFIG_NET_LOG=y
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_INIT_STACKS=y
|
||||
CONFIG_PRINTK=y
|
||||
|
||||
CONFIG_NET_DEBUG_CORE=y
|
||||
CONFIG_NET_DEBUG_IPV6_NBR_CACHE=y
|
||||
CONFIG_NET_DEBUG_IPV6=y
|
||||
CONFIG_NET_DEBUG_CONTEXT=y
|
||||
CONFIG_NET_DEBUG_NET_PKT=n
|
||||
CONFIG_NET_DEBUG_UTILS=n
|
||||
CONFIG_NET_DEBUG_IF=n
|
||||
CONFIG_NET_DEBUG_ICMPV6=y
|
||||
CONFIG_NET_DEBUG_CONN=n
|
||||
CONFIG_NET_STATISTICS=y
|
||||
CONFIG_NET_STATISTICS_PERIODIC_OUTPUT=y
|
||||
|
||||
CONFIG_NET_L2_IEEE802154=y
|
||||
CONFIG_NET_DEBUG_L2_IEEE802154=y
|
||||
CONFIG_NET_L2_IEEE802154_FRAGMENT=y
|
||||
CONFIG_NET_DEBUG_L2_IEEE802154_FRAGMENT=y
|
||||
|
||||
CONFIG_IEEE802154_CC2520=y
|
||||
CONFIG_IEEE802154_CC2520_AUTO_ACK=y
|
||||
CONFIG_SYS_LOG_IEEE802154_DRIVER_LEVEL=1
|
||||
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_0=n
|
||||
CONFIG_SPI_1=y
|
||||
CONFIG_SPI_CS_GPIO=y
|
||||
CONFIG_SPI_1_CS_GPIO_PORT="GPIO_0"
|
||||
CONFIG_SPI_1_CS_GPIO_PIN=0
|
||||
CONFIG_IEEE802154_CC2520_SPI_DRV_NAME="SPI_1"
|
||||
CONFIG_IEEE802154_CC2520_SPI_FREQ=4
|
||||
CONFIG_IEEE802154_CC2520_SPI_SLAVE=1
|
Loading…
Reference in a new issue