This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__weak and CLANG

In cmsis_armclang.h there is a macro

#ifndef   __WEAK
  #define __WEAK                                 __attribute__((weak))
#endif


That I guess is supposed to help migration...

However, for example for STM32F4, the Keil supplied DFP (and the ST supplied stuff as well) all use __weak (lowercase)...

Is it enough to add a #define __weak __WEAK in the cmsis_armclang.h for everything to just work as expected, or is there going to be an updated DFP that is using the __WEAK macro instead?