Skip to content
Permalink
Browse files

samples: net: Convert mcr20a samples to use the frdm_cr20a shield

Converts all net samples that enable the mcr20a 802.15.4 driver to use
the frdm_cr20a shield instead of hardcoding configs for the frdm_k64f
base board. This makes it possible to build mcr20a samples for other
base boards with compatible arduino headers.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
  • Loading branch information...
MaureenHelm authored and nashif committed Jun 11, 2019
1 parent 3b1dc14 commit 4d5ee282be745add4a43571c6a7c1d6816f238cb
@@ -129,18 +129,8 @@ arduino_serial: &uart3 {};
};
};

&spi0 {
arduino_spi: &spi0 {
status = "okay";

mcr20a@0 {
compatible = "nxp,mcr20a";
reg = <0x0>;
label = "mcr20a";
spi-max-frequency = <4000000>;
irqb-gpios = <&gpiob 9 0>;
reset-gpios = <&gpioa 2 0>;
status = "okay";
};
};

&pwm3 {

This file was deleted.

@@ -18,6 +18,9 @@ tests:
extra_args: OVERLAY_CONFIG="overlay-bt.conf"
platform_whitelist: qemu_x86
tags: bluetooth
sample.net.sockets.echo_client.mcr20a:
extra_args: SHIELD=frdm_cr20a OVERLAY_CONFIG=overlay-802154.conf
platform_whitelist: frdm_k64f
sample.net.sockets.echo_client.nrf_802154:
extra_args: OVERLAY_CONFIG="overlay-802154.conf"
platform_whitelist: nrf52840_pca10056

This file was deleted.

@@ -19,7 +19,7 @@ tests:
platform_whitelist: qemu_x86
tags: bluetooth
sample.net.sockets.echo_server.mcr20a:
extra_args: OVERLAY_CONFIG="overlay-frdm_k64f_mcr20a.conf"
extra_args: SHIELD=frdm_cr20a OVERLAY_CONFIG=overlay-802154.conf
platform_whitelist: frdm_k64f
sample.net.sockets.echo_server.nrf_802154:
extra_args: OVERLAY_CONFIG="overlay-802154.conf"
@@ -31,9 +31,6 @@ There are configuration files for various setups in the
- :file:`overlay-cc2520.conf`
This overlay config enables support for CC2520

- :file:`overlay-mcr20a.conf`
This overlay config enables support for MCR20A

Build the WPANUSB sample like this:

.. zephyr-app-commands::

This file was deleted.

@@ -6,7 +6,7 @@ common:
tags: net ieee802154 usb
tests:
sample.net.wpanusb_frdm_cr20a:
extra_args: OVERLAY_CONFIG=overlay-mcr20a.conf
extra_args: SHIELD=frdm_cr20a
platform_whitelist: frdm_k64f
sample.net.wpanusb_quark_se_cc2520:
extra_args: OVERLAY_CONFIG=overlay-cc2520.conf

0 comments on commit 4d5ee28

Please sign in to comment.
You can’t perform that action at this time.