rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
rusefi_hw_pin_mode.h
Go to the documentation of this file.
1// todo: migrate/unify with pin_output_mode_e? rename? something is messy here
2// this enum is currently only used for SPI pins
3typedef enum __attribute__ ((__packed__)) {
4// todo: here we have a rare example of stm32-specific enum, todo: make this not stm32 specific?
5 PO_DEFAULT = 0,
6 PO_OPENDRAIN = 4, // PAL_STM32_OTYPE_OPENDRAIN
7 PO_PULLUP = 32, // PAL_STM32_PUDR_PULLUP
8 PO_PULLDOWN = 64 // PAL_STM32_PUPDR_PULLDOWN
typedef __attribute__
Ignition Mode.