From 83c0ee7a12f83409638f168628919a319189b0c7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 23 Jun 2019 09:23:20 -0400 Subject: [PATCH] docs --- firmware/hw_layer/AdcConfiguration.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/hw_layer/AdcConfiguration.h b/firmware/hw_layer/AdcConfiguration.h index 6bde754de7..582d1f6fd0 100644 --- a/firmware/hw_layer/AdcConfiguration.h +++ b/firmware/hw_layer/AdcConfiguration.h @@ -24,9 +24,10 @@ public: int getAdcValueByIndex(int internalIndex) const; void invalidateSamplesCache(); - // This must be aligned on a 32-byte boundary, and be a multiple of 32 bytes long. + // on F7 this must be aligned on a 32-byte boundary, and be a multiple of 32 bytes long. // When we invalidate the cache line(s) for ADC samples, we don't want to nuke any - // adjacent data + // adjacent data. + // F4 does not care __ALIGNED(32) adcsample_t samples[ADC_MAX_CHANNELS_COUNT * MAX_ADC_GRP_BUF_DEPTH]; // Assert multiple of 32 bytes long so we don't stomp on the data after the buffer static_assert(sizeof(samples) % 32 == 0);