Skip to content

Commit

Permalink
Fix Risc-V build
Browse files Browse the repository at this point in the history
RCP mask constants still need to be accessed from Risc-V
  • Loading branch information
will-v-pi committed Nov 22, 2024
1 parent cea9802 commit 1e7e0c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rp2_common/hardware_rcp/include/hardware/rcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
*/

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

#define RCP_MASK_TRUE _u(0xa500a500)
#define RCP_MASK_FALSE _u(0x00c300c3)
#define RCP_MASK_INTXOR _u(0x96009600)

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

#endif // !__riscv
#endif // PICO_RP2350
#endif // __ASSEMBLER__
// ----------------------------------------------------------------------------

Expand Down

0 comments on commit 1e7e0c7

Please sign in to comment.