Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5deedd66
Commit
5deedd66
authored
Oct 03, 2016
by
Damien George
Browse files
stmhal/mphalport: Fix mp_hal_pin_write to use correct pin_mask.
parent
d4a5ca50
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/mphalport.h
View file @
5deedd66
...
@@ -51,4 +51,4 @@ void mp_hal_set_interrupt_char(int c); // -1 to disable
...
@@ -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_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_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_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)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment