samples: net: sockets: echo_server: Add sam4e_xpro config
Add necessary configuration to run demo on the sam4s_xpro board. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
97f210bce0
commit
2d960aeeb7
2 changed files with 46 additions and 0 deletions
24
samples/net/sockets/echo_server/boards/sam4e_xpro.conf
Normal file
24
samples/net/sockets/echo_server/boards/sam4e_xpro.conf
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020, Gerson Fernando Budke
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
CONFIG_IEEE802154_RF2XX=y
|
||||||
|
|
||||||
|
CONFIG_NET_6LO=y
|
||||||
|
CONFIG_NET_L2_IEEE802154_FRAGMENT=y
|
||||||
|
CONFIG_NET_L2_IEEE802154_FRAGMENT_REASS_CACHE_SIZE=2
|
||||||
|
CONFIG_NET_L2_IEEE802154_SECURITY=n
|
||||||
|
|
||||||
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
||||||
|
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
|
||||||
|
CONFIG_NET_CONFIG_IEEE802154_DEV_NAME="RF2XX_0"
|
||||||
|
|
||||||
|
CONFIG_DEVICE_SHELL=y
|
||||||
|
CONFIG_CPLUSPLUS=n
|
||||||
|
|
||||||
|
CONFIG_GPIO_SAM=y
|
||||||
|
CONFIG_GPIO=y
|
||||||
|
CONFIG_SPI_SAM_PORT_0=y
|
||||||
|
CONFIG_SPI_SAM_PORT_0_PIN_CS1_PB14=y
|
22
samples/net/sockets/echo_server/boards/sam4e_xpro.overlay
Normal file
22
samples/net/sockets/echo_server/boards/sam4e_xpro.overlay
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Gerson Fernando Budke
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&spi0 {
|
||||||
|
status = "okay";
|
||||||
|
label = "SPI_RF2XX";
|
||||||
|
cs-gpios = <&portb 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||||
|
|
||||||
|
rf2xx@0 {
|
||||||
|
compatible = "atmel,rf2xx";
|
||||||
|
reg = <0x0>;
|
||||||
|
label = "RF2XX_0";
|
||||||
|
spi-max-frequency = <6000000>;
|
||||||
|
irq-gpios = <&porta 21 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
|
||||||
|
reset-gpios = <&porta 3 GPIO_ACTIVE_LOW>;
|
||||||
|
slptr-gpios = <&porta 22 GPIO_ACTIVE_HIGH>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue