1 /*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <zephyr/kernel.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <openthread/platform/spi-slave.h>
11
12 #include "platform-zephyr.h"
13
14 /* Spi-slave stubs */
15
otPlatSpiSlaveEnable(otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback,otPlatSpiSlaveTransactionProcessCallback aProcessCallback,void * aContext)16 otError otPlatSpiSlaveEnable(
17 otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback,
18 otPlatSpiSlaveTransactionProcessCallback aProcessCallback,
19 void *aContext)
20 {
21 ARG_UNUSED(aCompleteCallback);
22 ARG_UNUSED(aProcessCallback);
23 ARG_UNUSED(aContext);
24
25 return OT_ERROR_NOT_IMPLEMENTED;
26 }
27
otPlatSpiSlaveDisable(void)28 void otPlatSpiSlaveDisable(void)
29 {
30 /* Intentionally empty */
31 }
32
otPlatSpiSlavePrepareTransaction(uint8_t * anOutputBuf,uint16_t anOutputBufLen,uint8_t * anInputBuf,uint16_t anInputBufLen,bool aRequestTransactionFlag)33 otError otPlatSpiSlavePrepareTransaction(
34 uint8_t *anOutputBuf,
35 uint16_t anOutputBufLen,
36 uint8_t *anInputBuf,
37 uint16_t anInputBufLen,
38 bool aRequestTransactionFlag
39 )
40 {
41 ARG_UNUSED(anOutputBuf);
42 ARG_UNUSED(anOutputBufLen);
43 ARG_UNUSED(anInputBuf);
44 ARG_UNUSED(anInputBufLen);
45 ARG_UNUSED(aRequestTransactionFlag);
46
47 return OT_ERROR_NOT_IMPLEMENTED;
48 }
49