EFI_SOFTWARE_KNOCK for hellen

This commit is contained in:
rusefillc 2021-04-21 09:56:46 -04:00
parent 2830f52f03
commit ea3bd4157c
4 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/**
* @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 GPIOF_7
// Sample rate & time - depends on the exact MCU
#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84
#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12)))

View File

@ -0,0 +1,16 @@
/**
* @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 GPIOF_7
// Sample rate & time - depends on the exact MCU
#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84
#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12)))

View File

@ -1,3 +1,7 @@
/**
* @file knock_config.h
*/
#pragma once
// Knock is on ADC3

View File

@ -1,3 +1,7 @@
/**
* @file knock_config.h
*/
#pragma once
// Knock is on ADC3