All uncommitted work from ESP32 GDB stub development session. Includes: - GDB stub (uos_gdbstub.c/.h/_entry.S) - Startup vector table rewrite - ESP32 HAL integration files - Boot chain design docs - AGENTS.md absolute rules (commit before refactor, no unauthorized changes) - All prior deepseek session work This commit prevents further data loss. No claims of correctness.
40 lines
794 B
C
40 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;
|
|
}
|