4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-24 03:38:53 +08:00

32 lines
597 B
C
Raw Normal View History

2014-11-01 09:09:52 +08:00
/*
2021-03-08 18:19:04 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
2014-11-01 09:09:52 +08:00
*
2018-10-14 19:37:18 +08:00
* SPDX-License-Identifier: Apache-2.0
2014-11-01 09:09:52 +08:00
*
* Change Logs:
* Date Author Notes
2019-02-12 10:15:26 +08:00
* 2019-01-31 flybreak first version
* 2021-06-23 linpeng added function declaration
2014-11-01 09:09:52 +08:00
*/
2019-02-12 16:52:10 +08:00
#ifndef __SENSOR_H__
#define __SENSOR_H__
2014-11-01 09:09:52 +08:00
2019-02-12 10:15:26 +08:00
#include <rtthread.h>
2014-11-01 09:09:52 +08:00
#ifdef __cplusplus
extern "C"
{
#endif
int rt_hw_sensor_register(rt_sensor_t sensor,
const char *name,
rt_uint32_t flag,
void *data);
#ifdef __cplusplus
}
#endif
#endif /*__SENSOR_H__*/