diff options
author | Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com> | 2017-02-03 16:01:34 -0600 |
---|---|---|
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2017-02-08 10:12:36 +0200 |
commit | 5225daad947414630048879964e744fadcecd467 (patch) | |
tree | 685d54890c2f58c056e8872176790ffbbb5acb6e /samples | |
parent | 76551f469ee98507b261d003ff137d242b019b2f (diff) |
mbedtls: add arduino 101 configuration to ssl client sample
Jira: ZEP-748
Change-Id: Ied8c521f80b8f1d4b22497a059ee5c948449613f
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/net/mbedtls_sslclient/Makefile | 4 | ||||
-rw-r--r-- | samples/net/mbedtls_sslclient/prj_arduino_101.conf | 34 |
2 files changed, 36 insertions, 2 deletions
diff --git a/samples/net/mbedtls_sslclient/Makefile b/samples/net/mbedtls_sslclient/Makefile index 6f417152f..80dcd69d7 100644 --- a/samples/net/mbedtls_sslclient/Makefile +++ b/samples/net/mbedtls_sslclient/Makefile @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # -BOARD = galileo -CONF_FILE = prj_galileo.conf +BOARD ?= galileo +CONF_FILE ?= prj_$(BOARD).conf include $(ZEPHYR_BASE)/Makefile.inc diff --git a/samples/net/mbedtls_sslclient/prj_arduino_101.conf b/samples/net/mbedtls_sslclient/prj_arduino_101.conf new file mode 100644 index 000000000..8ed0f9db9 --- /dev/null +++ b/samples/net/mbedtls_sslclient/prj_arduino_101.conf @@ -0,0 +1,34 @@ +CONFIG_SYS_LOG=y +CONFIG_NET_LOG=y +CONFIG_INIT_STACKS=y +CONFIG_MAIN_STACK_SIZE=4096 +CONFIG_TEST_RANDOM_GENERATOR=y + +CONFIG_NETWORKING=y +CONFIG_NET_ARP=y +CONFIG_NET_L2_ETHERNET=y +CONFIG_NET_IPV4=y +CONFIG_NET_IPV6=n +CONFIG_NET_TCP=y +CONFIG_NET_BUF=y +CONFIG_NET_IFACE_UNICAST_IPV4_ADDR_COUNT=3 +CONFIG_NET_NBUF_RX_COUNT=4 +CONFIG_NET_NBUF_TX_COUNT=4 +CONFIG_NET_NBUF_DATA_COUNT=12 + +CONFIG_ETH_ENC28J60=y +CONFIG_ETH_ENC28J60_0=y +CONFIG_ETH_ENC28J60_0_SPI_PORT_NAME="SPI_1" +CONFIG_ETH_ENC28J60_0_SPI_BUS_FREQ=2 +CONFIG_ETH_ENC28J60_0_MAC3=0x2D +CONFIG_ETH_ENC28J60_0_MAC4=0x30 +CONFIG_ETH_ENC28J60_0_MAC5=0x32 + +CONFIG_SPI=y +CONFIG_SPI_CS_GPIO=y +CONFIG_SPI_1_CS_GPIO_PORT="GPIO_0" +CONFIG_SPI_1_CS_GPIO_PIN=0 + +CONFIG_MBEDTLS=y +CONFIG_MBEDTLS_BUILTIN=y +CONFIG_MBEDTLS_CFG_FILE="config-ccm-psk-tls1_2.h" |