-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable software knock on PA3 for F407 #105
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @file knock_config.h | ||
*/ | ||
|
||
#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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
! see also FLEXIBLE_CRITICAL_LED | ||
#define ts_show_critical_led true | ||
#define ts_show_software_knock true |