zephyr/subsys/net/lib/openthread/platform/spi.c
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00

50 lines
1006 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <openthread/platform/uart.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;
}