RTEMS | can: add support for SJA1000 CAN controller (!1183)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Apr 6 22:36:58 UTC 2026
Gedare Bloom commented on a discussion on cpukit/dev/can/sja1000/sja1000.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1183#note_148159
> +{
> + struct sja1000_internal *internal = chip->internal;
> + struct can_frame err_frame = {};
> + enum can_state state;
> + uint8_t rxerr;
> + uint8_t txerr;
> + uint8_t ecc;
> +
> + rxerr = sja1000_read_reg( internal, SJA1000_RXERR );
> + txerr = sja1000_read_reg( internal, SJA1000_TXERR1 );
> +
> + state = sja1000_read_fault_state( internal );
> + rtems_can_stats_set_state(&chip->chip_stats, state);
> + atomic_fetch_and( &internal->isr, ~( REG_INT_EPI ) );
> +
> + if ( FIELD_GET( REG_INT_EI, isr ) ) {
ok good point when they are cumulative it may not be that helpful.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1183#note_148159
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/20260406/1f8cdf14/attachment-0001.htm>
More information about the bugs
mailing list