Skip to content

Commit b818c46

Browse files
committed
Changed Signal to DoubleBuffer to avoid naming conflict
1 parent 8a43470 commit b818c46

25 files changed

+87
-458
lines changed

CMakeCache.txt

Lines changed: 0 additions & 375 deletions
This file was deleted.

boards/varmint_h7/common/drivers/Adc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern Time64 time64;
4949
#define ADC_DMA_BUF_SIZE_EXT (ADC_CHANNELS_EXT * sizeof(uint32_t))
5050
#define ADC_DMA_BUF_SIZE_MAX (16 * sizeof(uint32_t)) // 16 channels is max for the ADC sequencer
5151

52-
DTCM_RAM uint8_t adc_signal_buffer[2 * sizeof(AdcPacket)];
52+
DTCM_RAM uint8_t adc_double_buffer[2 * sizeof(AdcPacket)];
5353

5454
DTCM_RAM uint32_t adc_counts[ADC_CHANNELS];
5555

@@ -71,7 +71,7 @@ uint32_t Adc::init(uint16_t sample_rate_hz, ADC_HandleTypeDef * hadc_ext,
7171
hadcInt_ = hadc_int;
7272
cfg_ = adc_cfg;
7373

74-
signal_.init(adc_signal_buffer, sizeof(adc_signal_buffer));
74+
double_buffer_.init(adc_double_buffer, sizeof(adc_double_buffer));
7575

7676
if (DRIVER_OK != configAdc(hadcExt_, adc_instance_ext, cfg_, ADC_CHANNELS_EXT)) {
7777
initializationStatus_ = DRIVER_HAL_ERROR;

0 commit comments

Comments
 (0)