RTEMS | Draft: can/dcan: Add AM335x DCAN controller driver (!1341)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed Jul 8 19:22:27 UTC 2026
Gedare Bloom started a new discussion on cpukit/dev/can/dcan/dcan.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1341#note_154031
> + *
> + * @param chip Pointer to CAN chip structure.
> + * @param ifno DCAN interface register set number.
> + *
> + * @return 0 on success, negated ETIMEDOUT otherwise.
> + */
> +static int dcan_wait_if_not_busy(
> + struct rtems_can_chip *chip,
> + unsigned int ifno
> +)
> +{
> + struct dcan_internal *internal = chip->internal;
> + int i = 1000;
> + while ( i > 0 ) {
> + if (
> + ( dcan_read_reg( internal, DCAN_IFCMD( ifno ) ) &
you can get rid of the extra outside `( )`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1341#note_154031
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-5xmd7kcn1vtrticxng1vpsut9-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260708/b30cb688/attachment-0001.htm>
More information about the bugs
mailing list