@@ -83,14 +83,14 @@ typedef enum
8383 } while(0)
8484
8585#define UNUSED (x ) ((void)(x))
86-
86+
8787/** @brief Reset the Handle's State field.
8888 * @param __HANDLE__: specifies the Peripheral Handle.
89- * @note This macro can be used for the following purpose:
89+ * @note This macro can be used for the following purpose:
9090 * - When the Handle is declared as local variable; before passing it as parameter
91- * to HAL_PPP_Init() for the first time, it is mandatory to use this macro
91+ * to HAL_PPP_Init() for the first time, it is mandatory to use this macro
9292 * to set to 0 the Handle's "State" field.
93- * Otherwise, "State" field may have any random value and the first time the function
93+ * Otherwise, "State" field may have any random value and the first time the function
9494 * HAL_PPP_Init() is called, the low level hardware initialization will be missed
9595 * (i.e. HAL_PPP_MspInit() will not be executed).
9696 * - When there is a need to reconfigure the low level hardware: instead of calling
@@ -123,7 +123,7 @@ typedef enum
123123 }while (0)
124124#endif /* USE_RTOS */
125125
126- #if defined ( __GNUC__ )
126+ #if defined ( __GNUC__ ) && !defined ( __CC_ARM ) /* GNU Compiler */
127127 #ifndef __weak
128128 #define __weak __attribute__((weak))
129129 #endif /* __weak */
@@ -134,7 +134,7 @@ typedef enum
134134
135135
136136/* Macro to get variable aligned on 4-bytes, for __ICCARM__ the directive "#pragma data_alignment=4" must be used instead */
137- #if defined ( __GNUC__ ) /* GNU Compiler */
137+ #if defined ( __GNUC__ ) && !defined ( __CC_ARM ) /* GNU Compiler */
138138 #ifndef __ALIGN_END
139139 #define __ALIGN_END __attribute__ ((aligned (4)))
140140 #endif /* __ALIGN_END */
@@ -186,14 +186,14 @@ typedef enum
186186
187187#endif
188188
189- /**
189+ /**
190190 * @brief __NOINLINE definition
191- */
191+ */
192192#if defined ( __CC_ARM ) || defined ( __GNUC__ )
193- /* ARM & GNUCompiler
194- ----------------
193+ /* ARM & GNUCompiler
194+ ----------------
195195*/
196- #define __NOINLINE __attribute__ ( (noinline) )
196+ #define __NOINLINE __attribute__ ( (noinline) )
197197
198198#elif defined ( __ICCARM__ )
199199/* ICCARM Compiler
0 commit comments