STM32_DMA1_CH4/5_CMASK redefined in L011 demo

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
dflogeras
Posts: 236
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 8 times
Been thanked: 22 times

STM32_DMA1_CH4/5_CMASK redefined in L011 demo

Post by dflogeras »

Doing a test compile on the demos/STM32/NIL-STM32L011K4-NUCLEO32 project, I get a load of

Code: Select all

../os/hal/ports/STM32/STM32L0xx/stm32_registry.h:103:9: note: this is the location of the previous definition
  103 | #define STM32_DMA1_CH5_CMASK                0x00000018U
      |         ^~~~~~~~~~~~~~~~~~~~
Compiling board.c
In file included from ../os/hal/ports/STM32/STM32L0xx/hal_lld.h:1232,
                 from ../os/hal/include/hal.h:263,
                 from ../os/hal/boards/ST_NUCLEO32_L011K4/board.c:22:
../os/hal/ports/STM32/STM32L0xx/stm32_isr.h:78:9: warning: 'STM32_DMA1_CH4_CMASK' redefined
   78 | #define STM32_DMA1_CH4_CMASK                0x00000078U
      |         ^~~~~~~~~~~~~~~~~~~~

Looks like it's defined to two different values as well. I'm using arm-none-eabi-gcc-16.2.1.
(edit) forgot to mention this is on ChibiOS_21.11.5.
Post Reply