File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ CFLAGS_CYW43 := \
3232 -DCYW43_USE_STATS=0 \
3333 -DPICO_BUILD \
3434 -DCYW43_ENABLE_BLUETOOTH=0 \
35+ -DCIRCUITPY_CYW43_INIT_DELAY=$(CIRCUITPY_CYW43_INIT_DELAY ) \
3536 -DPICO_CYW43_ARCH_POLL=0
3637
3738SRC_SDK_CYW43 := \
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ CIRCUITPY_ALARM ?= 1
5353CIRCUITPY_PICODVI ?= 0
5454
5555CIRCUITPY_TOUCHIO ?= 1
56+
57+ # delay in ms before calling cyw43_arch_init_with_country
58+ CIRCUITPY_CYW43_INIT_DELAY ?= 1000
5659endif
5760
5861ifeq ($(CHIP_VARIANT ) ,RP2350)
@@ -65,6 +68,9 @@ CIRCUITPY_PICODVI ?= 1
6568# So, turn touchio off because it doesn't work.
6669CIRCUITPY_TOUCHIO = 0
6770
71+ # delay in ms before calling cyw43_arch_init_with_country
72+ CIRCUITPY_CYW43_INIT_DELAY ?= 0
73+
6874# Audio effects
6975CIRCUITPY_AUDIOEFFECTS ?= 1
7076endif
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ safe_mode_t port_init(void) {
361361 // initializing the cyw43 chip. Delays inside cyw43_arch_init_with_country
362362 // are intended to meet the power on timing requirements, but apparently
363363 // are inadequate. We'll back off this long delay based on future testing.
364- mp_hal_delay_ms (1000 );
364+ mp_hal_delay_ms (CIRCUITPY_CYW43_INIT_DELAY );
365365
366366 // Change this as a placeholder as to how to init with country code.
367367 // Default country code is CYW43_COUNTRY_WORLDWIDE)
You can’t perform that action at this time.
0 commit comments