d9d24b4d65
Provides a macro and submit API for SPI drivers to support RTIO. A copy function enables compatibility with the existing blocking API and very easily the existing async API as well. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
12 lines
201 B
C
12 lines
201 B
C
/*
|
|
* Copyright (c) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/drivers/spi.h>
|
|
|
|
const struct rtio_iodev_api spi_iodev_api = {
|
|
.submit = spi_iodev_submit,
|
|
};
|