refactoring
This commit is contained in:
parent
8ca619144d
commit
bbb909a041
|
@ -1,16 +1 @@
|
||||||
/**
|
#include "hellen_knock_config.h"
|
||||||
* @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)))
|
|
|
@ -1,16 +1 @@
|
||||||
/**
|
#include "hellen_knock_config.h"
|
||||||
* @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)))
|
|
|
@ -1,16 +1 @@
|
||||||
/**
|
#include "hellen_knock_config.h"
|
||||||
* @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)))
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* @file hellen_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)))
|
Loading…
Reference in New Issue