Skip to content

Commit ab12d55

Browse files
authored
Fix use of PICO_RP2040 macro. (#2356)
1 parent b1676c1 commit ab12d55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rp2_common/pico_crt0/embedded_start_block.inc.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ embedded_block:
4141
PICOBIN_IMAGE_TYPE_EXE_CPU_AS_BITS(RISCV) | \
4242
PICOBIN_IMAGE_TYPE_EXE_CHIP_AS_BITS(RP2350) | \
4343
CRT0_TBYB_FLAG
44-
#elif defined(PICO_RP2040)
44+
#elif PICO_RP2040
4545
.hword PICOBIN_IMAGE_TYPE_IMAGE_TYPE_AS_BITS(EXE) | \
4646
PICOBIN_IMAGE_TYPE_EXE_SECURITY_AS_BITS(NS) | \
4747
PICOBIN_IMAGE_TYPE_EXE_CPU_AS_BITS(ARM) | \
@@ -84,7 +84,7 @@ embedded_block:
8484
.word SRAM_END // stack pointer
8585
#endif
8686

87-
#ifndef PICO_RP2040
87+
#if !PICO_RP2040
8888
#if PICO_NO_FLASH
8989
// If no_flash bin, then include a vector table item
9090
.byte PICOBIN_BLOCK_ITEM_1BS_VECTOR_TABLE

0 commit comments

Comments
 (0)