3487f2790a
2. 优化rt_sensor_close函数,polling模式下不需要操作和rt_pin_irq_enable函数 3. 优化rt_device_register和sensor_polling的LOG信息 4. 修复sensor_polling函数打开设备时的标志错误的问题
15 lines
252 B
C
Executable File
15 lines
252 B
C
Executable File
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2019-01-31 flybreak first version
|
|
*/
|
|
|
|
|
|
#include <rtthread.h>
|
|
#include <rtdevice.h>
|
|
|