Kinsey Moore commented on a discussion on bsps/riscv/esp32/include/bsp/irq.h: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147736

 > + * 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)

I was trying to think of a way to do that, but selecting headers based on the 
BSP in the spec files requires that the consumers of the headers have updated 
include paths which becomes harder when the header file is part of the API BSPs 
provide and can be consumed by anything in the source base. I may just have to 
refactor this out since I agree that it's not very pretty.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147736
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to