7#include "../../deps/riscv-opcodes/encoding.h"
13inline void snrt_int_cluster_set(uint32_t mask) {
14 *(snrt_cluster_clint_set_ptr()) = mask;
21inline void snrt_int_cluster_clr(uint32_t mask) {
22 *(snrt_cluster_clint_clr_ptr()) = mask;
32inline void snrt_int_clr_mcip_unsafe() {
33 snrt_int_cluster_clr(1 << snrt_cluster_core_idx());
39inline void snrt_int_wait_mcip_clr() {
40 while (read_csr(mip) & MIP_MCIP)
47inline void snrt_int_clr_mcip() {
48 snrt_int_clr_mcip_unsafe();
49 snrt_int_wait_mcip_clr();
52inline void snrt_int_set_mcip() {
53 snrt_int_cluster_set(1 << snrt_cluster_core_idx());