Skip to content

Commit 1e7e0c7

Browse files
committed
Fix Risc-V build
RCP mask constants still need to be accessed from Risc-V
1 parent cea9802 commit 1e7e0c7

File tree

1 file changed

+5
-2
lines changed
  • src/rp2_common/hardware_rcp/include/hardware

1 file changed

+5
-2
lines changed

src/rp2_common/hardware_rcp/include/hardware/rcp.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
*/
1616

1717
// ----------------------------------------------------------------------------
18-
// RCP instructions (this header is Arm-only)
19-
#if defined(PICO_RP2350) && !defined(__riscv)
18+
// RCP masks (this header is RP2350 only)
19+
#if defined(PICO_RP2350)
2020

2121
#define RCP_MASK_TRUE _u(0xa500a500)
2222
#define RCP_MASK_FALSE _u(0x00c300c3)
2323
#define RCP_MASK_INTXOR _u(0x96009600)
2424

25+
// RCP instructions (this header is Arm-only)
26+
#if !defined(__riscv)
2527
// ----------------------------------------------------------------------------
2628
// Macros and inline functions for use in C files
2729
#ifndef __ASSEMBLER__
@@ -995,6 +997,7 @@ rcp_switch_u8_to_ch_cl rcp_canary_check_nodelay_impl \tag, \x
995997
.endm
996998

997999
#endif // !__riscv
1000+
#endif // PICO_RP2350
9981001
#endif // __ASSEMBLER__
9991002
// ----------------------------------------------------------------------------
10001003

0 commit comments

Comments
 (0)