diff --git a/firmware/config/boards/hellen/hellen121vag/knock_config.h b/firmware/config/boards/hellen/hellen121vag/knock_config.h index a4e32de5ab..d03cdec9a4 100644 --- a/firmware/config/boards/hellen/hellen121vag/knock_config.h +++ b/firmware/config/boards/hellen/hellen121vag/knock_config.h @@ -1,16 +1 @@ -/** - * @file knock_config.h - */ - -#pragma once - -// Knock is on ADC3 -#define KNOCK_ADC ADCD3 - -// knock 1 - pin PF7 -#define KNOCK_ADC_CH1 ADC_CHANNEL_IN5 -#define KNOCK_PIN_CH1 Gpio::F7 - -// Sample rate & time - depends on the exact MCU -#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84 -#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12))) +#include "../hellen_knock_config.h" \ No newline at end of file diff --git a/firmware/config/boards/hellen/hellen154hyundai/knock_config.h b/firmware/config/boards/hellen/hellen154hyundai/knock_config.h index a4e32de5ab..d03cdec9a4 100644 --- a/firmware/config/boards/hellen/hellen154hyundai/knock_config.h +++ b/firmware/config/boards/hellen/hellen154hyundai/knock_config.h @@ -1,16 +1 @@ -/** - * @file knock_config.h - */ - -#pragma once - -// Knock is on ADC3 -#define KNOCK_ADC ADCD3 - -// knock 1 - pin PF7 -#define KNOCK_ADC_CH1 ADC_CHANNEL_IN5 -#define KNOCK_PIN_CH1 Gpio::F7 - -// Sample rate & time - depends on the exact MCU -#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84 -#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12))) +#include "../hellen_knock_config.h" \ No newline at end of file diff --git a/firmware/config/boards/hellen/hellen64_miataNA6_94/knock_config.h b/firmware/config/boards/hellen/hellen64_miataNA6_94/knock_config.h index a4e32de5ab..d03cdec9a4 100644 --- a/firmware/config/boards/hellen/hellen64_miataNA6_94/knock_config.h +++ b/firmware/config/boards/hellen/hellen64_miataNA6_94/knock_config.h @@ -1,16 +1 @@ -/** - * @file knock_config.h - */ - -#pragma once - -// Knock is on ADC3 -#define KNOCK_ADC ADCD3 - -// knock 1 - pin PF7 -#define KNOCK_ADC_CH1 ADC_CHANNEL_IN5 -#define KNOCK_PIN_CH1 Gpio::F7 - -// Sample rate & time - depends on the exact MCU -#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84 -#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12))) +#include "../hellen_knock_config.h" \ No newline at end of file diff --git a/firmware/config/boards/hellen/hellen72/knock_config.h b/firmware/config/boards/hellen/hellen72/knock_config.h index a4e32de5ab..d03cdec9a4 100644 --- a/firmware/config/boards/hellen/hellen72/knock_config.h +++ b/firmware/config/boards/hellen/hellen72/knock_config.h @@ -1,16 +1 @@ -/** - * @file knock_config.h - */ - -#pragma once - -// Knock is on ADC3 -#define KNOCK_ADC ADCD3 - -// knock 1 - pin PF7 -#define KNOCK_ADC_CH1 ADC_CHANNEL_IN5 -#define KNOCK_PIN_CH1 Gpio::F7 - -// Sample rate & time - depends on the exact MCU -#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84 -#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12))) +#include "../hellen_knock_config.h" \ No newline at end of file