aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/gpio.h')
-rw-r--r--src/stm32/gpio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stm32/gpio.h b/src/stm32/gpio.h
index 6a5f910c..0bfffc4b 100644
--- a/src/stm32/gpio.h
+++ b/src/stm32/gpio.h
@@ -5,7 +5,10 @@
struct gpio_out {
void *regs;
- uint32_t bit;
+ union {
+ struct odr_cache *oc; // stm32h7 uses 'oc'; all others use 'bit'
+ uint32_t bit;
+ };
};
struct gpio_out gpio_out_setup(uint32_t pin, uint32_t val);
void gpio_out_reset(struct gpio_out g, uint32_t val);