RTEMS | bsps/stm32h7/spi: Add full duplex and interrupt support (!206)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Sun Sep 29 23:25:35 UTC 2024
Sebastian Huber started a new discussion on bsps/arm/stm32h7/spi/spi-support.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/206#note_112695
> #include <rtems/bspIo.h>
> #include <rtems/sysinit.h>
> #include <stdio.h>
> +#include <stm32h7xx_hal_dma.h>
> +#include <stm32h7xx_hal_spi.h>
>
> #include <stm32h7/hal.h>
> #include <rtems/score/prioritybitmapimpl.h>
>
> +#define EVENT_ERROR RTEMS_EVENT_0
Using events is a bad approach since this may collide with application events. At least use a system event. You can also use a self-contained condition variable or a binary semaphore.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/206#note_112695
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/20240929/94bd44e4/attachment.htm>
More information about the bugs
mailing list