4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 11:33:32 +08:00

Update sensor.h

This commit is contained in:
David Lin 2021-07-07 09:05:37 +08:00 committed by GitHub
parent e0b00b21f5
commit 04510cfc12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,26 +6,7 @@
* Change Logs:
* Date Author Notes
* 2019-01-31 flybreak first version
* 2021-06-23 linpeng added function declaration
*/
#ifndef __SENSOR_H__
#define __SENSOR_H__
#include <rtthread.h>
#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__*/
#include <rtdevice.h>