summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpio/pin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpio/pin.h b/gpio/pin.h
index aede480..c85de7f 100644
--- a/gpio/pin.h
+++ b/gpio/pin.h
@@ -86,7 +86,9 @@ class Pin {
}
void set_speed(Speed s) {
+ #if defined(STM32F4)
g.OSPEEDR = (g.OSPEEDR & ~(3 << (n * 2))) | s << (n * 2);
+ #endif
}
void on() {