RTEMS | Draft: cpukit: add support for common CAN/CAN FD stack (!49)
Pavel Pisa (@ppisa)
gitlab at rtems.org
Fri Jun 28 13:05:55 UTC 2024
Pavel Pisa commented on a discussion on cpukit/include/dev/can/can-queue.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108468
> + *
> + */
> +static inline void canque_activate_edge(
> + struct canque_ends_t *inends,
> + struct canque_edge_t *qedge
> +)
> +{
> + struct canque_ends_t *outends;
> +
> + if ( qedge->edge_prio >= RTEMS_CAN_QUEUE_PRIO_NR ) {
> + qedge->edge_prio = RTEMS_CAN_QUEUE_PRIO_NR - 1;
> + }
> +
> + if ( ( outends = qedge->outends ) != NULL ) {
> + rtems_mutex_lock( &outends->ends_lock );
> + rtems_mutex_lock( &qedge->fifo.fifo_lock );
I mark this for further check. I am not sure from the first read.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108468
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/20240628/10d80b53/attachment-0001.htm>
More information about the bugs
mailing list