git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5368 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e1868bc0b1
commit
ff29b4539f
|
@ -652,6 +652,9 @@ void adc_lld_stop(ADCDriver *adcp) {
|
|||
|
||||
/**
|
||||
* @brief Starts an ADC conversion.
|
||||
* @note Because an HW constraint the number of rows in the samples
|
||||
* array must not be greater than the preconfigured value in
|
||||
* the conversion group.
|
||||
*
|
||||
* @param[in] adcp pointer to the @p ADCDriver object
|
||||
*
|
||||
|
@ -661,6 +664,9 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
|
|||
edma_tcd_t *ctcdp = edmaGetTCD(adcp->cfifo_channel);
|
||||
edma_tcd_t *rtcdp = edmaGetTCD(adcp->rfifo_channel);
|
||||
|
||||
chDbgAssert(adcp->grpp->num_iterations >= adcp->depth,
|
||||
"adc_lld_start_conversion(), #1", "too many elements");
|
||||
|
||||
/* TODO: ISEL0, ISEL3 setup for HW triggers.*/
|
||||
|
||||
/* Updating the variable TCD fields for CFIFO.*/
|
||||
|
|
Loading…
Reference in New Issue