[errno code]fix that use RT_ENOSYS without - (#7084)

* [errno code]fix that use RT_ENOSYS without -

* Update bsp/airm2m/air32f103/libraries/rt_drivers/drv_hwtimer.c

---------

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
This commit is contained in:
Zxy
2023-03-23 13:54:42 +08:00
committed by GitHub
parent e15adf5e45
commit 4ed9bc11f7
35 changed files with 123 additions and 123 deletions

View File

@@ -104,7 +104,7 @@ static rt_err_t loongson_pwm_ioctl(struct rt_device_pwm *device, int cmd, void *
rc = loongson_pwm_set(device, cfg->channel, cfg->period, cfg->pulse);
break;
case PWM_CMD_GET:
rc = RT_ENOSYS;
rc = -RT_ENOSYS;
break;
default:
rc = -RT_EINVAL;

View File

@@ -115,7 +115,7 @@ static rt_ssize_t rt_rtc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_si
static rt_err_t rt_rtc_ioctl(rt_device_t dev, int cmd, void *args)
{
rt_err_t err = RT_ENOSYS;
rt_err_t err = -RT_ENOSYS;
static int count = 0;