Hellen72: Set the default pin states to input-pulldown instead of input-pullup #2525

This commit is contained in:
rusefillc 2021-08-05 04:53:37 -04:00
parent 6a929113e3
commit 49497dec6d
4 changed files with 8 additions and 0 deletions

View File

@ -44,7 +44,9 @@
* Pulldowns are more safe because most of MCU outputs on Hellen are high-active.
*/
#define EFI_PIN_MODE_DEFAULT PIN_MODE_INPUT
#ifndef EFI_DR_DEFAULT
#define EFI_DR_DEFAULT PIN_PUPDR_PULLDOWN
#endif
// See https://github.com/rusefi/rusefi/issues/397
#define DEFAULT_GPIO_SPEED PIN_OSPEED_HIGH

View File

@ -44,7 +44,9 @@
* Pulldowns are more safe because most of MCU outputs on Hellen are high-active.
*/
#define EFI_PIN_MODE_DEFAULT PIN_MODE_INPUT
#ifndef EFI_DR_DEFAULT
#define EFI_DR_DEFAULT PIN_PUPDR_PULLDOWN
#endif
// See https://github.com/rusefi/rusefi/issues/397
#define DEFAULT_GPIO_SPEED PIN_OSPEED_HIGH

View File

@ -37,7 +37,9 @@
* Default to input mode, with internal pulldown resistor enabled.
*/
#define EFI_PIN_MODE_DEFAULT PIN_MODE_INPUT
#ifndef EFI_DR_DEFAULT
#define EFI_DR_DEFAULT PIN_PUPDR_PULLUP
#endif
// See https://github.com/rusefi/rusefi/issues/397
#define DEFAULT_GPIO_SPEED PIN_OSPEED_HIGH

View File

@ -39,7 +39,9 @@
* input-floating is the default pin mode. input-output boards should provision appropriate pull-ups/pull-downs.
*/
#define EFI_PIN_MODE_DEFAULT PIN_MODE_INPUT
#ifndef EFI_DR_DEFAULT
#define EFI_DR_DEFAULT PIN_PUPDR_FLOATING
#endif
// See https://github.com/rusefi/rusefi/issues/397
#define DEFAULT_GPIO_SPEED PIN_OSPEED_HIGH