We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffc22a2 + 6451593 commit 913b027Copy full SHA for 913b027
ports/rp2/machine_bitstream.c
@@ -32,7 +32,11 @@
32
33
#if MICROPY_PY_MACHINE_BITSTREAM
34
35
+#if PICO_RP2350
36
+#define MP_HAL_BITSTREAM_NS_OVERHEAD (5)
37
+#else
38
#define MP_HAL_BITSTREAM_NS_OVERHEAD (9)
39
+#endif
40
41
#if PICO_RISCV
42
ports/rp2/mphalport.h
@@ -182,11 +182,11 @@ static inline void mp_hal_pin_od_high(mp_hal_pin_obj_t pin) {
182
}
183
184
static inline void mp_hal_pin_low(mp_hal_pin_obj_t pin) {
185
- gpio_clr_mask(1 << pin);
+ gpio_clr_mask64((uint64_t) 1 << pin);
186
187
188
static inline void mp_hal_pin_high(mp_hal_pin_obj_t pin) {
189
- gpio_set_mask(1 << pin);
+ gpio_set_mask64((uint64_t) 1 << pin);
190
191
192
enum mp_hal_pin_interrupt_trigger {
0 commit comments