aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorDamien George2016-10-03 18:06:58 +1100
committerDamien George2016-10-03 18:06:58 +1100
commit5deedd668569099659dfe67ade6c03b2f94815ae (patch)
tree2f949c699e7d3236e1fe294ecd655292c1cdfc08 /stmhal
parentd4a5ca505676b207370d172f307b845380dea2da (diff)
stmhal/mphalport: Fix mp_hal_pin_write to use correct pin_mask.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/mphalport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/mphalport.h b/stmhal/mphalport.h
index 7045f30c4..d45308c34 100644
--- a/stmhal/mphalport.h
+++ b/stmhal/mphalport.h
@@ -51,4 +51,4 @@ void mp_hal_set_interrupt_char(int c); // -1 to disable
#define mp_hal_pin_od_low(p) GPIO_clear_pin((p)->gpio, (p)->pin_mask)
#define mp_hal_pin_od_high(p) GPIO_set_pin((p)->gpio, (p)->pin_mask)
#define mp_hal_pin_read(p) GPIO_read_pin((p)->gpio, (p)->pin)
-#define mp_hal_pin_write(p, v) do { if (v) { GPIO_set_pin((p)->gpio, (p)->pin); } else { GPIO_clear_pin((p)->gpio, (p)->pin); } } while (0)
+#define mp_hal_pin_write(p, v) do { if (v) { GPIO_set_pin((p)->gpio, (p)->pin_mask); } else { GPIO_clear_pin((p)->gpio, (p)->pin_mask); } } while (0)