RTEMS | bsp/aarch64/raspberrypi: Add I2C interrupt support (!682)
Shaunak Datar (@skdatar)
gitlab at rtems.org
Tue Aug 26 09:12:32 UTC 2025
Shaunak Datar commented on a discussion on bsps/aarch64/raspberrypi/i2c/raspberrypi-i2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/682#note_129452
> return rv;
> }
>
> +#ifdef BSP_I2C_USE_INTERRUPTS
> + C_REG( bus ) |= C_INTD;
> + if ( rtems_binary_semaphore_wait_timed_ticks(
> + &bus->sem,
> + bus->base.timeout
> + ) != 0 ) {
> + rtems_binary_semaphore_try_wait( &bus->sem );
> + return -ETIMEDOUT;
> + }
> +#else
> + while ( ( S_REG( bus ) & S_DONE ) == 0 ) {
> + }
Yeah added that
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/682#note_129452
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/20250826/149c03b2/attachment.htm>
More information about the bugs
mailing list