RTEMS | RISC-V: Add support for ESP32-C3 (!1160)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue Mar 31 16:31:18 UTC 2026
Gedare Bloom started a new discussion on bsps/riscv/esp32/irq/irq_c3.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147634
> + /* Set everything to level interrupts */
> + MATRIX_REG( INTERRUPT_CORE0_CPU_INT_TYPE_REG ) = 0x0U;
> + for (uint8_t vec = 1; vec < RISCV_MAXIMUM_EXTERNAL_INTERRUPTS; vec++) {
> + /*
> + * RISCV_MAXIMUM_EXTERNAL_INTERRUPTS is a valid interrupt because 0 is
> + * reserved for exceptions and not counted in the total number of
> + * interrupts
> + */
> + bsp_interrupt_set_priority(vec, 14);
> + }
> +
> + __asm__ volatile ("fence o, i" : : : "memory");
> + riscv_interrupt_enable(cookie);
> +
> + /* clear all mappings */
> + for ( uint8_t vec = 1; vec < RISCV_MAXIMUM_EXTERNAL_INTERRUPTS; vec++ ) {
`<=`?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147634
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260331/c819b3d1/attachment-0001.htm>
More information about the bugs
mailing list