Skip to content

Commit 04510cf

Browse files
authored
Update sensor.h
1 parent e0b00b2 commit 04510cf

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

components/drivers/sensors/sensor.h

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2019-01-31 flybreak first version
9-
* 2021-06-23 linpeng added function declaration
109
*/
1110

12-
#ifndef __SENSOR_H__
13-
#define __SENSOR_H__
14-
1511
#include <rtthread.h>
16-
17-
#ifdef __cplusplus
18-
extern "C"
19-
{
20-
#endif
21-
22-
int rt_hw_sensor_register(rt_sensor_t sensor,
23-
const char *name,
24-
rt_uint32_t flag,
25-
void *data);
26-
27-
#ifdef __cplusplus
28-
}
29-
#endif
30-
31-
#endif /*__SENSOR_H__*/
12+
#include <rtdevice.h>

0 commit comments

Comments
 (0)