mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
34 lines
586 B
C
34 lines
586 B
C
|
/*
|
||
|
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
#pragma once
|
||
|
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <assert.h>
|
||
|
#include "esp_attr.h"
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/**
|
||
|
* In the case of INTC, all the interrupt lines are dedicated to external peripherals, so the offset is 0
|
||
|
*/
|
||
|
#define RV_EXTERNAL_INT_COUNT 32
|
||
|
#define RV_EXTERNAL_INT_OFFSET 0
|
||
|
|
||
|
|
||
|
FORCE_INLINE_ATTR void assert_valid_rv_int_num(int rv_int_num)
|
||
|
{
|
||
|
assert(rv_int_num != 0 && "Invalid CPU interrupt number");
|
||
|
}
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|