L4 cubeMx package ver 1.12 inconsistency
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-08-11 4: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​ ?
- Labels:
-
STM32Cube MCU Packages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-08-13 3: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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-08-13 4:08 AM
Ok, but why only for some files?
