RTEMS | dev/serial: Refactor the pl011 driver to be extensible (!47)

Ning Yang (@yangn0) gitlab at rtems.org
Thu Aug 15 17:12:18 UTC 2024




Ning Yang commented on a discussion on bsps/include/dev/serial/arm-pl011.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/47#note_111097

 >  } arm_pl011_context;
 >  
 > +#ifdef BSP_CONSOLE_USE_INTERRUPTS
 > +
 > +#define FIFO_LEVEL_ONE_EIGHTH   0
 > +#define FIFO_LEVEL_ONE_FOURTH   1
 > +#define FIFO_LEVEL_ONE_HALF     2
 > +#define FIFO_LEVEL_THREE_FOURTH 3
 > +#define FIFO_LELEL_SEVEN_HALF   4
 > +
 > +#define TXFIFO_IRQ_TRIGGER_LEVEL FIFO_LEVEL_ONE_EIGHTH
 > +#define RXFIFO_IRQ_TRIGGER_LEVEL FIFO_LEVEL_ONE_HALF
 > +
 > +#endif
 > +
 > +extern const rtems_termios_device_handler arm_pl011_fns;

The variable `arm_pl011_fns` needs to be used in the `console.c` file of BSP.
such as: rtems/bsps/aarch64/a53/console/console.c line56

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/47#note_111097
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/20240815/9774bd4b/attachment-0001.htm>


More information about the bugs mailing list