[devcie][pwm] fix warnings

This commit is contained in:
Meco Man 2024-03-30 18:54:10 -04:00 committed by Rbb666
parent 864055bf18
commit a4204c61bd
1 changed files with 4 additions and 2 deletions

View File

@ -282,7 +282,8 @@ rt_err_t rt_pwm_set_phase(struct rt_device_pwm *device, int channel, rt_uint32_t
return result;
}
rt_err_t rt_pwm_get(struct rt_device_pwm *device, struct rt_pwm_configuration *cfg)
static rt_err_t rt_pwm_get(struct rt_device_pwm *device, struct rt_pwm_configuration *cfg)
{
rt_err_t result = RT_EOK;
@ -313,7 +314,8 @@ enum pwm_list_parameters
};
CMD_OPTIONS_STATEMENT(pwm_list)
int pwm_list(int argc, char **argv)
static int pwm_list(int argc, char **argv)
{
rt_err_t result = -RT_ERROR;
char *result_str;