RTEMS | Draft: cpukit: add support for common CAN/CAN FD stack (!49)

Pavel Pisa (@ppisa) gitlab at rtems.org
Fri Jun 28 12:56:00 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_108467

 > +
 > +  return ret;
 > +}
 > +
 > +/**
 > + * @brief   This function calculates size of FIFO slot
 > + *
 > + * @param   maxdlen Maximum CAN frame data length.
 > + *
 > + * @return  Returns size of one FIFO slot
 > + *
 > + */
 > +static inline int canque_fifo_slot_size( int maxdlen )
 > +{
 > +  return offsetof( struct canque_slot_t, frame.data ) + maxdlen +
 > +    ( ( RTEMS_ALIGNOF(struct canque_slot_t) - 1 ) &

Yes there is matching `RTEMS_ALIGN_UP` in `rtems/score/basedefs.h`

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108467
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/831d1e8b/attachment.htm>


More information about the bugs mailing list