• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #include "hdf_spi_entry_test.h"
10 #include "spi_test.h"
11 
12 #define HDF_LOG_TAG hdf_spi_entry_test
13 
HdfSpiUnitTestEntry(HdfTestMsg * msg)14 int32_t HdfSpiUnitTestEntry(HdfTestMsg *msg)
15 {
16     if (msg == NULL) {
17         return HDF_FAILURE;
18     }
19 
20     msg->result = SpiTestExecute(msg->subCmd);
21     return msg->result;
22 }
23