mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-08 14:43:04 +08:00
[DM/FEATURE] Support IIO (Industrial I/O) (#9598)
[DM/FEATURE] Support IIO (Industrial I/O) Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
4 files changed
+105
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2022, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2022-3-08 GuEe-GUI the first version
|
||||
*/
|
||||
|
||||
#ifndef __IIO_H__
|
||||
#define __IIO_H__
|
||||
|
||||
void *rt_iio_channel_get_by_index(struct rt_device *dev, int index, int *out_channel);
|
||||
void *rt_iio_channel_get_by_name(struct rt_device *dev, const char *name, int *out_channel);
|
||||
|
||||
#endif /* __IIO_H__ */
|
||||
@@ -49,6 +49,8 @@ extern "C" {
|
||||
#include "drivers/blk.h"
|
||||
#endif
|
||||
|
||||
#include "drivers/iio.h"
|
||||
|
||||
#ifdef RT_USING_OFW
|
||||
#include "drivers/ofw.h"
|
||||
#include "drivers/ofw_fdt.h"
|
||||
|
||||
Reference in new issue
Block a user