diff options
| author | Man, Jianting (Meco) <[email protected]> | 2022-06-04 01:20:30 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-04 13:20:30 +0800 |
| commit | 02b176f8cbbd980ff0d51b971a978c3b6d71d39f (patch) | |
| tree | 48e86eb8c86457cf0cc6c929da6991b8b8c1b8cb /components/drivers | |
| parent | 1fb3f1fcecc4c799f38af967239c81b74d00d090 (diff) | |
[arduino] add comment (#6016)
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/include/drivers/adc.h | 2 | ||||
| -rw-r--r-- | components/drivers/include/drivers/rt_drv_pwm.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/include/drivers/adc.h b/components/drivers/include/drivers/adc.h index 81565d068b..601e16292e 100644 --- a/components/drivers/include/drivers/adc.h +++ b/components/drivers/include/drivers/adc.h @@ -20,7 +20,7 @@ struct rt_adc_ops rt_err_t (*enabled)(struct rt_adc_device *device, rt_uint32_t channel, rt_bool_t enabled); rt_err_t (*convert)(struct rt_adc_device *device, rt_uint32_t channel, rt_uint32_t *value); rt_uint8_t (*get_resolution)(struct rt_adc_device *device); - rt_int16_t (*get_vref) (const struct rt_adc_device *device); + rt_int16_t (*get_vref) (struct rt_adc_device *device); }; struct rt_adc_device diff --git a/components/drivers/include/drivers/rt_drv_pwm.h b/components/drivers/include/drivers/rt_drv_pwm.h index 2b782f7e53..567b368daa 100644 --- a/components/drivers/include/drivers/rt_drv_pwm.h +++ b/components/drivers/include/drivers/rt_drv_pwm.h @@ -23,7 +23,7 @@ struct rt_pwm_configuration { - rt_uint32_t channel; /* 0-n */ + rt_uint32_t channel; /* 1-n or 0-n, which depends on specific MCU requirements */ rt_uint32_t period; /* unit:ns 1ns~4.29s:1Ghz~0.23hz */ rt_uint32_t pulse; /* unit:ns (pulse<=period) */ |
