analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
971 stars 1.67k forks source link

DMA_InitTypeDef has no member named Channel #2322

Closed buha closed 1 month ago

buha commented 2 months ago

It seems PR #2301 was merged disregarding the build results for STM32 and now the main branch CI builds fail for one project. @Shetty-Anush could you look into this please ?

/no-OS_agent/_work/1/s/projects/eval-adxl355-pmdz/build/app/Core/noos/drivers/platform/stm32/stm32_dma.c: In function 'stm32_dma_config_xfer':
/no-OS_agent/_work/1/s/projects/eval-adxl355-pmdz/build/app/Core/noos/drivers/platform/stm32/stm32_dma.c:76:21: error: 'DMA_InitTypeDef' {aka 'struct <anonymous>'} has no member named 'Channel'
   76 |  sdma_ch->hdma->Init.Channel = sdma_ch->ch_num;
      |                     ^
/no-OS_agent/_work/1/s/projects/eval-adxl355-pmdz/build/app/Core/noos/drivers/platform/stm32/stm32_dma.c: At top level:
/no-OS_agent/_work/1/s/projects/eval-adxl355-pmdz/build/app/Core/noos/drivers/platform/stm32/stm32_dma.c:336:14: warning: initialization of 'int (*)(struct no_os_dma_desc **, struct no_os_dma_init_param *)' from incompatible pointer type 'int (*)(struct no_os_dma_desc **, const struct no_os_dma_init_param *)' [-Wincompatible-pointer-types]
  336 |  .dma_init = stm32_dma_init,
      |              ^~~~~~~~~~~~~~
/no-OS_agent/_work/1/s/projects/eval-adxl355-pmdz/build/app/Core/noos/drivers/platform/stm32/stm32_dma.c:336:14: note: (near initialization for 'stm32_dma_ops.dma_init')
make[1]: *** [../../tools/scripts/generic.mk:283: /no-OS_agent/_work/1/s/projects/eval-adxl355-pmdz/build/objs/eval-adxl355-pmdz/build/app/Core/noos/drivers/platform/stm32/stm32_dma.o]
CiprianRegus commented 1 month ago

Fixed in https://github.com/analogdevicesinc/no-OS/pull/2326