Skip to content

Commit 5cf13c1

Browse files
committed
Fixup ifs in rcp.h
1 parent bbad475 commit 5cf13c1

File tree

1 file changed

+3
-3
lines changed
  • src/rp2_common/hardware_rcp/include/hardware

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
// ----------------------------------------------------------------------------
1818
// RCP masks (this header is RP2350 only)
19-
#if defined(PICO_RP2350)
19+
#if 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

2525
// RCP instructions (this header is Arm-only)
26-
#if !defined(__riscv)
26+
#if HAS_REDUNDANCY_COPROCESSOR
2727
// ----------------------------------------------------------------------------
2828
// Macros and inline functions for use in C files
2929
#ifndef __ASSEMBLER__
@@ -996,7 +996,7 @@ rcp_switch_u8_to_ch_cl rcp_canary_check_nodelay_impl \tag, \x
996996
cdp p7, #0, c0, c0, c0, #1
997997
.endm
998998

999-
#endif // !__riscv
999+
#endif // HAS_REDUNDANCY_COPROCESSOR
10001000
#endif // PICO_RP2350
10011001
#endif // __ASSEMBLER__
10021002
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)