2018-08-11 04:58 AM
Hello there,
Here is my CubeMX version:
Here is my L4 libs version:
I have noticed some disturbing inconsistencies in the #ifdef include guards generated in the default peripherals code. So far all peripherals has guards like this:
#ifndef __STM32L4xx_HAL_FLASH_H
#define __STM32L4xx_HAL_FLASH_H
Now, only some peripherals has those. Some others use these:
#ifndef STM32L4xx_HAL_I2C_H
#define STM32L4xx_HAL_I2C_H
Why remove the "__" suffix in some libs? I only noticed those, because I was using those defines for something. Please confirm. @Imen DAHMEN ?
2018-08-13 03:54 AM
Hello @Community member ,
The double underscore (__) removed to apply MISRA-C 2012 compliance.
Noted that we are still setting the MISRA-C 2012 rules .
With Regards,
Imen
2018-08-13 04:08 AM
Ok, but why only for some files?