RTEMS | Draft: Add the support for i2c driver in the aarch64/raspberrypi bsp (!363)
Kinsey Moore (@opticron)
gitlab at rtems.org
Sun Mar 16 15:48:06 UTC 2025
Kinsey Moore started a new discussion on bsps/aarch64/raspberrypi/i2c/raspberrypi-i2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/363#note_121021
> + * POSSIBILITY OF SUCH DAMAGE.
> + */
> +
> +#include <bsp/raspberrypi-i2c.h>
> +#include <bsp/raspberrypi.h>
> +#include <bsp/rpi-gpio.h>
> +#include <dev/i2c/i2c.h>
> +#include <bsp/irq.h>
> +#include <stdio.h>
> +
> +typedef struct
> +{
> + i2c_bus base;
> + uint32_t input_clock;
> + rtems_id task_id;
> + uint32_t base_address;
This should be a uintptr_t for best compatibility if this ever needs to be ported to the 32bit BSPs or if future iterations of the 64bit chip move the peripheral above 4GB.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/363#note_121021
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/20250316/a03fcfa8/attachment-0001.htm>
More information about the bugs
mailing list