mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
41 lines
794 B
C
41 lines
794 B
C
/*
|
|
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#include <stdint.h>
|
|
#include "riscv/interrupt.h"
|
|
#include "esp_private/interrupt_intc.h"
|
|
#include "hal/interrupt_intc_ll.h"
|
|
|
|
|
|
void intr_matrix_route(int intr_src, int intr_num)
|
|
{
|
|
assert_valid_rv_int_num(intr_num);
|
|
interrupt_intc_ll_route(intr_src, intr_num);
|
|
}
|
|
|
|
|
|
uint32_t esprv_get_interrupt_unmask(void)
|
|
{
|
|
return interrupt_intc_ll_get_unmask();
|
|
}
|
|
|
|
|
|
enum intr_type esprv_int_get_type(int rv_int_num)
|
|
{
|
|
return interrupt_intc_ll_get_type(rv_int_num) ? INTR_TYPE_EDGE : INTR_TYPE_LEVEL;
|
|
}
|
|
|
|
|
|
int esprv_int_get_priority(int rv_int_num)
|
|
{
|
|
return interrupt_intc_ll_get_priority(rv_int_num);
|
|
}
|
|
|
|
|
|
bool esprv_int_is_vectored(int rv_int_num)
|
|
{
|
|
return true;
|
|
}
|