fw-custom-paralela/knock_config.h

18 lines
331 B
C
Raw Permalink Normal View History

2024-04-16 13:49:25 -07:00
/**
* @file knock_config.h
*/
2024-04-17 23:32:08 -07:00
2024-04-16 13:49:25 -07:00
#pragma once
// Knock is on ADC3
#define KNOCK_ADC ADCD3
// knock 1 - pin PA3
#define KNOCK_ADC_CH1 ADC_CHANNEL_IN3
#define KNOCK_PIN_CH1 Gpio::A3
// Sample rate & time - depends on the exact MCU
#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84
#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12)))
2024-04-17 23:32:08 -07:00