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