mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
[arduino] add comment (#6016)
This commit is contained in:
@@ -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) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user