rp2/mphalport: Fix mp_hal_pin_low/high() for pin>=32.
Fixes issue #16190. Signed-off-by: Dryw Wade <dryw.wade@sparkfun.com>
This commit is contained in:
parent
495ce91cae
commit
065d45f9ec
1 changed files with 2 additions and 2 deletions
|
|
@ -182,11 +182,11 @@ static inline void mp_hal_pin_od_high(mp_hal_pin_obj_t pin) {
|
|||
}
|
||||
|
||||
static inline void mp_hal_pin_low(mp_hal_pin_obj_t pin) {
|
||||
gpio_clr_mask(1 << pin);
|
||||
gpio_clr_mask64(UINT64_C(1) << pin);
|
||||
}
|
||||
|
||||
static inline void mp_hal_pin_high(mp_hal_pin_obj_t pin) {
|
||||
gpio_set_mask(1 << pin);
|
||||
gpio_set_mask64(UINT64_C(1) << pin);
|
||||
}
|
||||
|
||||
enum mp_hal_pin_interrupt_trigger {
|
||||
|
|
|
|||
Loading…
Reference in a new issue