RTEMS | bsps/stm32h7: Add DMA support for SPI (!294)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Nov 6 19:04:19 UTC 2024




Kinsey Moore commented on a discussion on bsps/arm/stm32h7/dma/dma-allocator.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/294#note_114417

 > +
 > +#include <stm32h7/hal.h>
 > +
 > +/*
 > + * Each bit in this uint16_t corresponds to a DMA channel in the two main DMA
 > + * peripherals.
 > + */
 > +static uint16_t dma_channels = 0;
 > +
 > +static rtems_mutex dma_lock = RTEMS_MUTEX_INITIALIZER("DMA Allocator");
 > +static uintptr_t dma_channel_size = DMA1_Stream1_BASE - DMA1_Stream0_BASE;
 > +
 > +static rtems_vector_number stm32h7_dma_get_irq(uintptr_t base)
 > +{
 > +  switch (base) {
 > +  case DMA1_Stream0_BASE:

No, this only returns IRQ numbers and none of them can be IRQ 0.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/294#note_114417
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/20241106/5abce8b6/attachment-0001.htm>


More information about the bugs mailing list