diff --git a/components/drivers/misc/rt_drv_pwm.c b/components/drivers/misc/rt_drv_pwm.c index 9016b5ce5f..20bac08b82 100644 --- a/components/drivers/misc/rt_drv_pwm.c +++ b/components/drivers/misc/rt_drv_pwm.c @@ -8,9 +8,6 @@ * 2018-05-07 aozima the first version */ -#include -#include - #include static rt_err_t _pwm_control(rt_device_t dev, int cmd, void *args) @@ -194,12 +191,9 @@ rt_err_t rt_pwm_get(struct rt_device_pwm *device, struct rt_pwm_configuration *c } #ifdef RT_USING_FINSH +#include #include -FINSH_FUNCTION_EXPORT_ALIAS(rt_pwm_enable, pwm_enable, enable pwm by channel.); -FINSH_FUNCTION_EXPORT_ALIAS(rt_pwm_set, pwm_set, set pwm.); - -#ifdef RT_USING_FINSH static int pwm_enable(int argc, char **argv) { int result = 0; @@ -325,4 +319,3 @@ _exit: MSH_CMD_EXPORT(pwm_get, pwm_get ); #endif /* RT_USING_FINSH */ -#endif /* RT_USING_FINSH */