Skip to content

Commit a981e67

Browse files
committed
less oversampling
1 parent b3b4dc2 commit a981e67

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/current_sense/hardware_specific/stm32/stm32g4/stm32g4_hal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include "../../../../communication/SimpleFOCDebug.h"
66

77
#define SIMPLEFOC_STM32_DEBUG
8-
#define SIMPLEFOC_STM32G4_CS_SAMPLING_TIME ADC_SAMPLETIME_24CYCLES_5
9-
#define SIMPLEFOC_STM32G4_CS_OVERSAMPLING_RATIO ADC_OVERSAMPLING_RATIO_8
10-
#define SIMPLEFOC_STM32G4_CS_OVERSAMPLING_SHIFT ADC_RIGHTBITSHIFT_3
8+
#define SIMPLEFOC_STM32G4_CS_SAMPLING_TIME ADC_SAMPLETIME_2CYCLES_5
9+
#define SIMPLEFOC_STM32G4_CS_OVERSAMPLING_RATIO ADC_OVERSAMPLING_RATIO_4
10+
#define SIMPLEFOC_STM32G4_CS_OVERSAMPLING_SHIFT ADC_RIGHTBITSHIFT_2
1111

1212

1313
// pointer to the ADC handles used in the project

0 commit comments

Comments
 (0)