Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions py/circuitpy_mpconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ extern void common_hal_mcu_enable_interrupts(void);

#define BYTES_PER_WORD (4)

// Bit 0 of a code pointer selects the Thumb instruction set.
#if defined(__thumb__)
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)((mp_uint_t)(p) | 1))
#else
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)(p))
#endif

// Track stack usage. Expose results via ustack module.
#define MICROPY_MAX_STACK_USAGE (0)
Expand Down
Loading