diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-08-13 10:26:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-08-13 10:26:39 +0000 |
commit | d46360e613ac879b9564346d683592a26718ad9b (patch) | |
tree | 98fd648bbb32b24495672ebb8a7c421dcf7215d8 /testhal/STM32/STM32F7xx | |
parent | a59a43bc288b159a32cd994b5dadb883cfa234ae (diff) | |
download | ChibiOS-d46360e613ac879b9564346d683592a26718ad9b.tar.gz ChibiOS-d46360e613ac879b9564346d683592a26718ad9b.tar.bz2 ChibiOS-d46360e613ac879b9564346d683592a26718ad9b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8212 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F7xx')
-rw-r--r-- | testhal/STM32/STM32F7xx/GPT-ADC-SPI-PWM-ICU/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testhal/STM32/STM32F7xx/GPT-ADC-SPI-PWM-ICU/main.c b/testhal/STM32/STM32F7xx/GPT-ADC-SPI-PWM-ICU/main.c index 0ff6372bf..50b0948a7 100644 --- a/testhal/STM32/STM32F7xx/GPT-ADC-SPI-PWM-ICU/main.c +++ b/testhal/STM32/STM32F7xx/GPT-ADC-SPI-PWM-ICU/main.c @@ -49,7 +49,7 @@ static void adccallback(ADCDriver *adcp, adcsample_t *buffer, size_t n) { (void)adcp;
/* DMA buffer invalidation because data cache.*/
- dmaBufferInvalidate(buffer, n * ADC_GRP1_NUM_CHANNELS);
+ dmaBufferInvalidate(buffer, buffer + n * ADC_GRP1_NUM_CHANNELS);
/* Updating counters.*/
if (samples1 == buffer) {
|