@@ -88,19 +88,23 @@ extern "C"
8888#define __STATIC_INLINE static __inline
8989#define __ALIGNED (x ) __declspec(align(x))
9090#define __WEAK
91+ #define SECTION_NOINIT
9192#elif defined ( __APPLE_CC__ )
9293#include <stdint.h>
9394#define __ALIGNED (x ) __attribute__((aligned(x)))
9495#define __STATIC_FORCEINLINE static inline __attribute__((always_inline))
9596#define __STATIC_INLINE static inline
9697#define __WEAK
98+ #define SECTION_NOINIT
9799#elif defined (__GNUC_PYTHON__ )
98100#include <stdint.h>
99101#define __ALIGNED (x ) __attribute__((aligned(x)))
100102#define __STATIC_FORCEINLINE static inline __attribute__((always_inline))
101103#define __STATIC_INLINE static inline
102104#define __WEAK
105+ #define SECTION_NOINIT __attribute__((section(".noinit")))
103106#else
107+ #define SECTION_NOINIT
104108#include "cmsis_compiler.h"
105109#endif
106110
@@ -120,8 +124,9 @@ extern "C"
120124 *
121125 * ARM_MATH_NEON is used to enable the Neon variants.
122126 * When Neon variants are enabled, the DSP extension are disabled
127+ *
123128 */
124- #if !defined(__GNUC_PYTHON__ ) && !defined(ARM_MATH_NEON ) && !defined(ARM_MATH_NEON_EXPERIMENTAL )
129+ #if ( !defined(__GNUC_PYTHON__ ) && !defined(ARM_MATH_NEON ) && !defined(ARM_MATH_NEON_EXPERIMENTAL ))
125130#if (defined (__ARM_FEATURE_DSP ) && (__ARM_FEATURE_DSP == 1 ))
126131 #define ARM_MATH_DSP 1
127132#endif
@@ -438,7 +443,7 @@ extern "C"
438443
439444#endif
440445
441- #if defined(ARM_MATH_NEON ) || (defined(ARM_MATH_MVEF ) && !defined(ARM_MATH_AUTOVECTORIZE )) /* floating point vector*/
446+ #if defined(ARM_MATH_NEON ) || (defined(ARM_MATH_MVEF ) && !defined(ARM_MATH_AUTOVECTORIZE )) /* floating point vector*/
442447
443448 /**
444449 * @brief 32-bit floating-point 128-bit vector type
@@ -466,7 +471,7 @@ extern "C"
466471
467472#endif
468473
469- #if defined(ARM_MATH_NEON )
474+ #if defined(ARM_MATH_NEON )
470475 /**
471476 * @brief 32-bit fractional 64-bit vector data type in 1.31 format.
472477 */
0 commit comments