Skip to content

Commit f9e99bd

Browse files
committed
Fix picow build
1 parent c122ca1 commit f9e99bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ports/raspberrypi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ INC_CYW43 := \
3939
-isystem sdk/src/rp2_common/pico_lwip/include/ \
4040
-isystem sdk/src/rp2_common/pico_rand/include/ \
4141

42-
CFLAGS_CYW43 := -DCYW43_LWIP=1 -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_USE_SPI -DIGNORE_GPIO25 -DIGNORE_GPIO23 -DIGNORE_GPIO24 -DCYW43_LOGIC_DEBUG=0 -DCYW43_NETUTILS=1
42+
CFLAGS_CYW43 := -DCYW43_LWIP=1 -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_USE_SPI -DIGNORE_GPIO25 -DIGNORE_GPIO23 -DIGNORE_GPIO24 -DCYW43_LOGIC_DEBUG=0 -DCYW43_NETUTILS=1 -DPICO_BUILD
4343
SRC_SDK_CYW43 := \
4444
src/common/pico_sync/sem.c \
4545
src/rp2_common/pico_async_context/async_context_base.c \

py/misc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ typedef unsigned int uint;
7373
#define m_new_obj_var_maybe(obj_type, var_type, var_num) ((obj_type *)m_malloc_maybe(sizeof(obj_type) + sizeof(var_type) * (var_num)))
7474
#if MICROPY_ENABLE_FINALISER
7575
#define m_new_obj_with_finaliser(type) ((type *)(m_malloc_with_finaliser(sizeof(type))))
76+
#define m_new_ll_obj_with_finaliser(type) m_new_obj_with_finaliser(type) // CIRCUITPY: clue to long-lived allocator
7677
#define m_new_obj_var_with_finaliser(type, var_type, var_num) ((type *)m_malloc_with_finaliser(sizeof(type) + sizeof(var_type) * (var_num)))
7778
#else
7879
#define m_new_obj_with_finaliser(type) m_new_obj(type)

0 commit comments

Comments
 (0)