1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022-11-26     GuEe-GUI     first version
9  */
10 
11 #ifndef __DEV_SPI_DM_H__
12 #define __DEV_SPI_DM_H__
13 
14 #include <rthw.h>
15 #include <rtthread.h>
16 #include <rtdevice.h>
17 
18 #ifdef RT_USING_OFW
19 rt_err_t spi_device_ofw_parse(struct rt_spi_device *spi_dev);
20 #else
spi_device_ofw_parse(struct rt_spi_device * spi_dev)21 rt_inline rt_err_t spi_device_ofw_parse(struct rt_spi_device *spi_dev)
22 {
23     return RT_EOK;
24 }
25 #endif /* RT_USING_OFW */
26 
27 void spi_bus_scan_devices(struct rt_spi_bus *bus);
28 
29 #endif /* __DEV_SPI_DM_H__ */
30