Skip to content

Commit

Permalink
fix RISC-V build
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Sep 1, 2024
1 parent d957c73 commit b3cadb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rp2350/pico_platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ if (NOT TARGET pico_platform)
hardware_dcp
hardware_rcp
)
if (PICO_RISCV)
pico_mirrored_target_link_libraries(pico_platform INTERFACE hardware_hazard3)
endif()
endif()

function(pico_add_platform_library TARGET)
Expand Down
4 changes: 4 additions & 0 deletions src/rp2_common/hardware_hazard3/include/hardware/hazard3.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ extern "C" {
#define hazard3_irqarray_clear(csr, index, data) static_assert(false, "Not supported: Xh3irq extension")
#endif

#ifdef __cplusplus
}
#endif

#endif

#endif

0 comments on commit b3cadb7

Please sign in to comment.