diff --git a/components/drivers/misc/rt_drv_pwm.c b/components/drivers/misc/rt_drv_pwm.c index 68f0cab18e..4bb34111f7 100644 --- a/components/drivers/misc/rt_drv_pwm.c +++ b/components/drivers/misc/rt_drv_pwm.c @@ -301,7 +301,7 @@ rt_err_t rt_pwm_get(struct rt_device_pwm *device, struct rt_pwm_configuration *c #include #include -static enum pwm_list_parameters +enum pwm_list_parameters { PWM_LIST_PROBE = 1, PWM_LIST_ENABLE, @@ -310,7 +310,7 @@ static enum pwm_list_parameters PWM_LIST_SET, PWM_LIST_PHASE, PWM_LIST_DEAD_TIME, -} pwm_list_parameters; +}; CMD_OPTIONS_STATEMENT(pwm_list) int pwm_list(int argc, char **argv)