mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
[rtdevices] eliminate recursion
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
* 2019-08-08 balanceTWK the first version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
static rt_err_t rt_pulse_encoder_init(struct rt_device *dev)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* 2022-05-14 Stanley Lwin add pwm function
|
||||
*/
|
||||
|
||||
#include <drivers/rt_drv_pwm.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
static rt_err_t _pwm_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
|
||||
@@ -8,9 +8,7 @@
|
||||
* 2019-08-13 balanceTWK the first version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <rtdbg.h>
|
||||
|
||||
static rt_err_t rt_inputcapture_init(struct rt_device *dev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user