Set the default pin states to input-pulldown instead of input-pullup for Hellen72 (#2525)

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
This commit is contained in:
andreika-git 2021-04-04 17:29:05 +03:00 committed by GitHub
parent 9871ab15b2
commit 56375c88ee
1 changed files with 3 additions and 2 deletions

View File

@ -40,10 +40,11 @@
#define BOARD_OTG_NOVBUSSENS TRUE
/*
* Default to input mode, with internal pulldown resistor enabled.
* Default to input mode, with internal PULLDOWN resistor enabled.
* Pulldowns are more safe because most of MCU outputs on Hellen are high-active.
*/
#define EFI_PIN_MODE_DEFAULT PIN_MODE_INPUT
#define EFI_DR_DEFAULT PIN_PUPDR_PULLUP
#define EFI_DR_DEFAULT PIN_PUPDR_PULLDOWN
// See https://github.com/rusefi/rusefi/issues/397
#define DEFAULT_GPIO_SPEED PIN_OSPEED_HIGH