@@ -89,16 +89,6 @@ struct adc_ra_data {
89
89
struct k_sem calibrate_sem ;
90
90
};
91
91
92
- /**
93
- * @brief Setup channels before starting to scan ADC
94
- *
95
- * @param dev RA ADC device
96
- * @param channel_cfg channel configuration
97
- *
98
- * @return 0 on success
99
- * @return -ENOTSUP if channel id or differential is wrong value
100
- * @return -EINVAL if channel configuration is invalid
101
- */
102
92
static int adc_ra_channel_setup (const struct device * dev , const struct adc_channel_cfg * channel_cfg )
103
93
{
104
94
fsp_err_t fsp_err = FSP_SUCCESS ;
@@ -176,9 +166,6 @@ static void renesas_ra_adc_callback(adc_callback_args_t *p_args)
176
166
}
177
167
}
178
168
179
- /**
180
- * Voltage reference covert handler
181
- */
182
169
static int adc_map_vref (const struct adc_ra_config * cfg , adc_extended_cfg_t * extend )
183
170
{
184
171
switch (cfg -> variant ) {
@@ -217,15 +204,6 @@ static int adc_map_vref(const struct adc_ra_config *cfg, adc_extended_cfg_t *ext
217
204
}
218
205
}
219
206
220
- /**
221
- * @brief Check if buffer in @p sequence is big enough to hold all ADC samples
222
- *
223
- * @param dev RA ADC device
224
- * @param sequence ADC sequence description
225
- *
226
- * @return 0 on success
227
- * @return -ENOMEM if buffer is not big enough
228
- */
229
207
static int adc_ra_check_buffer_size (const struct device * dev , const struct adc_sequence * sequence )
230
208
{
231
209
uint8_t channels = 0 ;
@@ -245,19 +223,6 @@ static int adc_ra_check_buffer_size(const struct device *dev, const struct adc_s
245
223
return 0 ;
246
224
}
247
225
248
- /**
249
- * @brief Start processing read request
250
- *
251
- * @param dev RA ADC device
252
- * @param sequence ADC sequence description
253
- *
254
- * @return 0 on success
255
- * @return -ENOTSUP if requested resolution or channel is out side of supported
256
- * range
257
- * @return -ENOMEM if buffer is not big enough
258
- * (see @ref adc_ra_check_buffer_size)
259
- * @return other error code returned by adc_context_wait_for_completion
260
- */
261
226
static int adc_ra_start_read (const struct device * dev , const struct adc_sequence * sequence )
262
227
{
263
228
const struct adc_ra_config * config = dev -> config ;
@@ -313,20 +278,6 @@ static int adc_ra_start_read(const struct device *dev, const struct adc_sequence
313
278
return 0 ;
314
279
}
315
280
316
- /**
317
- * @brief Start processing read request asynchronously
318
- *
319
- * @param dev RA ADC device
320
- * @param sequence ADC sequence description
321
- * @param async async pointer to asynchronous signal
322
- *
323
- * @return 0 on success
324
- * @return -ENOTSUP if requested resolution or channel is out side of supported
325
- * range
326
- * @return -ENOMEM if buffer is not big enough
327
- * (see @ref adc_ra_check_buffer_size)
328
- * @return other error code returned by adc_context_wait_for_completion
329
- */
330
281
static int adc_ra_read_async (const struct device * dev , const struct adc_sequence * sequence ,
331
282
struct k_poll_signal * async )
332
283
{
@@ -340,19 +291,6 @@ static int adc_ra_read_async(const struct device *dev, const struct adc_sequence
340
291
return err ;
341
292
}
342
293
343
- /**
344
- * @brief Start processing read request synchronously
345
- *
346
- * @param dev RA ADC device
347
- * @param sequence ADC sequence description
348
- *
349
- * @return 0 on success
350
- * @return -ENOTSUP if requested resolution or channel is out side of supported
351
- * range
352
- * @return -ENOMEM if buffer is not big enough
353
- * (see @ref adc_ra_check_buffer_size)
354
- * @return other error code returned by adc_context_wait_for_completion
355
- */
356
294
static int adc_ra_read (const struct device * dev , const struct adc_sequence * sequence )
357
295
{
358
296
return adc_ra_read_async (dev , sequence , NULL );
@@ -376,16 +314,6 @@ static void adc_context_update_buffer_pointer(struct adc_context *ctx, bool repe
376
314
}
377
315
}
378
316
379
- /**
380
- * @brief Function called on init for each RA ADC device. It setups all
381
- * channels to return constant 0 mV and create acquisition thread.
382
- *
383
- * @param dev RA ADC device
384
- *
385
- * @return -EIO if error
386
- *
387
- * @return 0 on success
388
- */
389
317
static int adc_ra_init (const struct device * dev )
390
318
{
391
319
const struct adc_ra_config * config = dev -> config ;
0 commit comments