RTEMS | RISC-V: Add support for ESP32-C3 (!1160)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue Mar 31 16:20:21 UTC 2026
Gedare Bloom started a new discussion on bsps/riscv/esp32/include/bsp/irq.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147626
> + * SUCH DAMAGE.
> + */
> +
> +#ifndef LIBBSP_ESP32_BSP_IRQ_H
> +#define LIBBSP_ESP32_BSP_IRQ_H
> +
> +#include <rtems/score/basedefs.h>
> +#include <bspopts.h>
> +#define JOIN_PATHS(path1, path2) RTEMS_XSTRING(path1/path2)
> +
> +typedef int (*uart_tx_one_char_t)(uint8_t c);
> +typedef void (*uart_tx_flush_t)(uint8_t uart_no);
> +typedef unsigned char (*uart_rx_one_char_t)(unsigned char *char_in);
> +typedef void (*gpio_output_set_t)(uint32_t set_mask, uint32_t clear_mask, uint32_t enable_mask, uint32_t disable_mask);
> +
> +#include JOIN_PATHS(ESPRESSIF_CHIP_VARIANT, chip_definitions.h)
This is an interesting way to do it, but maybe we should handle it in the spec file instead?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147626
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/ce883885/attachment-0001.htm>
More information about the bugs
mailing list