File tree 3 files changed +9
-1
lines changed 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ CFLAGS_CYW43 := \
32
32
-DCYW43_USE_STATS=0 \
33
33
-DPICO_BUILD \
34
34
-DCYW43_ENABLE_BLUETOOTH=0 \
35
+ -DCIRCUITPY_CYW43_INIT_DELAY=$(CIRCUITPY_CYW43_INIT_DELAY ) \
35
36
-DPICO_CYW43_ARCH_POLL=0
36
37
37
38
SRC_SDK_CYW43 := \
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ CIRCUITPY_ALARM ?= 1
53
53
CIRCUITPY_PICODVI ?= 0
54
54
55
55
CIRCUITPY_TOUCHIO ?= 1
56
+
57
+ # delay in ms before calling cyw43_arch_init_with_country
58
+ CIRCUITPY_CYW43_INIT_DELAY ?= 1000
56
59
endif
57
60
58
61
ifeq ($(CHIP_VARIANT ) ,RP2350)
@@ -65,6 +68,9 @@ CIRCUITPY_PICODVI ?= 1
65
68
# So, turn touchio off because it doesn't work.
66
69
CIRCUITPY_TOUCHIO = 0
67
70
71
+ # delay in ms before calling cyw43_arch_init_with_country
72
+ CIRCUITPY_CYW43_INIT_DELAY ?= 0
73
+
68
74
# Audio effects
69
75
CIRCUITPY_AUDIOEFFECTS ?= 1
70
76
endif
Original file line number Diff line number Diff line change 43
43
#include "src/rp2_common/hardware_sync/include/hardware/sync.h"
44
44
#include "src/rp2_common/hardware_timer/include/hardware/timer.h"
45
45
#if CIRCUITPY_CYW43
46
+ #include "py/mphal.h"
46
47
#include "pico/cyw43_arch.h"
47
48
#endif
48
49
#include "src/common/pico_time/include/pico/time.h"
@@ -360,7 +361,7 @@ safe_mode_t port_init(void) {
360
361
// initializing the cyw43 chip. Delays inside cyw43_arch_init_with_country
361
362
// are intended to meet the power on timing requirements, but apparently
362
363
// are inadequate. We'll back off this long delay based on future testing.
363
- mp_hal_delay_ms (1000 );
364
+ mp_hal_delay_ms (CIRCUITPY_CYW43_INIT_DELAY );
364
365
365
366
// Change this as a placeholder as to how to init with country code.
366
367
// Default country code is CYW43_COUNTRY_WORLDWIDE)
You can’t perform that action at this time.
0 commit comments