mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 00:07:54 -06:00
stm32: Add support for configuring open drain output mode
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c930fc392b
commit
e32be928dc
3 changed files with 9 additions and 2 deletions
|
@ -18,6 +18,7 @@ extern GPIO_TypeDef * const digital_regs[];
|
|||
|
||||
#define GPIO_INPUT 0
|
||||
#define GPIO_OUTPUT 1
|
||||
#define GPIO_OPEN_DRAIN 0x100
|
||||
#define GPIO_FUNCTION(fn) (2 | ((fn) << 4))
|
||||
#define GPIO_ANALOG 3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue