rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
knock_config.h
Go to the documentation of this file.
1#pragma once
2
3// Knock is on ADC3
4#define KNOCK_ADC ADCD3
5
6// knock 1 - pin PA2
7#define KNOCK_ADC_CH1 ADC_CHANNEL_IN2
8#define KNOCK_PIN_CH1 Gpio::A2
9
10// Sample rate & time - depends on the exact MCU
11#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84
12#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12)))