diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-10-13 17:23:25 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-10-13 17:23:25 +0200 |
commit | a233603254fad2736243bd9857ce52d3defbfd7b (patch) | |
tree | 210f4c5f39845fc51e4e4b4b86e5692de506fa24 /gpio | |
parent | a5fe4e9378ec4f7787a989e3b31ed1729a631905 (diff) |
GPIO speed setting is only valid for F4.
Diffstat (limited to 'gpio')
-rw-r--r-- | gpio/pin.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() { |