@@ -98,16 +98,6 @@ static adc_sample_state_reg_t map_channel_to_sample_state_reg(uint8_t channel_id
98
98
return ADC_SAMPLE_STATE_CHANNEL_16_TO_31 ;
99
99
}
100
100
101
- /**
102
- * @brief Setup channels before starting to scan ADC
103
- *
104
- * @param dev RA ADC device
105
- * @param channel_cfg channel configuration
106
- *
107
- * @return 0 on success
108
- * @return -ENOTSUP if channel id or differential is wrong value
109
- * @return -EINVAL if channel configuration is invalid
110
- */
111
101
static int adc_ra_channel_setup (const struct device * dev , const struct adc_channel_cfg * channel_cfg )
112
102
{
113
103
fsp_err_t fsp_err = FSP_SUCCESS ;
@@ -199,9 +189,6 @@ static void renesas_ra_adc_callback(adc_callback_args_t *p_args)
199
189
}
200
190
}
201
191
202
- /**
203
- * Voltage reference covert handler
204
- */
205
192
static int adc_map_vref (const struct adc_ra_config * cfg , adc_extended_cfg_t * extend )
206
193
{
207
194
switch (cfg -> variant ) {
@@ -240,15 +227,6 @@ static int adc_map_vref(const struct adc_ra_config *cfg, adc_extended_cfg_t *ext
240
227
}
241
228
}
242
229
243
- /**
244
- * @brief Check if buffer in @p sequence is big enough to hold all ADC samples
245
- *
246
- * @param dev RA ADC device
247
- * @param sequence ADC sequence description
248
- *
249
- * @return 0 on success
250
- * @return -ENOMEM if buffer is not big enough
251
- */
252
230
static int adc_ra_check_buffer_size (const struct device * dev , const struct adc_sequence * sequence )
253
231
{
254
232
uint8_t channels = 0 ;
@@ -268,19 +246,6 @@ static int adc_ra_check_buffer_size(const struct device *dev, const struct adc_s
268
246
return 0 ;
269
247
}
270
248
271
- /**
272
- * @brief Start processing read request
273
- *
274
- * @param dev RA ADC device
275
- * @param sequence ADC sequence description
276
- *
277
- * @return 0 on success
278
- * @return -ENOTSUP if requested resolution or channel is out side of supported
279
- * range
280
- * @return -ENOMEM if buffer is not big enough
281
- * (see @ref adc_ra_check_buffer_size)
282
- * @return other error code returned by adc_context_wait_for_completion
283
- */
284
249
static int adc_ra_start_read (const struct device * dev , const struct adc_sequence * sequence )
285
250
{
286
251
const struct adc_ra_config * config = dev -> config ;
@@ -336,20 +301,6 @@ static int adc_ra_start_read(const struct device *dev, const struct adc_sequence
336
301
return 0 ;
337
302
}
338
303
339
- /**
340
- * @brief Start processing read request asynchronously
341
- *
342
- * @param dev RA ADC device
343
- * @param sequence ADC sequence description
344
- * @param async async pointer to asynchronous signal
345
- *
346
- * @return 0 on success
347
- * @return -ENOTSUP if requested resolution or channel is out side of supported
348
- * range
349
- * @return -ENOMEM if buffer is not big enough
350
- * (see @ref adc_ra_check_buffer_size)
351
- * @return other error code returned by adc_context_wait_for_completion
352
- */
353
304
static int adc_ra_read_async (const struct device * dev , const struct adc_sequence * sequence ,
354
305
struct k_poll_signal * async )
355
306
{
@@ -363,19 +314,6 @@ static int adc_ra_read_async(const struct device *dev, const struct adc_sequence
363
314
return err ;
364
315
}
365
316
366
- /**
367
- * @brief Start processing read request synchronously
368
- *
369
- * @param dev RA ADC device
370
- * @param sequence ADC sequence description
371
- *
372
- * @return 0 on success
373
- * @return -ENOTSUP if requested resolution or channel is out side of supported
374
- * range
375
- * @return -ENOMEM if buffer is not big enough
376
- * (see @ref adc_ra_check_buffer_size)
377
- * @return other error code returned by adc_context_wait_for_completion
378
- */
379
317
static int adc_ra_read (const struct device * dev , const struct adc_sequence * sequence )
380
318
{
381
319
return adc_ra_read_async (dev , sequence , NULL );
@@ -399,16 +337,6 @@ static void adc_context_update_buffer_pointer(struct adc_context *ctx, bool repe
399
337
}
400
338
}
401
339
402
- /**
403
- * @brief Function called on init for each RA ADC device. It setups all
404
- * channels to return constant 0 mV and create acquisition thread.
405
- *
406
- * @param dev RA ADC device
407
- *
408
- * @return -EIO if error
409
- *
410
- * @return 0 on success
411
- */
412
340
static int adc_ra_init (const struct device * dev )
413
341
{
414
342
const struct adc_ra_config * config = dev -> config ;
0 commit comments