[arduino] add comment (#6016)

This commit is contained in:
Man, Jianting (Meco)
2022-06-04 13:20:30 +08:00
committed by GitHub
parent 1fb3f1fcec
commit 02b176f8cb
6 changed files with 30 additions and 13 deletions
+1 -1
View File
@@ -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
@@ -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) */