diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-08-20 13:32:14 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-08-20 19:39:49 -0400 |
commit | e32be928dc042b61876384fac9ef2a225d10e929 (patch) | |
tree | 260659bab600486cb42b9dfdeaa9a764f56744b2 /src/stm32/internal.h | |
parent | c930fc392b6977b17d6f7953bd738583974208c2 (diff) | |
download | kutter-e32be928dc042b61876384fac9ef2a225d10e929.tar.gz kutter-e32be928dc042b61876384fac9ef2a225d10e929.tar.xz kutter-e32be928dc042b61876384fac9ef2a225d10e929.zip |
stm32: Add support for configuring open drain output mode
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/internal.h')
-rw-r--r-- | src/stm32/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stm32/internal.h b/src/stm32/internal.h index 05a222d0..1a7b1e74 100644 --- a/src/stm32/internal.h +++ b/src/stm32/internal.h @@ -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 |