Skip to content

Commit 913b027

Browse files
committed
Merge branch 'fix_16190' into sfe_rp2350_beta_05
2 parents ffc22a2 + 6451593 commit 913b027

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ports/rp2/machine_bitstream.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232

3333
#if MICROPY_PY_MACHINE_BITSTREAM
3434

35+
#if PICO_RP2350
36+
#define MP_HAL_BITSTREAM_NS_OVERHEAD (5)
37+
#else
3538
#define MP_HAL_BITSTREAM_NS_OVERHEAD (9)
39+
#endif
3640

3741
#if PICO_RISCV
3842

ports/rp2/mphalport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ static inline void mp_hal_pin_od_high(mp_hal_pin_obj_t pin) {
182182
}
183183

184184
static inline void mp_hal_pin_low(mp_hal_pin_obj_t pin) {
185-
gpio_clr_mask(1 << pin);
185+
gpio_clr_mask64((uint64_t) 1 << pin);
186186
}
187187

188188
static inline void mp_hal_pin_high(mp_hal_pin_obj_t pin) {
189-
gpio_set_mask(1 << pin);
189+
gpio_set_mask64((uint64_t) 1 << pin);
190190
}
191191

192192
enum mp_hal_pin_interrupt_trigger {

0 commit comments

Comments
 (0)