zephyr/modules/openthread/platform/spi.c
Robert Lubos 815ebc316e net: openthread: Move glue code into module directory
Move OpenThread's glue code along with the Kconfig files that configure
OpenThread stack itself into module directory.

Update the maintainers file to reflect this change.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-07-11 11:00:12 +02:00

49 lines
975 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <openthread/platform/spi-slave.h>
#include "platform-zephyr.h"
/* Spi-slave stubs */
otError otPlatSpiSlaveEnable(
otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback,
otPlatSpiSlaveTransactionProcessCallback aProcessCallback,
void *aContext)
{
ARG_UNUSED(aCompleteCallback);
ARG_UNUSED(aProcessCallback);
ARG_UNUSED(aContext);
return OT_ERROR_NOT_IMPLEMENTED;
}
void otPlatSpiSlaveDisable(void)
{
/* Intentionally empty */
}
otError otPlatSpiSlavePrepareTransaction(
uint8_t *anOutputBuf,
uint16_t anOutputBufLen,
uint8_t *anInputBuf,
uint16_t anInputBufLen,
bool aRequestTransactionFlag
)
{
ARG_UNUSED(anOutputBuf);
ARG_UNUSED(anOutputBufLen);
ARG_UNUSED(anInputBuf);
ARG_UNUSED(anInputBufLen);
ARG_UNUSED(aRequestTransactionFlag);
return OT_ERROR_NOT_IMPLEMENTED;
}