samples: mctp: Add sample.yaml's to samples
Adds the missing sample.yaml's for building these in CI and with
twister.
Fixes a build issue that came up along the way.
Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
diff --git a/samples/subsys/pmci/mctp/endpoint/sample.yaml b/samples/subsys/pmci/mctp/endpoint/sample.yaml
new file mode 100644
index 0000000..76c4d7a
--- /dev/null
+++ b/samples/subsys/pmci/mctp/endpoint/sample.yaml
@@ -0,0 +1,16 @@
+sample:
+ name: MCTP Uart Endpoint
+common:
+ tags:
+ - pmci
+ - mctp
+tests:
+ sample.pmci.mctp.uart_endpoint:
+ platform_allow:
+ - nrf52840dk/nrf52840
+ harness: console
+ harness_config:
+ type: multi_line
+ regex:
+ - "(.*)MCTP Endpoint EID: (.*) on (.*)"
+ - "got mctp message (.*) for eid (.*)"
diff --git a/samples/subsys/pmci/mctp/host/sample.yaml b/samples/subsys/pmci/mctp/host/sample.yaml
new file mode 100644
index 0000000..586def2
--- /dev/null
+++ b/samples/subsys/pmci/mctp/host/sample.yaml
@@ -0,0 +1,16 @@
+sample:
+ name: MCTP Uart Host Endpoint
+common:
+ tags:
+ - pmci
+ - mctp
+tests:
+ sample.pmci.mctp.uart_host:
+ platform_allow:
+ - nrf52840dk/nrf52840
+ harness: console
+ harness_config:
+ type: multi_line
+ regex:
+ - "(.*)MCTP Host EID: (.*) on (.*)"
+ - "received message (.*) for endpoint (.*)"
diff --git a/samples/subsys/pmci/mctp/i2c_gpio_bus_endpoint/sample.yaml b/samples/subsys/pmci/mctp/i2c_gpio_bus_endpoint/sample.yaml
new file mode 100644
index 0000000..2b2e4ef
--- /dev/null
+++ b/samples/subsys/pmci/mctp/i2c_gpio_bus_endpoint/sample.yaml
@@ -0,0 +1,16 @@
+sample:
+ name: MCTP I2C+GPIO Bus Endpoint
+common:
+ tags:
+ - pmci
+ - mctp
+tests:
+ sample.pmci.mctp.i2c_gpio_bus_endpoint:
+ platform_allow:
+ - frdm_mcxn947/mcxn947/cpu0
+ harness: console
+ harness_config:
+ type: multi_line
+ regex:
+ - "(.*)MCTP Host EID: (.*) on (.*)"
+ - "(.*)received message (.*) from endpoint (.*)"
diff --git a/samples/subsys/pmci/mctp/i2c_gpio_bus_owner/sample.yaml b/samples/subsys/pmci/mctp/i2c_gpio_bus_owner/sample.yaml
new file mode 100644
index 0000000..dcfdf24
--- /dev/null
+++ b/samples/subsys/pmci/mctp/i2c_gpio_bus_owner/sample.yaml
@@ -0,0 +1,16 @@
+sample:
+ name: MCTP I2C+GPIO Bus Owner
+common:
+ tags:
+ - pmci
+ - mctp
+tests:
+ sample.pmci.mctp.i2c_gpio_bus_owner:
+ platform_allow:
+ - frdm_mcxn947/mcxn947/cpu0
+ harness: console
+ harness_config:
+ type: multi_line
+ regex:
+ - "(.*)MCTP Host EID: (.*) on (.*)"
+ - "(.*)received message (.*) from endpoint (.*)"
diff --git a/subsys/pmci/mctp/mctp_i2c_gpio_controller.c b/subsys/pmci/mctp/mctp_i2c_gpio_controller.c
index 1fedd25..fe2653e 100644
--- a/subsys/pmci/mctp/mctp_i2c_gpio_controller.c
+++ b/subsys/pmci/mctp/mctp_i2c_gpio_controller.c
@@ -21,8 +21,10 @@
static void mctp_start_rx(struct mctp_binding_i2c_gpio_controller *b,
bool chained_rx);
-static void rx_completion(struct rtio *r, const struct rtio_sqe *sqe, void *arg0)
+static void rx_completion(struct rtio *r, const struct rtio_sqe *sqe, int result, void *arg0)
{
+ ARG_UNUSED(result);
+
struct mctp_binding_i2c_gpio_controller *b = arg0;
struct rtio_cqe *cqe;
@@ -48,8 +50,10 @@
}
-static void rx_len_completion(struct rtio *r, const struct rtio_sqe *sqe, void *arg0)
+static void rx_len_completion(struct rtio *r, const struct rtio_sqe *sqe, int result, void *arg0)
{
+ ARG_UNUSED(result);
+
const uint8_t mctp_tx_msg_addr = MCTP_I2C_GPIO_TX_MSG_ADDR;
struct mctp_binding_i2c_gpio_controller *b = arg0;