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.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
