From 2c9dc10f4520cd66ccaf2b6f0e0fc7ae6398cfc9 Mon Sep 17 00:00:00 2001 From: SMFSW Date: Fri, 9 Aug 2024 11:39:16 +0200 Subject: [PATCH] Doxygen documentation update --- html/_m_i_s_r_a.html | 22 +- html/_r_e_a_d_m_e_8md.html | 22 +- html/_release_notes_8md.html | 22 +- html/annotated.html | 22 +- html/arm__attributes_8h.html | 36 +- html/arm__attributes_8h_source.html | 382 -------- html/arm__chip__ino_8h.html | 30 +- html/arm__chip__ino_8h_source.html | 160 ---- html/arm__chip__pic_8h.html | 30 +- html/arm__chip__pic_8h_source.html | 161 ---- html/arm__chip__sam_8h.html | 30 +- html/arm__chip__sam_8h_source.html | 197 ---- html/arm__chip__stm32_8h.html | 44 +- html/arm__chip__stm32_8h_source.html | 207 ---- html/arm__cmsis_8h.html | 36 +- html/arm__cmsis_8h_source.html | 881 ------------------ html/arm__errors_8h.html | 26 +- html/arm__errors_8h_source.html | 182 ---- html/arm__hal__peripheral_8h.html | 26 +- html/arm__hal__peripheral_8h_source.html | 318 ------- html/arm__inlines_8h.html | 54 +- html/arm__inlines_8h_source.html | 184 ---- html/arm__inlines__angle_8h.html | 26 +- html/arm__inlines__angle_8h_source.html | 212 ----- html/arm__inlines__ascii_8h.html | 30 +- html/arm__inlines__ascii_8h_source.html | 235 ----- html/arm__inlines__average_8h.html | 46 +- html/arm__inlines__average_8h_source.html | 176 ---- html/arm__inlines__bcd_8h.html | 26 +- html/arm__inlines__bcd_8h_source.html | 168 ---- html/arm__inlines__binary_8h.html | 32 +- html/arm__inlines__binary_8h_source.html | 203 ---- html/arm__inlines__endian_8h.html | 36 +- html/arm__inlines__endian_8h_source.html | 225 ----- html/arm__inlines__float_8h.html | 38 +- html/arm__inlines__float_8h_source.html | 179 ---- html/arm__inlines__gray_8h.html | 26 +- html/arm__inlines__gray_8h_source.html | 138 --- html/arm__inlines__linearization_8h.html | 40 +- ...arm__inlines__linearization_8h_source.html | 179 ---- html/arm__inlines__rotation_8h.html | 28 +- html/arm__inlines__rotation_8h_source.html | 177 ---- html/arm__inlines__temperature_8h.html | 26 +- html/arm__inlines__temperature_8h_source.html | 168 ---- html/arm__inlines__ticks_8h.html | 30 +- html/arm__inlines__ticks_8h_source.html | 139 --- html/arm__inlines__var__size_8h.html | 44 +- html/arm__inlines__var__size_8h_source.html | 235 ----- html/arm__inlines__var__test_8h.html | 34 +- html/arm__inlines__var__test_8h_source.html | 136 --- html/arm__macros_8h.html | 382 ++++---- html/arm__macros_8h_source.html | 349 ------- html/arm__stdclib_8h.html | 46 +- html/arm__stdclib_8h_source.html | 128 --- html/arm__typedefs_8h.html | 26 +- html/arm__typedefs_8h_source.html | 824 ---------------- html/classes.html | 22 +- html/doxygen.css | 31 +- html/doxygen_crawl.html | 633 ++++++++++++- html/dynsections.js | 4 + html/files.html | 76 +- html/functions.html | 38 +- html/functions_vars.html | 38 +- html/globals.html | 22 +- html/globals_a.html | 22 +- html/globals_b.html | 22 +- html/globals_c.html | 22 +- html/globals_d.html | 22 +- html/globals_defs.html | 30 +- html/globals_e.html | 22 +- html/globals_enum.html | 22 +- html/globals_eval.html | 22 +- html/globals_f.html | 24 +- html/globals_func.html | 22 +- html/globals_g.html | 22 +- html/globals_h.html | 22 +- html/globals_i.html | 22 +- html/globals_k.html | 22 +- html/globals_l.html | 22 +- html/globals_m.html | 26 +- html/globals_n.html | 22 +- html/globals_o.html | 22 +- html/globals_p.html | 22 +- html/globals_r.html | 22 +- html/globals_s.html | 24 +- html/globals_t.html | 22 +- html/globals_type.html | 22 +- html/globals_u.html | 22 +- html/globals_v.html | 22 +- html/globals_w.html | 22 +- html/globals_x.html | 22 +- html/graph_legend.html | 22 +- html/index.html | 22 +- html/md__release_notes.html | 24 +- html/menu.js | 4 +- html/navtree.css | 149 +++ html/pages.html | 22 +- html/resize.js | 145 +++ html/sarmfsw_8h.html | 42 +- html/sarmfsw_8h_source.html | 147 --- html/search/all_1.js | 72 +- html/search/all_11.js | 137 +-- html/search/all_12.js | 9 +- html/search/all_15.js | 4 +- html/search/all_2.js | 28 +- html/search/all_3.js | 36 +- html/search/all_4.js | 4 +- html/search/all_6.js | 4 +- html/search/all_8.js | 3 +- html/search/all_b.js | 4 +- html/search/all_c.js | 8 +- html/search/defines_10.js | 2 +- html/search/defines_6.js | 4 +- html/search/defines_b.js | 8 +- html/search/pages_0.js | 8 +- html/search/pages_2.js | 4 +- html/search/pages_4.js | 3 +- html/search/pages_a.js | 13 +- html/search/pages_b.js | 3 +- html/search/variables_1.js | 24 +- html/structs_bitfield16.html | 26 +- html/structs_bitfield16__i.html | 26 +- html/structs_bitfield32.html | 26 +- html/structs_bitfield32__i.html | 26 +- html/structs_bitfield64.html | 26 +- html/structs_bitfield64__i.html | 26 +- html/structs_bitfield8.html | 26 +- html/structs_bitfield8__i.html | 26 +- html/structs_coord2_d.html | 26 +- html/structs_int_frac.html | 26 +- html/structs_linear_flex_array.html | 26 +- html/unionu_byte.html | 26 +- html/unionu_byte__i.html | 26 +- html/unionu_d_word.html | 26 +- html/unionu_d_word__i.html | 26 +- html/unionu_l_word.html | 26 +- html/unionu_l_word__i.html | 26 +- html/unionu_word.html | 26 +- html/unionu_word__i.html | 26 +- 139 files changed, 3078 insertions(+), 7704 deletions(-) delete mode 100644 html/arm__attributes_8h_source.html delete mode 100644 html/arm__chip__ino_8h_source.html delete mode 100644 html/arm__chip__pic_8h_source.html delete mode 100644 html/arm__chip__sam_8h_source.html delete mode 100644 html/arm__chip__stm32_8h_source.html delete mode 100644 html/arm__cmsis_8h_source.html delete mode 100644 html/arm__errors_8h_source.html delete mode 100644 html/arm__hal__peripheral_8h_source.html delete mode 100644 html/arm__inlines_8h_source.html delete mode 100644 html/arm__inlines__angle_8h_source.html delete mode 100644 html/arm__inlines__ascii_8h_source.html delete mode 100644 html/arm__inlines__average_8h_source.html delete mode 100644 html/arm__inlines__bcd_8h_source.html delete mode 100644 html/arm__inlines__binary_8h_source.html delete mode 100644 html/arm__inlines__endian_8h_source.html delete mode 100644 html/arm__inlines__float_8h_source.html delete mode 100644 html/arm__inlines__gray_8h_source.html delete mode 100644 html/arm__inlines__linearization_8h_source.html delete mode 100644 html/arm__inlines__rotation_8h_source.html delete mode 100644 html/arm__inlines__temperature_8h_source.html delete mode 100644 html/arm__inlines__ticks_8h_source.html delete mode 100644 html/arm__inlines__var__size_8h_source.html delete mode 100644 html/arm__inlines__var__test_8h_source.html delete mode 100644 html/arm__macros_8h_source.html delete mode 100644 html/arm__stdclib_8h_source.html delete mode 100644 html/arm__typedefs_8h_source.html create mode 100644 html/navtree.css create mode 100644 html/resize.js delete mode 100644 html/sarmfsw_8h_source.html diff --git a/html/_m_i_s_r_a.html b/html/_m_i_s_r_a.html index 40af345..39eff60 100644 --- a/html/_m_i_s_r_a.html +++ b/html/_m_i_s_r_a.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): MISRA C:2012 Deviations List + + @@ -32,23 +34,33 @@ - + + +
+
MISRA C:2012 Deviations List
@@ -203,7 +216,8 @@
+
diff --git a/html/_r_e_a_d_m_e_8md.html b/html/_r_e_a_d_m_e_8md.html index f54fb72..3b60182 100644 --- a/html/_r_e_a_d_m_e_8md.html +++ b/html/_r_e_a_d_m_e_8md.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): README.md File Reference + + @@ -32,23 +34,33 @@ - + + +
+
README.md File Reference
@@ -78,7 +91,8 @@
+ diff --git a/html/_release_notes_8md.html b/html/_release_notes_8md.html index fcc5144..7124a31 100644 --- a/html/_release_notes_8md.html +++ b/html/_release_notes_8md.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): ReleaseNotes.md File Reference + + @@ -32,23 +34,33 @@ - + + +
+
ReleaseNotes.md File Reference
@@ -78,7 +91,8 @@
+ diff --git a/html/annotated.html b/html/annotated.html index 694e13c..6610576 100644 --- a/html/annotated.html +++ b/html/annotated.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Data Structures + + @@ -32,24 +34,35 @@ - + + +
+
+
diff --git a/html/arm__attributes_8h.html b/html/arm__attributes_8h.html index 96dae60..20d0d67 100644 --- a/html/arm__attributes_8h.html +++ b/html/arm__attributes_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_attributes.h File Reference + + @@ -32,23 +34,33 @@
- + + +
+
@@ -90,9 +103,7 @@
-
-

Go to the source code of this file.

- +
@@ -348,7 +359,7 @@

#define ALIGN__

- +

Macros

#define __WEAK   __attribute__((weak))
( n) n)    __attribute__((align(n)))
@@ -367,7 +378,7 @@

#define ATTR__ ( - ...) + ...)    __attribute__((__VA_ARGS__)) @@ -514,7 +525,7 @@

#define NONNULLX__ ( - ...) + ...)    __attribute__((nonnull(__VA_ARGS__))) @@ -581,7 +592,7 @@

#define SECTION__ ( - s) + s)    __attribute__((section(#s))) @@ -600,7 +611,7 @@

#define SSO ( - o) + o)    scalar_storage_order(#o) @@ -629,7 +640,8 @@

+ diff --git a/html/arm__attributes_8h_source.html b/html/arm__attributes_8h_source.html deleted file mode 100644 index 3256c97..0000000 --- a/html/arm__attributes_8h_source.html +++ /dev/null @@ -1,382 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_attributes.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_attributes.h
-
-
-Go to the documentation of this file.
1
-
14// cppcheck-suppress-begin [misra-c2012-20.5, misra-c2012-20.10]
-
15// cppcheck-suppress-begin [misra-c2012-21.1]
-
16/****************************************************************/
-
17#ifndef ARM_ATTRIBUTES_H_
-
18 #define ARM_ATTRIBUTES_H_
-
19
-
20#ifdef __cplusplus
-
21 extern "C" {
-
22#endif
-
23/****************************************************************/
-
24
-
25
-
26#if defined (__CC_ARM)
-
27 /*** ARM REAL VIEW ***/
-
28 // Declared as qualifier
-
29 #define __WEAK __weak
-
30 #define __IRQ __irq
-
31 // Declared as attribute
-
32 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
33
-
34 #define ALIGN__(n) __attribute__((align(n)))
-
35 #define COLD__
-
36 #define DEPRECATED__ __attribute__((deprecated))
-
37 #define HOT__
-
38 #define INLINE__ __attribute__((always_inline))
-
39 #define NONNULL__
-
40 #define NONNULLX__(...)
-
41 #define NORETURN__ __attribute__((noreturn))
-
42 #define PACK__ __attribute__((packed))
-
43 #define PURE__ __attribute__((pure))
-
44 #define SECTION__(s) __attribute__((section(#s)))
-
45 #define USED__ __attribute__((used))
-
46 // Common mixed attributes
-
47 #define NONNULL_INLINE__ ATTR__(nonnull, always_inline)
-
48
-
49 #if (!defined(__OPTIMIZE__))
-
50 #define __NOOPT__
-
51 #endif
-
52
-
53#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
-
54 /*** ARM COMPILER TOOLCHAIN ***/
-
55 // Declared as qualifier
-
56 #define __WEAK __weak
-
57 #define __IRQ __irq
-
58 // Declared as attribute
-
59 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
60
-
61 #define ALIGN__(n) __attribute__((align(n)))
-
62 #define COLD__
-
63 #define DEPRECATED__ __attribute__((deprecated))
-
64 #define HOT__
-
65 #define INLINE__ __attribute__((always_inline))
-
66 #define NONNULL__ __attribute__((nonnull))
-
67 #define NONNULLX__(...) __attribute__((nonnull(__VA_ARGS__)))
-
68 #define NORETURN__ __attribute__((noreturn))
-
69 #define PACK__ __attribute__((packed))
-
70 #define PURE__ __attribute__((pure))
-
71 #define SECTION__(s) __attribute__((section(#s)))
-
72 #define USED__ __attribute__((used))
-
73 // Common mixed attributes
-
74 #define NONNULL_INLINE__ ATTR__(nonnull, always_inline)
-
75
-
76 #if (!defined(__OPTIMIZE__))
-
77 #define __NOOPT__
-
78 #endif
-
79
-
80#elif defined (__XC__) // Defined prior to __GNUC__ as also defined for some __XC__ compilers
-
81 /*** Microchip XC ***/
-
82 // Declared as qualifier
-
83 #define __WEAK __attribute__((weak))
-
84 #define __IRQ __attribute__((interrupt))
-
85 // Declared as attribute
-
86 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
87
-
88 #define ALIGN__(n) __attribute__((aligned (n)))
-
89 #define COLD__
-
90 #define DEPRECATED__ __attribute__((deprecated))
-
91 #define HOT__
-
92 #define INLINE__ __attribute__((always_inline))
-
93 #define NONNULL__
-
94 #define NONNULLX__(...)
-
95 #define NORETURN__
-
96 #define PACK__ __attribute__((packed))
-
97 #define PURE__
-
98 #define SECTION__(s) __attribute__((section(#s)))
-
99 #define USED__
-
100 // Common mixed attributes
-
101 #define NONNULL_INLINE__ __attribute__((always_inline))
-
102
-
103 #if (!defined(__OPTIMIZE__))
-
104 #define __NOOPT__
-
105 #endif
-
106
-
107#elif defined (__GNUC__)
-
108 /*** GCC ***/
-
109 // Declared as qualifier
-
110 #define __WEAK __attribute__((weak))
-
111 #define __IRQ __attribute__((interrupt_handler))
-
112 // Declared as attribute
-
113 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
114
-
115 #define ALIGN__(n) __attribute__((align(n)))
-
116 #define COLD__ __attribute__((cold))
-
117 #define DEPRECATED__ __attribute__((deprecated))
-
118 #define HOT__ __attribute__((hot))
-
119 #define INLINE__ __attribute__((always_inline))
-
120 #define NONNULL__ __attribute__((nonnull))
-
121 #define NONNULLX__(...) __attribute__((nonnull(__VA_ARGS__)))
-
122 #define NORETURN__ __attribute__((__noreturn__))
-
123 #define PACK__ __attribute__((packed))
-
124 #define PURE__ __attribute__((pure))
-
125 #define SECTION__(s) __attribute__((section(#s)))
-
126 #define USED__ __attribute__((used))
-
127 // Common mixed attributes
-
128 #define NONNULL_INLINE__ ATTR__(nonnull, always_inline)
-
129
-
130 // Only supported starting GCC 6 (WARNING: here mostly for reference and specific cases, not defined for other compilers)
-
131 #define SSO(o) scalar_storage_order(#o)
-
132 #define BIG_ENDIAN__ ATTR__(packed, SSO(big-endian))
-
133 #define LITTLE_ENDIAN__ ATTR__(packed, SSO(little-endian))
-
134
-
135 #if (!defined(__OPTIMIZE__))
-
136 #define __NOOPT__
-
137 #endif
-
138
-
139#elif defined (__ICCARM__)
-
140 // FIXME: most likely will not work, check cmsis_iccarm.h to fix attributes
-
141 /*** IAR ***/
-
142 // Declared as qualifier
-
143 #define __WEAK __weak
-
144 #define __IRQ __irq
-
145 // Declared as attribute
-
146 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
147
-
148 #define ALIGN__(n) __attribute__((align(n)))
-
149 #define COLD__
-
150 #define DEPRECATED__
-
151 #define HOT__
-
152 #define INLINE__
-
153 #define NONNULL__
-
154 #define NONNULLX__(...)
-
155 #define NORETURN__ __noreturn
-
156 #define PACK__ __packed
-
157 #define PURE__
-
158 #define SECTION__(s)
-
159 #define USED__
-
160 // Common mixed attributes
-
161 #define NONNULL_INLINE__
-
162
-
163 //#define __NOOPT__ //!< No Optimizations attribute not identified on IAR toolchain
-
164
-
165#elif defined (__TI_ARM__)
-
166 /*** TEXAS INSTRUMENTS ***/
-
167 // Declared as qualifier
-
168 #define __WEAK __attribute__((weak))
-
169 #define __IRQ __interrupt
-
170 // Declared as attribute
-
171 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
172
-
173 #define ALIGN__(n)
-
174 #define COLD__
-
175 #define DEPRECATED__ __attribute__((deprecated))
-
176 #define HOT__
-
177 #define INLINE__
-
178 #define NONNULL__
-
179 #define NONNULLX__(...)
-
180 #define NORETURN__ __attribute__((noreturn))
-
181 #define PACK__ __attribute__((packed))
-
182 #define PURE__ __attribute__((pure))
-
183 #define SECTION__(s) __attribute__((section(#s)))
-
184 #define USED__ __attribute__((used))
-
185 // Common mixed attributes
-
186 #define NONNULL_INLINE__
-
187
-
188 #if (!defined(__OPTIMIZE__))
-
189 #define __NOOPT__
-
190 #define __STATIC_FORCEINLINE static inline
-
191 #endif
-
192
-
193#elif defined (__TASKING__)
-
194 /*** TASKING ***/
-
195 // Declared as qualifier
-
196 #define __WEAK __attribute__((weak))
-
197 #define __IRQ __interrupt_irq
-
198 // Declared as attribute
-
199 #define ATTR__(...) __attribute__((__VA_ARGS__))
-
200
-
201 #define ALIGN__(n) __align(n)
-
202 #define COLD__
-
203 #define DEPRECATED__
-
204 #define HOT__
-
205 #define INLINE__ __attribute__((always_inline))
-
206 #define NONNULL__
-
207 #define NONNULLX__(...)
-
208 #define NORETURN__ __attribute__((noreturn))
-
209 #define PACK__ __packed__
-
210 #define PURE__ __attribute__((pure))
-
211 #define SECTION__(s) __attribute__((section(#s)))
-
212 #define USED__ __attribute__((used))
-
213 // Common mixed attributes
-
214 #define NONNULL_INLINE__ __attribute__((always_inline))
-
215
-
216 #if (!defined(__OPTIMIZE__))
-
217 #define __NOOPT__
-
218 #define __STATIC_FORCEINLINE static inline
-
219 #endif
-
220
-
221#elif defined (__CSMC__)
-
222 /*** GCC ***/
-
223 // Declared as qualifier
-
224 #define __WEAK __weak
-
225 #define __IRQ @interrupt
-
226 // Declared as attribute
-
227 #define ATTR__(...)
-
228
-
229 #define ALIGN__(n)
-
230 #define COLD__
-
231 #define DEPRECATED__
-
232 #define HOT__
-
233 #define INLINE__
-
234 #define NONNULL__
-
235 #define NONNULLX__(...)
-
236 #define NORETURN__
-
237 #define PACK__ @packed
-
238 #define PURE__
-
239 #define SECTION__(s)
-
240 #define USED__
-
241 // Common mixed attributes
-
242 #define NONNULL_INLINE__
-
243
-
244 #if (!defined(__OPTIMIZE__))
-
245 #define __NOOPT__
-
246 #define __STATIC_FORCEINLINE static inline
-
247 #endif
-
248
-
249#else
-
250 #error Unknown compiler. Attributes will not be recognized.
-
251#endif
-
252
-
253/*** C extensions keywords ***/
-
254#ifndef __TYPEOF
-
255#define __TYPEOF __typeof__
-
256#endif
-
257
-
258#ifndef __ASM
-
259#define __ASM __asm__
-
260#endif
-
261
-
262
-
263/*** C standard keywords ***/
-
264#ifdef __STATIC
-
265#undef __STATIC
-
266#endif
-
267#if defined(NO_STATIC_FUNC) || defined(UNITY_TESTING)
-
268#define __STATIC
-
269#else
-
270#define __STATIC static
-
271#endif
-
272
-
273
-
274#ifdef __INLINE
-
275#undef __INLINE
-
276#endif
-
278#define __INLINE static inline
-
279
-
280#ifndef __STATIC_INLINE
-
281#define __STATIC_INLINE static inline
-
282#endif
-
283
-
284/*** INLINES WORKAROUND WHEN OPTIMIZATION LEVEL SET TO NONE (GCC like toolchains) ***/
-
285#if defined(__NOOPT__)
-
286#undef __INLINE
-
287#undef __STATIC_INLINE
-
288
-
289#ifdef __STATIC_FORCEINLINE
-
290#define __INLINE __STATIC_FORCEINLINE
-
291#define __STATIC_INLINE __STATIC_FORCEINLINE
-
292#else
-
293#define __INLINE __attribute__((always_inline)) static inline
-
294#define __STATIC_INLINE __attribute__((always_inline)) static inline
-
295#endif
-
296#endif
-
297
-
298/****************************************************************/
-
299#ifdef __cplusplus
-
300 }
-
301#endif
-
302
-
303#endif /* ARM_ATTRIBUTES_H_ */
-
304// cppcheck-suppress-end [misra-c2012-20.5, misra-c2012-20.10]
-
305// cppcheck-suppress-end [misra-c2012-21.1]
-
306/****************************************************************/
-
- - - - diff --git a/html/arm__chip__ino_8h.html b/html/arm__chip__ino_8h.html index b07c11a..0e742f5 100644 --- a/html/arm__chip__ino_8h.html +++ b/html/arm__chip__ino_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_ino.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -96,9 +109,7 @@
-
-

Go to the source code of this file.

- +
@@ -148,7 +159,7 @@

#define diInterrupts

- +

Macros

#define diInterrupts()   noInterrupts()
())    noInterrupts()
@@ -167,7 +178,7 @@

#define enInterrupts ( - ) + )    interrupts() @@ -268,7 +279,8 @@

+

diff --git a/html/arm__chip__ino_8h_source.html b/html/arm__chip__ino_8h_source.html deleted file mode 100644 index ed09e99..0000000 --- a/html/arm__chip__ino_8h_source.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_ino.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_chip_ino.h
-
-
-Go to the documentation of this file.
1
-
9/****************************************************************/
-
10#ifndef ARM_CHIP_INO_H_
-
11 #define ARM_CHIP_INO_H_
-
12
-
13#ifdef __cplusplus
-
14 extern "C" {
-
15#endif
-
16/****************************************************************/
-
17#if ARDUINO > 22
-
18#include "Arduino.h" // Common Arduino definitions
-
19#else
-
20#include "WProgram.h" // Common Arduino definitions
-
21#endif
-
22#include "pins_arduino.h" // Arduino pins definitions for current board
-
23/****************************************************************/
-
24
-
25
-
26/*** Define Enable/Disable interrupts macros ***/
-
27#undef diInterrupts // cppcheck-suppress misra-c2012-20.5
-
28#undef enInterrupts // cppcheck-suppress misra-c2012-20.5
-
29#define diInterrupts() noInterrupts()
-
30#define enInterrupts() interrupts()
-
31
-
32/*** MS Time base ***/
-
33#ifndef HAL_MAX_TICKS
-
35#define HAL_MAX_TICKS ((DWORD) -1)
-
36#endif
-
37#ifndef HAL_MS_TICKS_FACTOR
-
39#define HAL_MS_TICKS_FACTOR 1
-
40#endif
-
41
-
42#ifndef HALTicks
-
43#define HALTicks millis
-
44#endif
-
45
-
46
-
-
50typedef enum eResetSource {
-
51 RST_POR = 1,
-
52 RST_UNKNOWN = 0xFF
- -
-
54
-
55
-
60static inline eResetSource HAL_ResetSource(void) {
-
61 return RST_UNKNOWN; }
-
62
-
63
-
68static inline FctERR HALERRtoFCTERR(const SDWORD status)
-
69{
-
70 if (status == 0) return ERROR_OK;
-
71 else return ERROR_COMMON;
-
72}
-
73
-
74
-
75/****************************************************************/
-
76#ifdef __cplusplus
-
77 }
-
78#endif
-
79
-
80#endif /* ARM_CHIP_INO_H_ */
-
81/****************************************************************/
-
eResetSource
Source of last reset.
Definition arm_chip_ino.h:50
-
@ RST_UNKNOWN
Unknown Reset Source.
Definition arm_chip_ino.h:52
-
@ RST_POR
Power On Reset.
Definition arm_chip_ino.h:51
-
#define HAL_ResetSource()
Get STM32 Reset Source.
Definition arm_chip_stm32.h:97
-
FctERR
Enum of low/mid level functions return state.
Definition arm_errors.h:19
-
@ ERROR_COMMON
Common error of a device.
Definition arm_errors.h:46
-
@ ERROR_OK
OK.
Definition arm_errors.h:20
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
- - - - diff --git a/html/arm__chip__pic_8h.html b/html/arm__chip__pic_8h.html index 42dae89..27d160b 100644 --- a/html/arm__chip__pic_8h.html +++ b/html/arm__chip__pic_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_pic.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -93,9 +106,7 @@
-
-

Go to the source code of this file.

- +
@@ -146,7 +157,7 @@

#define diInterrupts

- +

Macros

#define diInterrupts()   __builtin_disable_interrupts()
())    __builtin_disable_interrupts()
@@ -165,7 +176,7 @@

#define enInterrupts ( - ) + )    __builtin_enable_interrupts() @@ -250,7 +261,8 @@

+

diff --git a/html/arm__chip__pic_8h_source.html b/html/arm__chip__pic_8h_source.html deleted file mode 100644 index 75853e1..0000000 --- a/html/arm__chip__pic_8h_source.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_pic.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_chip_pic.h
-
-
-Go to the documentation of this file.
1
-
19/****************************************************************/
-
20#ifndef ARM_CHIP_PIC_H_
-
21 #define ARM_CHIP_PIC_H_
-
22
-
23#ifdef __cplusplus
-
24 extern "C" {
-
25#endif
-
26/****************************************************************/
-
27#include "xc.h" // Microchip common & MCU dependent definitions
-
28/****************************************************************/
-
29
-
30
-
31/*** Define Enable/Disable interrupts macros ***/
-
32#undef diInterrupts // cppcheck-suppress misra-c2012-20.5
-
33#undef enInterrupts // cppcheck-suppress misra-c2012-20.5
-
34#if defined(__XC8)
-
35 #define diInterrupts() di()
-
36 #define enInterrupts() en()
-
37#else // builtins should be defined for __XC16 & __XC32
-
38 #define diInterrupts() __builtin_disable_interrupts()
-
39 #define enInterrupts() __builtin_enable_interrupts()
-
40#endif
-
41
-
42
-
43/*** MS Time base ***/
-
44#ifndef HAL_MAX_TICKS
-
46#define HAL_MAX_TICKS ((uint32_t) -1)
-
47#endif
-
48#ifndef HAL_MS_TICKS_FACTOR
-
50#define HAL_MS_TICKS_FACTOR 1
-
51#endif
-
52
-
53#ifndef HALTicks
-
54// Use common definition of HALTicks in arm_cmsis.h
-
55#endif
-
56
-
-
60typedef enum eResetSource {
-
61 RST_POR = 1,
-
62 RST_UNKNOWN = 0xFF
- -
-
64
-
65
-
70static inline eResetSource HAL_ResetSource(void) {
-
71 return RST_UNKNOWN; }
-
72
-
73
-
78static inline FctERR HALERRtoFCTERR(const SDWORD status)
-
79{
-
80 if (status == 0) return ERROR_OK;
-
81 else return ERROR_COMMON;
-
82}
-
83
-
84
-
85/****************************************************************/
-
86#ifdef __cplusplus
-
87 }
-
88#endif
-
89
-
90#endif /* ARM_CHIP_PIC_H_ */
-
91/****************************************************************/
-
eResetSource
Source of last reset.
Definition arm_chip_ino.h:50
-
eResetSource
Source of last reset.
Definition arm_chip_pic.h:60
-
@ RST_UNKNOWN
Unknown Reset Source.
Definition arm_chip_pic.h:62
-
@ RST_POR
Power On Reset.
Definition arm_chip_pic.h:61
-
#define HAL_ResetSource()
Get STM32 Reset Source.
Definition arm_chip_stm32.h:97
-
FctERR
Enum of low/mid level functions return state.
Definition arm_errors.h:19
-
@ ERROR_COMMON
Common error of a device.
Definition arm_errors.h:46
-
@ ERROR_OK
OK.
Definition arm_errors.h:20
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
- - - - diff --git a/html/arm__chip__sam_8h.html b/html/arm__chip__sam_8h.html index d9eca70..55d3928 100644 --- a/html/arm__chip__sam_8h.html +++ b/html/arm__chip__sam_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_sam.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -102,9 +115,7 @@
-
-

Go to the source code of this file.

- +
@@ -249,7 +260,7 @@

#define SAM_CONF_HEADER

- +

Macros

#define SAM_HEADER(f)   XCAT(<hri_, f).h>
( f) f)    <sam.h>
@@ -268,7 +279,7 @@

#define SAM_HEADER ( - f) + f)    XCAT(<hri_, f).h> @@ -328,7 +339,8 @@

+

diff --git a/html/arm__chip__sam_8h_source.html b/html/arm__chip__sam_8h_source.html deleted file mode 100644 index 72ee069..0000000 --- a/html/arm__chip__sam_8h_source.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_sam.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_chip_sam.h
-
-
-Go to the documentation of this file.
1
-
35/****************************************************************/
-
36#ifndef ARM_CHIP_SAM_H_
-
37 #define ARM_CHIP_SAM_H_
-
38
-
39#ifdef __cplusplus
-
40 extern "C" {
-
41#endif
-
42/****************************************************************/
-
43#include "atmel_start_pins.h" // Project pins definitions
-
44#include "err_codes.h" // Atmel error codes
-
45#include "hpl_reset.h" // Atmel reset sources
-
46/****************************************************************/
-
47
-
48
-
49#define SAM_HEADER(f) XCAT(<hri_, f).h>
-
50#define SAM_CONF_HEADER(f) <sam.h>
-
51
-
52#define ARM_CMSIS_INC SAM_HEADER(SAM_FAMILY)
-
53#define ARM_HAL_CFG SAM_CONF_HEADER(SAM_FAMILY)
-
54
-
55
-
56/*** Flash size ***/
-
57// FLASH_SIZE (in bytes) is already defined in controller header, thus not requiring to define it here
-
58
-
59/*** MS Time base ***/
-
60#ifndef HAL_MAX_TICKS
-
62#define HAL_MAX_TICKS ((uint32_t) -1)
-
63#endif
-
64#ifndef HAL_MS_TICKS_FACTOR
-
66#define HAL_MS_TICKS_FACTOR 1
-
67#endif
-
68
-
69#ifndef HALTicks
-
70// Use common definition of HALTicks in arm_cmsis.h
-
71#endif
-
72
-
73
-
-
77typedef enum eResetSource {
-
78 RST_POR = RESET_REASON_POR,
-
79 RST_BODCORE = RESET_REASON_BODCORE,
-
80 RST_BODVDD = RESET_REASON_BODVDD,
-
81 RST_EXT = RESET_REASON_EXT,
-
82 RST_WDT = RESET_REASON_WDT,
-
83 RST_SYST = RESET_REASON_SYST,
-
84 RST_UNKNOWN = 0xFF
- -
-
86
-
87
-
88/*** GLOBAL CMSIS & HAL includes ***/
-
89#include ARM_CMSIS_INC // CMSIS includes
-
90// #include ARM_HAL_CFG // HAL configuration includes (already included by ARM_CMSIS_INC)
-
91
-
92
-
97static inline eResetSource HAL_ResetSource(void) {
-
98 return (eResetSource) _get_reset_reason(); }
-
99
-
100
-
105static inline FctERR HALERRtoFCTERR(const SDWORD status)
-
106{
-
107 if (status == ERR_NONE) return ERROR_OK;
-
108 else if (status == ERR_INVALID_DATA) return ERROR_VALUE;
-
109 else if ((status == ERR_BUSY) || (status == ERR_NOT_READY)) return ERROR_BUSY;
-
110 else if (status == ERR_TIMEOUT) return ERROR_TIMEOUT;
-
111 else if (status == ERR_NO_MEMORY) return ERROR_MEMORY;
-
112 else if (status == ERR_BAD_FRQ) return ERROR_SPEED;
-
113 else if (status == ERR_DENIED) return ERROR_PROTECT;
-
114 else if (status == ERR_OVERFLOW) return ERROR_OVERFLOW;
-
115 else if (status == ERR_NOT_INITIALIZED) return ERROR_NOTAVAIL;
-
116 else if (status == ERR_PACKET_COLLISION) return ERROR_ARBITR;
-
117 else if (status == ERR_UNSUPPORTED_OP) return ERROR_CMD;
-
118 else return ERROR_COMMON;
-
119}
-
120
-
121
-
122/****************************************************************/
-
123#ifdef __cplusplus
-
124 }
-
125#endif
-
126
-
127#endif /* ARM_CHIP_SAM_H_ */
-
128/****************************************************************/
-
eResetSource
Source of last reset.
Definition arm_chip_ino.h:50
-
eResetSource
Source of last reset.
Definition arm_chip_sam.h:77
-
@ RST_WDT
Watchdog Reset.
Definition arm_chip_sam.h:82
-
@ RST_UNKNOWN
Unknown Reset Source.
Definition arm_chip_sam.h:84
-
@ RST_EXT
Pin Reset (External Reset)
Definition arm_chip_sam.h:81
-
@ RST_SYST
Software Reset.
Definition arm_chip_sam.h:83
-
@ RST_BODVDD
Definition arm_chip_sam.h:80
-
@ RST_POR
Power On Reset.
Definition arm_chip_sam.h:78
-
@ RST_BODCORE
Brown Out Reset.
Definition arm_chip_sam.h:79
-
#define HAL_ResetSource()
Get STM32 Reset Source.
Definition arm_chip_stm32.h:97
-
FctERR
Enum of low/mid level functions return state.
Definition arm_errors.h:19
-
@ ERROR_CMD
Command error is detected.
Definition arm_errors.h:50
-
@ ERROR_BUSY
Device is busy.
Definition arm_errors.h:29
-
@ ERROR_TIMEOUT
Abort on timeout error.
Definition arm_errors.h:23
-
@ ERROR_PROTECT
Protection error is detected.
Definition arm_errors.h:43
-
@ ERROR_NOTAVAIL
Requested value or method not available.
Definition arm_errors.h:30
-
@ ERROR_MEMORY
Memory error.
Definition arm_errors.h:52
-
@ ERROR_OVERFLOW
Overflow.
Definition arm_errors.h:25
-
@ ERROR_COMMON
Common error of a device.
Definition arm_errors.h:46
-
@ ERROR_ARBITR
A node lost arbitration. This error occurs if two nodes start transmission at the same time.
Definition arm_errors.h:42
-
@ ERROR_OK
OK.
Definition arm_errors.h:20
-
@ ERROR_VALUE
Parameter of incorrect value.
Definition arm_errors.h:24
-
@ ERROR_SPEED
This device does not work in the active speed mode.
Definition arm_errors.h:21
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
- - - - diff --git a/html/arm__chip__stm32_8h.html b/html/arm__chip__stm32_8h.html index 2b3055c..65b7b2c 100644 --- a/html/arm__chip__stm32_8h.html +++ b/html/arm__chip__stm32_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_stm32.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -96,9 +109,7 @@
-
-

Go to the source code of this file.

- +
@@ -241,7 +252,7 @@

#define GPIO

- +

Macros

#define STM_HEADER(f)   XCAT(<stm32, XCAT(f, xx.h>))
( mnem) mnem)    stm_port(mnem), stm_pin(mnem)
@@ -294,7 +305,7 @@

#define HAL_ResetSource ( - void) + void)    Get_Reset_Source() @@ -364,7 +375,7 @@

#define stm_channel ( - mnem) + mnem)    XCAT(mnem, _Chan) @@ -382,7 +393,7 @@

#define STM_CONF_HEADER ( - f) + f)    XCAT(<stm32, XCAT(f, xx_hal.h>)) @@ -401,7 +412,7 @@

#define STM_HEADER ( - f) + f)    XCAT(<stm32, XCAT(f, xx.h>)) @@ -420,7 +431,7 @@

#define stm_pin ( - mnem) + mnem)    XCAT(mnem, _Pin) @@ -439,7 +450,7 @@

#define stm_port ( - mnem) + mnem)    XCAT(mnem, _GPIO_Port) @@ -458,7 +469,7 @@

#define stm_timer ( - mnem) + mnem)    XCAT(mnem, _Tim) @@ -476,7 +487,7 @@

#define TIM ( - mnem) + mnem)    stm_timer(mnem), stm_channel(mnem) @@ -546,7 +557,8 @@

+

diff --git a/html/arm__chip__stm32_8h_source.html b/html/arm__chip__stm32_8h_source.html deleted file mode 100644 index ece3c96..0000000 --- a/html/arm__chip__stm32_8h_source.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_chip_stm32.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_chip_stm32.h
-
-
-Go to the documentation of this file.
1
-
7/****************************************************************/
-
8#ifndef ARM_CHIP_STM32_H_
-
9 #define ARM_CHIP_STM32_H_
-
10
-
11#ifdef __cplusplus
-
12 extern "C" {
-
13#endif
-
14/****************************************************************/
-
15#include "main.h" // Project pins & constants definitions
-
16/****************************************************************/
-
17
-
18
-
19#define STM_HEADER(f) XCAT(<stm32, XCAT(f, xx.h>))
-
20#define STM_CONF_HEADER(f) XCAT(<stm32, XCAT(f, xx_hal.h>))
-
21
-
22#define ARM_CMSIS_INC STM_HEADER(STM_FAMILY)
-
23#define ARM_HAL_CFG STM_CONF_HEADER(STM_FAMILY)
-
24
-
25
-
26/*** GPIO pin name wrapper (from CubeMX pin names) ***/
-
27#define stm_port(mnem) XCAT(mnem, _GPIO_Port)
-
28#define stm_pin(mnem) XCAT(mnem, _Pin)
-
29#define GPIO(mnem) stm_port(mnem), stm_pin(mnem)
-
30
-
31
-
32/*** TIM Channel name wrapper ***/
-
34#define stm_timer(mnem) XCAT(mnem, _Tim)
-
36#define stm_channel(mnem) XCAT(mnem, _Chan)
-
38#define TIM(mnem) stm_timer(mnem), stm_channel(mnem)
-
39
-
40
-
41/*** STM32 Special Registers ***/
-
42#define STM32_OPTION_BYTES (VAL_AT(OB_BASE, uint64_t))
-
43#define STM32_FLASHSIZE (VAL_AT(FLASHSIZE_BASE, uint16_t))
-
44#define STM32_UNIQUE_ID (VAL_AT(FLASHSIZE_UID, uint32_t))
-
45
-
46
-
47/*** Flash size ***/
-
49#ifndef FLASH_SIZE
-
50#define FLASH_SIZE (STM32_FLASHSIZE * 1024)
-
51#endif
-
52
-
53
-
54/*** MS Time base ***/
-
55#ifndef HAL_MAX_TICKS
-
57#define HAL_MAX_TICKS ((uint32_t) -1)
-
58#endif
-
59#ifndef HAL_MS_TICKS_FACTOR
-
61#define HAL_MS_TICKS_FACTOR 1
-
62#endif
-
63
-
64#ifndef HALTicks
-
65// Use common definition of HALTicks in arm_cmsis.h
-
66#endif
-
67
-
68
- -
85
-
86
-
87/*** GLOBAL CMSIS & HAL includes ***/
-
88#include ARM_CMSIS_INC // CMSIS includes
-
89// #include ARM_HAL_CFG // HAL configuration includes (already included by ARM_CMSIS_INC)
-
90
-
91
-
97#define HAL_ResetSource() Get_Reset_Source()
-
98
-
99
-
104static inline FctERR HALERRtoFCTERR(const HAL_StatusTypeDef status)
-
105{
-
106 if (status == HAL_OK) return ERROR_OK;
-
107 else if (status == HAL_ERROR) return ERROR_FAULT;
-
108 else if (status == HAL_BUSY) return ERROR_BUSY;
-
109 else if (status == HAL_TIMEOUT) return ERROR_TIMEOUT;
-
110 else return ERROR_COMMON;
-
111}
-
112
-
113
-
114/****************************************************************/
-
115#ifdef __cplusplus
-
116 }
-
117#endif
-
118
-
119#endif /* ARM_CHIP_STM32_H_ */
-
120/****************************************************************/
-
eResetSource
Source of last reset.
Definition arm_chip_ino.h:50
-
eResetSource
Source of last reset.
Definition arm_chip_stm32.h:72
-
@ RST_SW
Software Reset.
Definition arm_chip_stm32.h:76
-
@ RST_LPWR
Low Power Reset.
Definition arm_chip_stm32.h:79
-
@ RST_OBL
Option Byte Load Reset.
Definition arm_chip_stm32.h:80
-
@ RST_PIN
Pin Reset (External Reset)
Definition arm_chip_stm32.h:75
-
@ RST_IWDG
Independent Watchdog Reset.
Definition arm_chip_stm32.h:77
-
@ RST_UNKNOWN
Unknown Reset Source.
Definition arm_chip_stm32.h:83
-
@ RST_FW
Firewall Reset (L4)
Definition arm_chip_stm32.h:82
-
@ RST_V18PWR
1.8V Domain Power Reset (F3)
Definition arm_chip_stm32.h:81
-
@ RST_POR
Power On Reset.
Definition arm_chip_stm32.h:73
-
@ RST_WWDG
Window Watchdog Reset.
Definition arm_chip_stm32.h:78
-
@ RST_BOR
Brown Out Reset (H7)
Definition arm_chip_stm32.h:74
-
FctERR
Enum of low/mid level functions return state.
Definition arm_errors.h:19
-
@ ERROR_BUSY
Device is busy.
Definition arm_errors.h:29
-
@ ERROR_TIMEOUT
Abort on timeout error.
Definition arm_errors.h:23
-
@ ERROR_FAULT
Fault error is detected.
Definition arm_errors.h:39
-
@ ERROR_COMMON
Common error of a device.
Definition arm_errors.h:46
-
@ ERROR_OK
OK.
Definition arm_errors.h:20
-
- - - - diff --git a/html/arm__cmsis_8h.html b/html/arm__cmsis_8h.html index ab95611..500c6b1 100644 --- a/html/arm__cmsis_8h.html +++ b/html/arm__cmsis_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_cmsis.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+ diff --git a/html/arm__cmsis_8h_source.html b/html/arm__cmsis_8h_source.html deleted file mode 100644 index d014594..0000000 --- a/html/arm__cmsis_8h_source.html +++ /dev/null @@ -1,881 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_cmsis.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_cmsis.h
-
-
-Go to the documentation of this file.
1
-
20// cppcheck-suppress-begin [misra-c2012-21.1]
-
21/****************************************************************/
-
22#ifndef ARM_CMSIS_H_
-
23 #define ARM_CMSIS_H_
-
24
-
25#ifdef __cplusplus
-
26 extern "C" {
-
27#endif
-
28/****************************************************************/
-
29
-
30
-
31#define diInterrupts() __disable_irq()
-
32#define enInterrupts() __enable_irq()
-
33
-
34
-
35#define CORE_CMSIS_VERSION __CM_CMSIS_VERSION
-
36#define CORTEX_M __CORTEX_M
-
37
-
38
-
39#ifndef SARMFSW_NO_CHIP_HAL
-
40/************************/
-
41/*** Arduino platform ***/
-
42/************************/
-
43#if defined(ARDUINO)
-
44 #if !defined(INO_FAMILY)
-
45 #define INO_FAMILY arduino
-
46 #endif
-
47 #define ARDUINO_PLATFORM
-
48
-
49/******************************/
-
50/*** STMicro STM32 Families ***/
-
51/******************************/
-
52#elif defined(STM32C011xx) || defined(STM32C031xx)
-
53 #if !defined(STM_FAMILY)
-
54 #define STM_FAMILY c0
-
55 #endif
-
56 #define STM32C0
-
57 #define STM32_CMSIS_VERSION __STM32C0_CMSIS_VERSION
-
58
-
59#elif defined(STM32F030x6) || defined(STM32F030x8) || \
-
60 defined(STM32F031x6) || defined(STM32F038xx) || \
-
61 defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || \
-
62 defined(STM32F051x8) || defined(STM32F058xx) || \
-
63 defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || \
-
64 defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC)
-
65 #if !defined(STM_FAMILY)
-
66 #define STM_FAMILY f0
-
67 #endif
-
68 #define STM32F0
-
69 #define STM32_CMSIS_VERSION __STM32F0_CMSIS_VERSION
-
70
-
71#elif defined(STM32F100xB) || defined(STM32F100xE) || defined(STM32F101x6) || \
-
72 defined(STM32F101xB) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F102x6) || defined(STM32F102xB) || defined(STM32F103x6) || \
-
73 defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || defined(STM32F105xC) || defined(STM32F107xC)
-
74 #if !defined(STM_FAMILY)
-
75 #define STM_FAMILY f1
-
76 #endif
-
77 #define STM32F1
-
78 #define STM32_CMSIS_VERSION __STM32F1_CMSIS_VERSION
-
79
-
80#elif defined(STM32F205xx) || defined(STM32F215xx) || defined(STM32F207xx) || defined(STM32F217xx)
-
81 #if !defined(STM_FAMILY)
-
82 #define STM_FAMILY f2
-
83 #endif
-
84 #define STM32F2
-
85 #define STM32_CMSIS_VERSION __STM32F2xx_CMSIS_VERSION
-
86
-
87#elif defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx) || \
-
88 defined(STM32F302xC) || defined(STM32F303xC) || defined(STM32F358xx) || \
-
89 defined(STM32F303x8) || defined(STM32F334x8) || defined(STM32F328xx) || \
-
90 defined(STM32F302xE) || defined(STM32F303xE) || defined(STM32F398xx) || \
-
91 defined(STM32F373xC) || defined(STM32F378xx)
-
92 #if !defined(STM_FAMILY)
-
93 #define STM_FAMILY f3
-
94 #endif
-
95 #define STM32F3
-
96 #define STM32_CMSIS_VERSION __STM32F3_CMSIS_VERSION
-
97
-
98#elif defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \
-
99 defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \
-
100 defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || \
-
101 defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) || \
-
102 defined(STM32F479xx) || defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || \
-
103 defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx)
-
104 #if !defined(STM_FAMILY)
-
105 #define STM_FAMILY f4
-
106 #endif
-
107 #define STM32F4
-
108 #define STM32_CMSIS_VERSION __STM32F4xx_CMSIS_VERSION
-
109
-
110#elif defined(STM32F756xx) || defined(STM32F746xx) || defined(STM32F745xx) || defined(STM32F765xx) || \
-
111 defined(STM32F767xx) || defined(STM32F769xx) || defined(STM32F777xx) || defined(STM32F779xx) || \
-
112 defined(STM32F722xx) || defined(STM32F723xx) || defined(STM32F732xx) || defined(STM32F733xx) || \
-
113 defined(STM32F730xx) || defined(STM32F750xx)
-
114 #if !defined(STM_FAMILY)
-
115 #define STM_FAMILY f7
-
116 #endif
-
117 #define STM32F7
-
118 #define STM32_CMSIS_VERSION __STM32F7_CMSIS_VERSION
-
119
-
120#elif defined(STM32G071xx) || defined(STM32G081xx) || defined(STM32G070xx) || \
-
121 defined(STM32G030xx) || defined(STM32G031xx) || defined(STM32G041xx) || \
-
122 defined(STM32G0B0xx) || defined(STM32G0B1xx) || defined(STM32G0C1xx) || \
-
123 defined(STM32G050xx) || defined(STM32G051xx) || defined(STM32G061xx)
-
124 #if !defined(STM_FAMILY)
-
125 #define STM_FAMILY g0
-
126 #endif
-
127 #define STM32G0
-
128 #define STM32_CMSIS_VERSION __STM32G0_CMSIS_VERSION
-
129
-
130#elif defined(STM32G431xx) || defined(STM32G441xx) || defined(STM32G471xx) || \
-
131 defined(STM32G473xx) || defined(STM32G474xx) || defined(STM32G484xx) || \
-
132 defined(STM32GBK1CB) || defined(STM32G491xx) || defined(STM32G4A1xx)
-
133 #if !defined(STM_FAMILY)
-
134 #define STM_FAMILY g4
-
135 #endif
-
136 #define STM32G4
-
137 #define STM32_CMSIS_VERSION __STM32G4_CMSIS_VERSION
-
138
-
139#elif defined (STM32H573xx) || defined (STM32H563xx) || \
-
140 defined (STM32H562xx) || defined (STM32H503xx)
-
141 #if !defined(STM_FAMILY)
-
142 #define STM_FAMILY h5
-
143 #endif
-
144 #define STM32H5
-
145 #define STM32_CMSIS_VERSION __STM32H5_CMSIS_VERSION
-
146
-
147#elif defined(STM32H743xx) || defined(STM32H753xx) || defined(STM32H750xx) || defined(STM32H742xx) || \
-
148 defined(STM32H745xx) || defined(STM32H745xG) || defined(STM32H755xx) || defined(STM32H747xx) || defined(STM32H747xG) || defined(STM32H757xx) || \
-
149 defined(STM32H7A3xx) || defined(STM32H7A3xxQ) || defined(STM32H7B3xx) || defined(STM32H7B3xxQ) || defined(STM32H7B0xx) || defined(STM32H7B0xxQ) || \
-
150 defined(STM32H735xx) || defined(STM32H733xx) || defined(STM32H730xx) || defined(STM32H730xxQ) || defined(STM32H725xx) || defined(STM32H723xx)
-
151 #if !defined(STM_FAMILY)
-
152 #define STM_FAMILY h7
-
153 #endif
-
154 #define STM32H7
-
155 #define STM32_CMSIS_VERSION __STM32H7xx_CMSIS_VERSION
-
156
-
157#elif defined(STM32L010x4) || defined(STM32L010x6) || defined(STM32L010x8) || defined(STM32L010xB) || \
-
158 defined(STM32L011xx) || defined(STM32L021xx) || \
-
159 defined(STM32L031xx) || defined(STM32L041xx) || \
-
160 defined(STM32L051xx) || defined(STM32L052xx) || defined(STM32L053xx) || \
-
161 defined(STM32L062xx) || defined(STM32L063xx) || \
-
162 defined(STM32L071xx) || defined(STM32L072xx) || defined(STM32L073xx) || \
-
163 defined(STM32L081xx) || defined(STM32L082xx) || defined(STM32L083xx)
-
164 #if !defined(STM_FAMILY)
-
165 #define STM_FAMILY l0
-
166 #endif
-
167 #define STM32L0
-
168 #define STM32_CMSIS_VERSION __STM32L0xx_CMSIS_VERSION
-
169
-
170#elif defined(STM32L100xB) || defined(STM32L100xBA) || defined(STM32L100xC) || \
-
171 defined(STM32L151xB) || defined(STM32L151xBA) || defined(STM32L151xC) || defined(STM32L151xCA) || defined(STM32L151xD) || defined(STM32L151xDX) || defined(STM32L151xE) || \
-
172 defined(STM32L152xB) || defined(STM32L152xBA) || defined(STM32L152xC) || defined(STM32L152xCA) || defined(STM32L152xD) || defined(STM32L152xDX) || defined(STM32L152xE) || \
-
173 defined(STM32L162xC) || defined(STM32L162xCA) || defined(STM32L162xD) || defined(STM32L162xDX) || defined(STM32L162xE)
-
174 #if !defined(STM_FAMILY)
-
175 #define STM_FAMILY l1
-
176 #endif
-
177 #define STM32L1
-
178 #define STM32_CMSIS_VERSION __STM32L1xx_CMSIS_VERSION
-
179
-
180#elif defined(STM32L412xx) || defined(STM32L422xx) || \
-
181 defined(STM32L431xx) || defined(STM32L432xx) || defined(STM32L433xx) || defined(STM32L442xx) || defined(STM32L443xx) || \
-
182 defined(STM32L451xx) || defined(STM32L452xx) || defined(STM32L462xx) || \
-
183 defined(STM32L471xx) || defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L485xx) || defined(STM32L486xx) || \
-
184 defined(STM32L496xx) || defined(STM32L4A6xx) || \
-
185 defined(STM32L4P5xx) || defined(STM32L4Q5xx) || \
-
186 defined(STM32L4R5xx) || defined(STM32L4R7xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx)
-
187 #if !defined(STM_FAMILY)
-
188 #define STM_FAMILY l4
-
189 #endif
-
190 #define STM32L4
-
191 #define STM32_CMSIS_VERSION __STM32L4_CMSIS_VERSION
-
192
-
193#elif defined(STM32L552xx) || defined(STM32L562xx)
-
194 #if !defined(STM_FAMILY)
-
195 #define STM_FAMILY l5
-
196 #endif
-
197 #define STM32L5
-
198 #define STM32_CMSIS_VERSION __STM32L5_CMSIS_VERSION
-
199
-
200#elif defined(STM32MP15xx) || \
-
201 defined(STM32MP157Axx) || defined(STM32MP157Cxx) || defined(STM32MP157Dxx) || defined(STM32MP157Fxx) || \
-
202 defined(STM32MP153Axx) || defined(STM32MP153Cxx) || defined(STM32MP153Dxx) || defined(STM32MP153Fxx) || \
-
203 defined(STM32MP151Axx) || defined(STM32MP151Cxx) || defined(STM32MP151Dxx) || defined(STM32MP151Fxx)
-
204 #if !defined(STM_FAMILY)
-
205 #define STM_FAMILY mp1
-
206 #endif
-
207 #define STM32MP1
-
208 #define STM32_CMSIS_VERSION __STM32MP1xx_CMSIS_VERSION
-
209
-
210#elif defined(STM32U575xx) || defined(STM32U585xx) || \
-
211 defined(STM32U595xx) || defined(STM32U599xx) || \
-
212 defined(STM32U5A5xx) || defined(STM32U5A9xx)
-
213 #if !defined(STM_FAMILY)
-
214 #define STM_FAMILY u5
-
215 #endif
-
216 #define STM32U5
-
217 #define STM32_CMSIS_VERSION __STM32U5_CMSIS_VERSION
-
218
-
219#elif defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB50xx) || \
-
220 defined(STM32WB35xx) || defined(STM32WB30xx) || \
-
221 defined(STM32WB15xx) || defined(STM32WB10xx)
-
222 #if !defined(STM_FAMILY)
-
223 #define STM_FAMILY wb
-
224 #endif
-
225 #define STM32WB
-
226 #define STM32_CMSIS_VERSION __STM32WBxx_CMSIS_VERSION
-
227
-
228#elif defined(STM32WBA50xx) || defined(STM32WBA52xx) || defined(STM32WBA54xx) || defined(STM32WBA55xx)
-
229 #if !defined(STM_FAMILY)
-
230 #define STM_FAMILY wba
-
231 #endif
-
232 #define STM32WBA
-
233 #define STM32_CMSIS_VERSION __STM32WBA_CMSIS_VERSION
-
234
-
235#elif defined(STM32WL55xx) || defined(STM32WL54xx) || defined(STM32WLE5xx) || defined(STM32WLE4xx)
-
236 #if !defined(STM_FAMILY)
-
237 #define STM_FAMILY wl
-
238 #endif
-
239 #define STM32WL
-
240 #define STM32_CMSIS_VERSION __STM32WLxx_CMSIS_VERSION
-
241
-
242/**************************/
-
243/*** Atmel SAM Families ***/
-
244/**************************/
-
245#elif defined(__SAM3A4C__) || defined(__ATSAM3A4C__) || defined(__SAM3A8C__) || defined(__ATSAM3A8C__)
-
246 #if !defined(SAM_FAMILY)
-
247 #define SAM_FAMILY 3a
-
248 #endif
-
249 #define SAM3A
-
250
-
251#elif defined(__SAM3N00A__) || defined(__ATSAM3N00A__) || defined(__SAM3N00B__) || defined(__ATSAM3N00B__) || defined(__SAM3N0A__) || defined(__ATSAM3N0A__) || \
-
252 defined(__SAM3N0B__) || defined(__ATSAM3N0B__) || defined(__SAM3N0C__) || defined(__ATSAM3N0C__) || defined(__SAM3N1A__) || defined(__ATSAM3N1A__) || \
-
253 defined(__SAM3N1B__) || defined(__ATSAM3N1B__) || defined(__SAM3N1C__) || defined(__ATSAM3N1C__) || defined(__SAM3N2A__) || defined(__ATSAM3N2A__) || \
-
254 defined(__SAM3N2B__) || defined(__ATSAM3N2B__) || defined(__SAM3N2C__) || defined(__ATSAM3N2C__) || defined(__SAM3N4A__) || defined(__ATSAM3N4A__) || \
-
255 defined(__SAM3N4B__) || defined(__ATSAM3N4B__) || defined(__SAM3N4C__) || defined(__ATSAM3N4C__)
-
256 #if !defined(SAM_FAMILY)
-
257 #define SAM_FAMILY 3n
-
258 #endif
-
259 #define SAM3N
-
260
-
261#elif defined(__SAM3S1A__) || defined(__ATSAM3S1A__) || defined(__SAM3S1B__) || defined(__ATSAM3S1B__) || defined(__SAM3S1C__) || defined(__ATSAM3S1C__) || \
-
262 defined(__SAM3S2A__) || defined(__ATSAM3S2A__) || defined(__SAM3S2B__) || defined(__ATSAM3S2B__) || defined(__SAM3S2C__) || defined(__ATSAM3S2C__) || \
-
263 defined(__SAM3S4A__) || defined(__ATSAM3S4A__) || defined(__SAM3S4B__) || defined(__ATSAM3S4B__) || defined(__SAM3S4C__) || defined(__ATSAM3S4C__)
-
264 #if !defined(SAM_FAMILY)
-
265 #define SAM_FAMILY 3s
-
266 #endif
-
267 #define SAM3S
-
268
-
269#elif defined(__SAM3S8B__) || defined(__ATSAM3S8B__) || defined(__SAM3S8C__) || defined(__ATSAM3S8C__) || defined(__SAM3SD8B__) || defined(__ATSAM3SD8B__) || \
-
270 defined(__SAM3SD8C__) || defined(__ATSAM3SD8C__)
-
271 #if !defined(SAM_FAMILY)
-
272 #define SAM_FAMILY 3s8b
-
273 #endif
-
274 #define SAM3S8B
-
275
-
276#elif defined(__SAM3U1C__) || defined(__ATSAM3U1C__) || defined(__SAM3U1E__) || defined(__ATSAM3U1E__) || defined(__SAM3U2C__) || defined(__ATSAM3U2C__) || \
-
277 defined(__SAM3U2E__) || defined(__ATSAM3U2E__) || defined(__SAM3U4C__) || defined(__ATSAM3U4C__) || defined(__SAM3U4E__) || defined(__ATSAM3U4E__)
-
278 #if !defined(SAM_FAMILY)
-
279 #define SAM_FAMILY 3u
-
280 #endif
-
281 #define SAM3U
-
282
-
283#elif defined(__SAM3X4C__) || defined(__ATSAM3X4C__) || defined(__SAM3X4E__) || defined(__ATSAM3X4E__) || defined(__SAM3X8C__) || defined(__ATSAM3X8C__) || \
-
284 defined(__SAM3X8E__) || defined(__ATSAM3X8E__) || defined(__SAM3X8H__) || defined(__ATSAM3X8H__)
-
285 #if !defined(SAM_FAMILY)
-
286 #define SAM_FAMILY 3x
-
287 #endif
-
288 #define SAM3X
-
289
-
290#elif defined(__SAM4C16C_0__) || defined(__ATSAM4C16C_0__) || defined(__SAM4C16C_1__) || defined(__ATSAM4C16C_1__) || defined(__SAM4C4C_0__) || defined(__ATSAM4C4C_0__) || \
-
291 defined(__SAM4C4C_1__) || defined(__ATSAM4C4C_1__) || defined(__SAM4C8C_0__) || defined(__ATSAM4C8C_0__) || defined(__SAM4C8C_1__) || defined(__ATSAM4C8C_1__)
-
292 #if !defined(SAM_FAMILY)
-
293 #define SAM_FAMILY 4c
-
294 #endif
-
295 #define SAM4C
-
296
-
297#elif defined(__SAM4C32C_0__) || defined(__ATSAM4C32C_0__) || defined(__SAM4C32C_1__) || defined(__ATSAM4C32C_1__) || defined(__SAM4C32E_0__) || defined(__ATSAM4C32E_0__) || \
-
298 defined(__SAM4C32E_1__) || defined(__ATSAM4C32E_1__)
-
299 #if !defined(SAM_FAMILY)
-
300 #define SAM_FAMILY 4c32
-
301 #endif
-
302 #define SAM4C32
-
303
-
304#elif defined(__SAM4CMP16C_0__) || defined(__ATSAM4CMP16C_0__) || defined(__SAM4CMP16C_1__) || defined(__ATSAM4CMP16C_1__) || defined(__SAM4CMP8C_0__) || defined(__ATSAM4CMP8C_0__) || \
-
305 defined(__SAM4CMP8C_1__) || defined(__ATSAM4CMP8C_1__) || defined(__SAM4CMS16C_0__) || defined(__ATSAM4CMS16C_0__) || defined(__SAM4CMS16C_1__) || defined(__ATSAM4CMS16C_1__) || \
-
306 defined(__SAM4CMS4C_0__) || defined(__ATSAM4CMS4C_0__) || defined(__SAM4CMS4C_1__) || defined(__ATSAM4CMS4C_1__) || defined(__SAM4CMS8C_0__) || defined(__ATSAM4CMS8C_0__) || \
-
307 defined(__SAM4CMS8C_1__) || defined(__ATSAM4CMS8C_1__)
-
308 #if !defined(SAM_FAMILY)
-
309 #define SAM_FAMILY 4cm
-
310 #endif
-
311 #define SAM4CM
-
312
-
313#elif defined(__SAM4CMP32C_0__) || defined(__ATSAM4CMP32C_0__) || defined(__SAM4CMP32C_1__) || defined(__ATSAM4CMP32C_1__) || defined(__SAM4CMS32C_0__) || defined(__ATSAM4CMS32C_0__) || \
-
314 defined(__SAM4CMS32C_1__) || defined(__ATSAM4CMS32C_1__)
-
315 #if !defined(SAM_FAMILY)
-
316 #define SAM_FAMILY 4cm32
-
317 #endif
-
318 #define SAM4CM32
-
319
-
320#elif defined(__SAM4CP16B_0__) || defined(__ATSAM4CP16B_0__) || defined(__SAM4CP16B_1__) || defined(__ATSAM4CP16B_1__) || defined(__SAM4CP16C_0__) || defined(__ATSAM4CP16C_0__) || \
-
321 defined(__SAM4CP16C_1__) || defined(__ATSAM4CP16C_1__)
-
322 #if !defined(SAM_FAMILY)
-
323 #define SAM_FAMILY 4cp
-
324 #endif
-
325 #define SAM4CP
-
326
-
327#elif defined(__SAM4E16C__) || defined(__ATSAM4E16C__) || defined(__SAM4E16E__) || defined(__ATSAM4E16E__) || defined(__SAM4E8C__) || defined(__ATSAM4E8C__) || \
-
328 defined(__SAM4E8E__) || defined(__ATSAM4E8E__)
-
329 #if !defined(SAM_FAMILY)
-
330 #define SAM_FAMILY 4e
-
331 #endif
-
332 #define SAM4E
-
333
-
334#elif defined(__SAM4E16CB__) || defined(__ATSAM4E16CB__) || defined(__SAM4E8CB__) || defined(__ATSAM4E8CB__)
-
335 #if !defined(SAM_FAMILY)
-
336 #define SAM_FAMILY 4ecb
-
337 #endif
-
338 #define SAM4ECB
-
339
-
340#elif defined(__SAM4LC2A__) || defined(__ATSAM4LC2A__) || defined(__SAM4LC2B__) || defined(__ATSAM4LC2B__) || defined(__SAM4LC2C__) || defined(__ATSAM4LC2C__) || \
-
341 defined(__SAM4LC4A__) || defined(__ATSAM4LC4A__) || defined(__SAM4LC4B__) || defined(__ATSAM4LC4B__) || defined(__SAM4LC4C__) || defined(__ATSAM4LC4C__) || \
-
342 defined(__SAM4LS2A__) || defined(__ATSAM4LS2A__) || defined(__SAM4LS2B__) || defined(__ATSAM4LS2B__) || defined(__SAM4LS2C__) || defined(__ATSAM4LS2C__) || \
-
343 defined(__SAM4LS4A__) || defined(__ATSAM4LS4A__) || defined(__SAM4LS4B__) || defined(__ATSAM4LS4B__) || defined(__SAM4LS4C__) || defined(__ATSAM4LS4C__)
-
344 #if !defined(SAM_FAMILY)
-
345 #define SAM_FAMILY 4l4
-
346 #endif
-
347 #define SAM4L4
-
348
-
349#elif defined(__SAM4LC8A__) || defined(__ATSAM4LC8A__) || defined(__SAM4LC8B__) || defined(__ATSAM4LC8B__) || defined(__SAM4LC8C__) || defined(__ATSAM4LC8C__) || \
-
350 defined(__SAM4LS8A__) || defined(__ATSAM4LS8A__) || defined(__SAM4LS8B__) || defined(__ATSAM4LS8B__) || defined(__SAM4LS8C__) || defined(__ATSAM4LS8C__)
-
351 #if !defined(SAM_FAMILY)
-
352 #define SAM_FAMILY 4l8
-
353 #endif
-
354 #define SAM4L8
-
355
-
356#elif defined(__SAM4N16B__) || defined(__ATSAM4N16B__) || defined(__SAM4N16C__) || defined(__ATSAM4N16C__) || defined(__SAM4N8A__) || defined(__ATSAM4N8A__) || \
-
357 defined(__SAM4N8B__) || defined(__ATSAM4N8B__) || defined(__SAM4N8C__) || defined(__ATSAM4N8C__)
-
358 #if !defined(SAM_FAMILY)
-
359 #define SAM_FAMILY 4n
-
360 #endif
-
361 #define SAM4N
-
362
-
363#elif defined(__SAM4S16B__) || defined(__ATSAM4S16B__) || defined(__SAM4S16C__) || defined(__ATSAM4S16C__) || defined(__SAM4S2A__) || defined(__ATSAM4S2A__) || \
-
364 defined(__SAM4S2B__) || defined(__ATSAM4S2B__) || defined(__SAM4S2C__) || defined(__ATSAM4S2C__) || defined(__SAM4S4A__) || defined(__ATSAM4S4A__) || \
-
365 defined(__SAM4S4B__) || defined(__ATSAM4S4B__) || defined(__SAM4S4C__) || defined(__ATSAM4S4C__) || defined(__SAM4S8B__) || defined(__ATSAM4S8B__) || \
-
366 defined(__SAM4S8C__) || defined(__ATSAM4S8C__) || defined(__SAM4SA16B__) || defined(__ATSAM4SA16B__) || defined(__SAM4SA16C__) || defined(__ATSAM4SA16C__) || \
-
367 defined(__SAM4SD16B__) || defined(__ATSAM4SD16B__) || defined(__SAM4SD16C__) || defined(__ATSAM4SD16C__) || defined(__SAM4SD32B__) || defined(__ATSAM4SD32B__) || \
-
368 defined(__SAM4SD32C__) || defined(__ATSAM4SD32C__)
-
369 #if !defined(SAM_FAMILY)
-
370 #define SAM_FAMILY 4s
-
371 #endif
-
372 #define SAM4S
-
373
-
374#elif defined(__SAM4SP32A__) || defined(__ATSAM4SP32A__)
-
375 #if !defined(SAM_FAMILY)
-
376 #define SAM_FAMILY 4sp
-
377 #endif
-
378 #define SAM4SP
-
379
-
380#elif defined(__BTLC1000WLCSP__) || defined(__ATBTLC1000WLCSP__) || defined(__SAMB11G18A__) || defined(__ATSAMB11G18A__) || defined(__SAMB11ZR__) || defined(__ATSAMB11ZR__)
-
381 #if !defined(SAM_FAMILY)
-
382 #define SAM_FAMILY b11
-
383 #endif
-
384 #define SAMB11
-
385
-
386#elif defined(__SAMC20E15A__) || defined(__ATSAMC20E15A__) || defined(__SAMC20E16A__) || defined(__ATSAMC20E16A__) || defined(__SAMC20E17A__) || defined(__ATSAMC20E17A__) || \
-
387 defined(__SAMC20E18A__) || defined(__ATSAMC20E18A__) || defined(__SAMC20G15A__) || defined(__ATSAMC20G15A__) || defined(__SAMC20G16A__) || defined(__ATSAMC20G16A__) || \
-
388 defined(__SAMC20G17A__) || defined(__ATSAMC20G17A__) || defined(__SAMC20G18A__) || defined(__ATSAMC20G18A__) || defined(__SAMC20J15A__) || defined(__ATSAMC20J15A__) || \
-
389 defined(__SAMC20J16A__) || defined(__ATSAMC20J16A__) || defined(__SAMC20J17A__) || defined(__ATSAMC20J17A__) || defined(__SAMC20J17AU__) || defined(__ATSAMC20J17AU__) || \
-
390 defined(__SAMC20J18A__) || defined(__ATSAMC20J18A__) || defined(__SAMC20J18AU__) || defined(__ATSAMC20J18AU__)
-
391 #if !defined(SAM_FAMILY)
-
392 #define SAM_FAMILY c20
-
393 #endif
-
394 #define SAMC20
-
395
-
396#elif defined(__SAMC20N17A__) || defined(__ATSAMC20N17A__) || defined(__SAMC20N18A__) || defined(__ATSAMC20N18A__)
-
397 #if !defined(SAM_FAMILY)
-
398 #define SAM_FAMILY c20n
-
399 #endif
-
400 #define SAMC20N
-
401
-
402#elif defined(__SAMC21E15A__) || defined(__ATSAMC21E15A__) || defined(__SAMC21E16A__) || defined(__ATSAMC21E16A__) || defined(__SAMC21E17A__) || defined(__ATSAMC21E17A__) || \
-
403 defined(__SAMC21E18A__) || defined(__ATSAMC21E18A__) || defined(__SAMC21G15A__) || defined(__ATSAMC21G15A__) || defined(__SAMC21G16A__) || defined(__ATSAMC21G16A__) || \
-
404 defined(__SAMC21G17A__) || defined(__ATSAMC21G17A__) || defined(__SAMC21G18A__) || defined(__ATSAMC21G18A__) || defined(__SAMC21J15A__) || defined(__ATSAMC21J15A__) || \
-
405 defined(__SAMC21J16A__) || defined(__ATSAMC21J16A__) || defined(__SAMC21J17A__) || defined(__ATSAMC21J17A__) || defined(__SAMC21J17AU__) || defined(__ATSAMC21J17AU__) || \
-
406 defined(__SAMC21J18A__) || defined(__ATSAMC21J18A__) || defined(__SAMC21J18AU__) || defined(__ATSAMC21J18AU__)
-
407 #if !defined(SAM_FAMILY)
-
408 #define SAM_FAMILY c21
-
409 #endif
-
410 #define SAMC21
-
411
-
412#elif defined(__SAMC21N17A__) || defined(__ATSAMC21N17A__) || defined(__SAMC21N18A__) || defined(__ATSAMC21N18A__)
-
413 #if !defined(SAM_FAMILY)
-
414 #define SAM_FAMILY c21n
-
415 #endif
-
416 #define SAMC21N
-
417
-
418#elif defined(__SAMD09C13A__) || defined(__ATSAMD09C13A__) || defined(__SAMD09D14A__) || defined(__ATSAMD09D14A__)
-
419 #if !defined(SAM_FAMILY)
-
420 #define SAM_FAMILY d09
-
421 #endif
-
422 #define SAMD09
-
423
-
424#elif defined(__SAMD10C13A__) || defined(__ATSAMD10C13A__) || defined(__SAMD10C14A__) || defined(__ATSAMD10C14A__) || defined(__SAMD10D13AM__) || defined(__ATSAMD10D13AM__) || \
-
425 defined(__SAMD10D13AS__) || defined(__ATSAMD10D13AS__) || defined(__SAMD10D14AM__) || defined(__ATSAMD10D14AM__) || defined(__SAMD10D14AS__) || defined(__ATSAMD10D14AS__) || \
-
426 defined(__SAMD10D14AU__) || defined(__ATSAMD10D14AU__)
-
427 #if !defined(SAM_FAMILY)
-
428 #define SAM_FAMILY d10
-
429 #endif
-
430 #define SAMD10
-
431
-
432#elif defined(__SAMD11C14A__) || defined(__ATSAMD11C14A__) || defined(__SAMD11D14AM__) || defined(__ATSAMD11D14AM__) || defined(__SAMD11D14AS__) || defined(__ATSAMD11D14AS__) || \
-
433 defined(__SAMD11D14AU__) || defined(__ATSAMD11D14AU__)
-
434 #if !defined(SAM_FAMILY)
-
435 #define SAM_FAMILY d11
-
436 #endif
-
437 #define SAMD11
-
438
-
439#elif defined(__SAMD20E14__) || defined(__ATSAMD20E14__) || defined(__SAMD20E15__) || defined(__ATSAMD20E15__) || defined(__SAMD20E16__) || defined(__ATSAMD20E16__) || \
-
440 defined(__SAMD20E17__) || defined(__ATSAMD20E17__) || defined(__SAMD20E18__) || defined(__ATSAMD20E18__) || defined(__SAMD20G14__) || defined(__ATSAMD20G14__) || \
-
441 defined(__SAMD20G15__) || defined(__ATSAMD20G15__) || defined(__SAMD20G16__) || defined(__ATSAMD20G16__) || defined(__SAMD20G17__) || defined(__ATSAMD20G17__) || \
-
442 defined(__SAMD20G17U__) || defined(__ATSAMD20G17U__) || defined(__SAMD20G18__) || defined(__ATSAMD20G18__) || defined(__SAMD20G18U__) || defined(__ATSAMD20G18U__) || \
-
443 defined(__SAMD20J14__) || defined(__ATSAMD20J14__) || defined(__SAMD20J15__) || defined(__ATSAMD20J15__) || defined(__SAMD20J16__) || defined(__ATSAMD20J16__) || \
-
444 defined(__SAMD20J17__) || defined(__ATSAMD20J17__) || defined(__SAMD20J18__) || defined(__ATSAMD20J18__)
-
445 #if !defined(SAM_FAMILY)
-
446 #define SAM_FAMILY d20
-
447 #endif
-
448 #define SAMD20
-
449
-
450#elif defined(__SAMD20E14B__) || defined(__ATSAMD20E14B__) || defined(__SAMD20E15B__) || defined(__ATSAMD20E15B__) || defined(__SAMD20E16B__) || defined(__ATSAMD20E16B__) || \
-
451 defined(__SAMD20G14B__) || defined(__ATSAMD20G14B__) || defined(__SAMD20G15B__) || defined(__ATSAMD20G15B__) || defined(__SAMD20G16B__) || defined(__ATSAMD20G16B__) || \
-
452 defined(__SAMD20J14B__) || defined(__ATSAMD20J14B__) || defined(__SAMD20J15B__) || defined(__ATSAMD20J15B__) || defined(__SAMD20J16B__) || defined(__ATSAMD20J16B__)
-
453 #if !defined(SAM_FAMILY)
-
454 #define SAM_FAMILY d20b
-
455 #endif
-
456 #define SAMD20B
-
457
-
458#elif defined(__SAMD21E15A__) || defined(__ATSAMD21E15A__) || defined(__SAMD21E16A__) || defined(__ATSAMD21E16A__) || defined(__SAMD21E17A__) || defined(__ATSAMD21E17A__) || \
-
459 defined(__SAMD21E18A__) || defined(__ATSAMD21E18A__) || defined(__SAMD21G15A__) || defined(__ATSAMD21G15A__) || defined(__SAMD21G16A__) || defined(__ATSAMD21G16A__) || \
-
460 defined(__SAMD21G17A__) || defined(__ATSAMD21G17A__) || defined(__SAMD21G17AU__) || defined(__ATSAMD21G17AU__) || defined(__SAMD21G18A__) || defined(__ATSAMD21G18A__) || \
-
461 defined(__SAMD21G18AU__) || defined(__ATSAMD21G18AU__) || defined(__SAMD21J15A__) || defined(__ATSAMD21J15A__) || defined(__SAMD21J16A__) || defined(__ATSAMD21J16A__) || \
-
462 defined(__SAMD21J17A__) || defined(__ATSAMD21J17A__) || defined(__SAMD21J18A__) || defined(__ATSAMD21J18A__)
-
463 #if !defined(SAM_FAMILY)
-
464 #define SAM_FAMILY d21a
-
465 #endif
-
466 #define SAMD21A
-
467
-
468#elif defined(__SAMD21E15BU__) || defined(__ATSAMD21E15BU__) || defined(__SAMD21E16BU__) || defined(__ATSAMD21E16BU__)
-
469 #if !defined(SAM_FAMILY)
-
470 #define SAM_FAMILY d21b
-
471 #endif
-
472 #define SAMD21B
-
473
-
474#elif defined(__SAMD21E15B__) || defined(__ATSAMD21E15B__) || defined(__SAMD21E15CU__) || defined(__ATSAMD21E15CU__) || defined(__SAMD21E15L__) || defined(__ATSAMD21E15L__) || \
-
475 defined(__SAMD21E16B__) || defined(__ATSAMD21E16B__) || defined(__SAMD21E16CU__) || defined(__ATSAMD21E16CU__) || defined(__SAMD21E16L__) || defined(__ATSAMD21E16L__) || \
-
476 defined(__SAMD21G15B__) || defined(__ATSAMD21G15B__) || defined(__SAMD21G15L__) || defined(__ATSAMD21G15L__) || defined(__SAMD21G16B__) || defined(__ATSAMD21G16B__) || \
-
477 defined(__SAMD21G16L__) || defined(__ATSAMD21G16L__) || defined(__SAMD21J15B__) || defined(__ATSAMD21J15B__) || defined(__SAMD21J16B__) || defined(__ATSAMD21J16B__)
-
478 #if !defined(SAM_FAMILY)
-
479 #define SAM_FAMILY d21c
-
480 #endif
-
481 #define SAMD21C
-
482
-
483#elif defined(__SAMD51G18A__) || defined(__ATSAMD51G18A__) || defined(__SAMD51G19A__) || defined(__ATSAMD51G19A__) || defined(__SAMD51J18A__) || defined(__ATSAMD51J18A__) || \
-
484 defined(__SAMD51J19A__) || defined(__ATSAMD51J19A__) || defined(__SAMD51J20A__) || defined(__ATSAMD51J20A__) || defined(__SAMD51N19A__) || defined(__ATSAMD51N19A__) || \
-
485 defined(__SAMD51N20A__) || defined(__ATSAMD51N20A__) || defined(__SAMD51P19A__) || defined(__ATSAMD51P19A__) || defined(__SAMD51P20A__) || defined(__ATSAMD51P20A__)
-
486 #if !defined(SAM_FAMILY)
-
487 #define SAM_FAMILY d51
-
488 #endif
-
489 #define SAMD51
-
490
-
491#elif defined(__SAMDA1E14A__) || defined(__ATSAMDA1E14A__) || defined(__SAMDA1E15A__) || defined(__ATSAMDA1E15A__) || defined(__SAMDA1E16A__) || defined(__ATSAMDA1E16A__) || \
-
492 defined(__SAMDA1G14A__) || defined(__ATSAMDA1G14A__) || defined(__SAMDA1G15A__) || defined(__ATSAMDA1G15A__) || defined(__SAMDA1G16A__) || defined(__ATSAMDA1G16A__) || \
-
493 defined(__SAMDA1J14A__) || defined(__ATSAMDA1J14A__) || defined(__SAMDA1J15A__) || defined(__ATSAMDA1J15A__) || defined(__SAMDA1J16A__) || defined(__ATSAMDA1J16A__)
-
494 #if !defined(SAM_FAMILY)
-
495 #define SAM_FAMILY da1
-
496 #endif
-
497 #define SAMDA1
-
498
-
499#elif defined(__SAMDA1E14B__) || defined(__ATSAMDA1E14B__) || defined(__SAMDA1E15B__) || defined(__ATSAMDA1E15B__) || defined(__SAMDA1E16B__) || defined(__ATSAMDA1E16B__) || \
-
500 defined(__SAMDA1G14B__) || defined(__ATSAMDA1G14B__) || defined(__SAMDA1G15B__) || defined(__ATSAMDA1G15B__) || defined(__SAMDA1G16B__) || defined(__ATSAMDA1G16B__) || \
-
501 defined(__SAMDA1J14B__) || defined(__ATSAMDA1J14B__) || defined(__SAMDA1J15B__) || defined(__ATSAMDA1J15B__) || defined(__SAMDA1J16B__) || defined(__ATSAMDA1J16B__)
-
502 #if !defined(SAM_FAMILY)
-
503 #define SAM_FAMILY da1b
-
504 #endif
-
505 #define SAMDA1B
-
506
-
507#elif defined(__SAME51J18A__) || defined(__ATSAME51J18A__) || defined(__SAME51J19A__) || defined(__ATSAME51J19A__) || defined(__SAME51J20A__) || defined(__ATSAME51J20A__) || \
-
508 defined(__SAME51N19A__) || defined(__ATSAME51N19A__) || defined(__SAME51N20A__) || defined(__ATSAME51N20A__)
-
509 #if !defined(SAM_FAMILY)
-
510 #define SAM_FAMILY e51
-
511 #endif
-
512 #define SAME51
-
513
-
514#elif defined(__SAME53J18A__) || defined(__ATSAME53J18A__) || defined(__SAME53J19A__) || defined(__ATSAME53J19A__) || defined(__SAME53J20A__) || defined(__ATSAME53J20A__) || \
-
515 defined(__SAME53N19A__) || defined(__ATSAME53N19A__) || defined(__SAME53N20A__) || defined(__ATSAME53N20A__)
-
516 #if !defined(SAM_FAMILY)
-
517 #define SAM_FAMILY e53
-
518 #endif
-
519 #define SAME53
-
520
-
521#elif defined(__SAME54N19A__) || defined(__ATSAME54N19A__) || defined(__SAME54N20A__) || defined(__ATSAME54N20A__) || defined(__SAME54P19A__) || defined(__ATSAME54P19A__) || \
-
522 defined(__SAME54P20A__) || defined(__ATSAME54P20A__)
-
523 #if !defined(SAM_FAMILY)
-
524 #define SAM_FAMILY e54
-
525 #endif
-
526 #define SAME54
-
527
-
528#elif defined(__SAME70J19__) || defined(__ATSAME70J19__) || defined(__SAME70J20__) || defined(__ATSAME70J20__) || defined(__SAME70J21__) || defined(__ATSAME70J21__) || \
-
529 defined(__SAME70N19__) || defined(__ATSAME70N19__) || defined(__SAME70N20__) || defined(__ATSAME70N20__) || defined(__SAME70N21__) || defined(__ATSAME70N21__) || \
-
530 defined(__SAME70Q19__) || defined(__ATSAME70Q19__) || defined(__SAME70Q20__) || defined(__ATSAME70Q20__) || defined(__SAME70Q21__) || defined(__ATSAME70Q21__)
-
531 #if !defined(SAM_FAMILY)
-
532 #define SAM_FAMILY e70a
-
533 #endif
-
534 #define SAME70A
-
535
-
536#elif defined(__SAME70J19B__) || defined(__ATSAME70J19B__) || defined(__SAME70J20B__) || defined(__ATSAME70J20B__) || defined(__SAME70J21B__) || defined(__ATSAME70J21B__) || \
-
537 defined(__SAME70N19B__) || defined(__ATSAME70N19B__) || defined(__SAME70N20B__) || defined(__ATSAME70N20B__) || defined(__SAME70N21B__) || defined(__ATSAME70N21B__) || \
-
538 defined(__SAME70Q19B__) || defined(__ATSAME70Q19B__) || defined(__SAME70Q20B__) || defined(__ATSAME70Q20B__) || defined(__SAME70Q21B__) || defined(__ATSAME70Q21B__)
-
539 #if !defined(SAM_FAMILY)
-
540 #define SAM_FAMILY e70b
-
541 #endif
-
542 #define SAME70B
-
543
-
544#elif defined(__SAMG51G18__) || defined(__ATSAMG51G18__) || defined(__SAMG51N18__) || defined(__ATSAMG51N18__)
-
545 #if !defined(SAM_FAMILY)
-
546 #define SAM_FAMILY g51
-
547 #endif
-
548 #define SAMG51
-
549
-
550#elif defined(__SAMG53G19__) || defined(__ATSAMG53G19__) || defined(__SAMG53N19__) || defined(__ATSAMG53N19__)
-
551 #if !defined(SAM_FAMILY)
-
552 #define SAM_FAMILY g53
-
553 #endif
-
554 #define SAMG53
-
555
-
556#elif defined(__SAMG54G19__) || defined(__ATSAMG54G19__) || defined(__SAMG54J19__) || defined(__ATSAMG54J19__) || defined(__SAMG54N19__) || defined(__ATSAMG54N19__)
-
557 #if !defined(SAM_FAMILY)
-
558 #define SAM_FAMILY g54
-
559 #endif
-
560 #define SAMG54
-
561
-
562#elif defined(__SAMG55G19__) || defined(__ATSAMG55G19__) || defined(__SAMG55J19__) || defined(__ATSAMG55J19__)
-
563 #if !defined(SAM_FAMILY)
-
564 #define SAM_FAMILY g55
-
565 #endif
-
566 #define SAMG55
-
567
-
568#elif defined(__SAMHA1G14A__) || defined(__ATSAMHA1G14A__) || defined(__SAMHA1G15A__) || defined(__ATSAMHA1G15A__) || defined(__SAMHA1G16A__) || defined(__ATSAMHA1G16A__)
-
569 #if !defined(SAM_FAMILY)
-
570 #define SAM_FAMILY ha1a
-
571 #endif
-
572 #define SAMHA1A
-
573
-
574#elif defined(__SAMHA1G14AB__) || defined(__ATSAMHA1G14AB__) || defined(__SAMHA1G15AB__) || defined(__ATSAMHA1G15AB__) || defined(__SAMHA1G16AB__) || defined(__ATSAMHA1G16AB__)
-
575 #if !defined(SAM_FAMILY)
-
576 #define SAM_FAMILY ha1ab
-
577 #endif
-
578 #define SAMHA1AB
-
579
-
580#elif defined(__SAML21E18A__) || defined(__ATSAML21E18A__) || defined(__SAML21G18A__) || defined(__ATSAML21G18A__) || defined(__SAML21J18A__) || defined(__ATSAML21J18A__)
-
581 #if !defined(SAM_FAMILY)
-
582 #define SAM_FAMILY l21a1
-
583 #endif
-
584 #define SAML21A1
-
585
-
586#elif defined(__SAML21E15B__) || defined(__ATSAML21E15B__) || defined(__SAML21E16B__) || defined(__ATSAML21E16B__) || defined(__SAML21E17B__) || defined(__ATSAML21E17B__) || \
-
587 defined(__SAML21E18B__) || defined(__ATSAML21E18B__) || defined(__SAML21G16B__) || defined(__ATSAML21G16B__) || defined(__SAML21G17B__) || defined(__ATSAML21G17B__) || \
-
588 defined(__SAML21G18B__) || defined(__ATSAML21G18B__) || defined(__SAML21J16B__) || defined(__ATSAML21J16B__) || defined(__SAML21J17B__) || defined(__ATSAML21J17B__) || \
-
589 defined(__SAML21J18B__) || defined(__ATSAML21J18B__) || defined(__SAML21J18BU__) || defined(__ATSAML21J18BU__)
-
590 #if !defined(SAM_FAMILY)
-
591 #define SAM_FAMILY l21b
-
592 #endif
-
593 #define SAML21B
-
594
-
595#elif defined(__SAML22G16A__) || defined(__ATSAML22G16A__) || defined(__SAML22G17A__) || defined(__ATSAML22G17A__) || defined(__SAML22G18A__) || defined(__ATSAML22G18A__) || \
-
596 defined(__SAML22J16A__) || defined(__ATSAML22J16A__) || defined(__SAML22J17A__) || defined(__ATSAML22J17A__) || defined(__SAML22J18A__) || defined(__ATSAML22J18A__) || \
-
597 defined(__SAML22N16A__) || defined(__ATSAML22N16A__) || defined(__SAML22N17A__) || defined(__ATSAML22N17A__) || defined(__SAML22N18A__) || defined(__ATSAML22N18A__)
-
598 #if !defined(SAM_FAMILY)
-
599 #define SAM_FAMILY l22
-
600 #endif
-
601 #define SAML22
-
602
-
603#elif defined(__SAMR21E16A__) || defined(__ATSAMR21E16A__) || defined(__SAMR21E17A__) || defined(__ATSAMR21E17A__) || defined(__SAMR21E18A__) || defined(__ATSAMR21E18A__) || \
-
604 defined(__SAMR21E19A__) || defined(__ATSAMR21E19A__) || defined(__SAMR21G16A__) || defined(__ATSAMR21G16A__) || defined(__SAMR21G17A__) || defined(__ATSAMR21G17A__) || \
-
605 defined(__SAMR21G18A__) || defined(__ATSAMR21G18A__)
-
606 #if !defined(SAM_FAMILY)
-
607 #define SAM_FAMILY r21
-
608 #endif
-
609 #define SAMR21
-
610
-
611#elif defined(__SAMR30E18A__) || defined(__ATSAMR30E18A__) || defined(__SAMR30G18A__) || defined(__ATSAMR30G18A__)
-
612 #if !defined(SAM_FAMILY)
-
613 #define SAM_FAMILY r30
-
614 #endif
-
615 #define SAMR30
-
616
-
617#elif defined(__SAMS70J19__) || defined(__ATSAMS70J19__) || defined(__SAMS70J20__) || defined(__ATSAMS70J20__) || defined(__SAMS70J21__) || defined(__ATSAMS70J21__) || \
-
618 defined(__SAMS70N19__) || defined(__ATSAMS70N19__) || defined(__SAMS70N20__) || defined(__ATSAMS70N20__) || defined(__SAMS70N21__) || defined(__ATSAMS70N21__) || \
-
619 defined(__SAMS70Q19__) || defined(__ATSAMS70Q19__) || defined(__SAMS70Q20__) || defined(__ATSAMS70Q20__) || defined(__SAMS70Q21__) || defined(__ATSAMS70Q21__)
-
620 #if !defined(SAM_FAMILY)
-
621 #define SAM_FAMILY s70a
-
622 #endif
-
623 #define SAMS70A
-
624
-
625#elif defined(__SAMS70J19B__) || defined(__ATSAMS70J19B__) || defined(__SAMS70J20B__) || defined(__ATSAMS70J20B__) || defined(__SAMS70J21B__) || defined(__ATSAMS70J21B__) || \
-
626 defined(__SAMS70N19B__) || defined(__ATSAMS70N19B__) || defined(__SAMS70N20B__) || defined(__ATSAMS70N20B__) || defined(__SAMS70N21B__) || defined(__ATSAMS70N21B__) || \
-
627 defined(__SAMS70Q19B__) || defined(__ATSAMS70Q19B__) || defined(__SAMS70Q20B__) || defined(__ATSAMS70Q20B__) || defined(__SAMS70Q21B__) || defined(__ATSAMS70Q21B__)
-
628 #if !defined(SAM_FAMILY)
-
629 #define SAM_FAMILY s70b
-
630 #endif
-
631 #define SAMS70B
-
632
-
633#elif defined(__SAMV70J19__) || defined(__ATSAMV70J19__) || defined(__SAMV70J20__) || defined(__ATSAMV70J20__) || defined(__SAMV70N19__) || defined(__ATSAMV70N19__) || \
-
634 defined(__SAMV70N20__) || defined(__ATSAMV70N20__) || defined(__SAMV70Q19__) || defined(__ATSAMV70Q19__) || defined(__SAMV70Q20__) || defined(__ATSAMV70Q20__)
-
635 #if !defined(SAM_FAMILY)
-
636 #define SAM_FAMILY v70
-
637 #endif
-
638 #define SAMV70
-
639
-
640#elif defined(__SAMV70J19B__) || defined(__ATSAMV70J19B__) || defined(__SAMV70J20B__) || defined(__ATSAMV70J20B__) || defined(__SAMV70N19B__) || defined(__ATSAMV70N19B__) || \
-
641 defined(__SAMV70N20B__) || defined(__ATSAMV70N20B__) || defined(__SAMV70Q19B__) || defined(__ATSAMV70Q19B__) || defined(__SAMV70Q20B__) || defined(__ATSAMV70Q20B__)
-
642 #if !defined(SAM_FAMILY)
-
643 #define SAM_FAMILY v70b
-
644 #endif
-
645 #define SAMV70B
-
646
-
647#elif defined(__SAMV71J19__) || defined(__ATSAMV71J19__) || defined(__SAMV71J20__) || defined(__ATSAMV71J20__) || defined(__SAMV71J21__) || defined(__ATSAMV71J21__) || \
-
648 defined(__SAMV71N19__) || defined(__ATSAMV71N19__) || defined(__SAMV71N20__) || defined(__ATSAMV71N20__) || defined(__SAMV71N21__) || defined(__ATSAMV71N21__) || \
-
649 defined(__SAMV71Q19__) || defined(__ATSAMV71Q19__) || defined(__SAMV71Q20__) || defined(__ATSAMV71Q20__) || defined(__SAMV71Q21__) || defined(__ATSAMV71Q21__)
-
650 #if !defined(SAM_FAMILY)
-
651 #define SAM_FAMILY v71
-
652 #endif
-
653 #define SAMV71
-
654
-
655#elif defined(__SAMV71J19B__) || defined(__ATSAMV71J19B__) || defined(__SAMV71J20B__) || defined(__ATSAMV71J20B__) || defined(__SAMV71J21B__) || defined(__ATSAMV71J21B__) || \
-
656 defined(__SAMV71N19B__) || defined(__ATSAMV71N19B__) || defined(__SAMV71N20B__) || defined(__ATSAMV71N20B__) || defined(__SAMV71N21B__) || defined(__ATSAMV71N21B__) || \
-
657 defined(__SAMV71Q19B__) || defined(__ATSAMV71Q19B__) || defined(__SAMV71Q20B__) || defined(__ATSAMV71Q20B__) || defined(__SAMV71Q21B__) || defined(__ATSAMV71Q21B__)
-
658 #if !defined(SAM_FAMILY)
-
659 #define SAM_FAMILY v71b
-
660 #endif
-
661 #define SAMV71B
-
662
-
663/******************************/
-
664/*** Microchip PIC Families ***/
-
665/******************************/
-
666#elif defined(__XC__)
-
667 #if defined(__XC32)
-
668 #if !defined(PIC_FAMILY)
-
669 #define PIC_FAMILY pic32
-
670 #endif
-
671 #define PIC32
-
672
-
673 #elif defined(__XC16)
-
674 #if !defined(PIC_FAMILY)
-
675 #define PIC_FAMILY pic16
-
676 #endif
-
677 #define PIC16
-
678
-
679 #elif defined(__XC8)
-
680 #if !defined(PIC_FAMILY)
-
681 #define PIC_FAMILY pic8
-
682 #endif
-
683 #define PIC8
-
684
-
685 #else
-
686 #if !defined(PIC_FAMILY)
-
687 #define PIC_FAMILY pic
-
688 #endif
-
689 #define PIC
-
690
-
691 #endif
-
692
-
693/**********************/
-
694/*** Other Families ***/
-
695/**********************/
-
696/* #elif XXX_FAMILIES
-
697 #if !defined(XXX_FAMILY)
-
698 #define XXX_FAMILY xx //!< XXX family (xx) for name catenation
-
699 #endif
-
700 #define XXXxxxx //!< XXXxxxx family generic define
-
701*/
-
702#elif !defined(INO_FAMILY) && !defined(STM_FAMILY) && !defined(SAM_FAMILY) && !defined(PIC_FAMILY)
-
703 #error "You should add the CMSIS base include following chip used & comment this error."
-
704 #error "If working with STM32 and chip is not in the list, try add STM_FAMILY=(c/f/h/l/mp/u/wb/wl)x in project defines."
-
705 #error "If working with ATMEL SAM and chip is not in the list, try add SAM_FAMILY=(b/c/d/e/g/h/l/r/s/v)xx in project defines."
-
706#endif
-
707
-
708
-
709#if defined(INO_FAMILY)
-
710 /*** Defines for Arduino platform ***/
-
711 #include "arm_chip_ino.h"
-
712
-
713#elif defined(PIC_FAMILY)
-
714 /*** Defines for Microchip PIC families ***/
-
715 #include "arm_chip_pic.h"
-
716
-
717#elif defined(STM_FAMILY)
-
718 /*** Defines for STMicro STM32 families ***/
-
719 #include "arm_chip_stm32.h"
-
720
-
721 #if !defined(USE_HAL_DRIVER)
-
722 #error "This library is intended to be used with chip vendor supplied HAL, please enable it!"
-
723 #endif
-
724
-
725#elif defined(SAM_FAMILY)
-
726 /*** Defines for Atmel SAM families ***/
-
727 #include "arm_chip_sam.h"
-
728
-
729// #elif defined(XXX_FAMILY)
-
730 // For other ARM vendor families
-
731 // #include "arm_fam_XXX.h"
-
732
-
733#else
-
734 #error "You will have to define your own CMSIS_INC & CMSIS_CFG file names with <> around manually (for specified vendor chip before including sarmfsw.h)."
-
735#endif
-
736
-
737#endif /* SARMFSW_NO_CHIP_HAL */
-
738
-
739
-
740/*** arm_inlines_ticks.h needs a generic definition of HALTicks & HAL_MS_TICKS_FACTOR ***/
-
744// cppcheck-suppress-macro misra-c2012-20.7
-
745#define HALTICKS_PROTOTYPE(func) uint32_t func(void)
-
746
-
747// In case chip headers don't include specific HALTicks symbol, define generic one and its external prototype
-
748#ifndef HALTicks
-
749HALTICKS_PROTOTYPE(HAL_GetTick);
-
750#define HALTicks HAL_GetTick
-
751#else
- -
753#endif
-
754
-
755#ifndef HAL_MS_TICKS_FACTOR
-
756#define HAL_MS_TICKS_FACTOR 1U
-
757#endif
-
758
-
759
-
760/* IO definitions (access restrictions to peripheral registers) */
-
761#ifndef __I
-
762#ifdef __cplusplus
-
763#define __I volatile
-
764#else
-
765#define __I volatile const
-
766#endif
-
767#endif
-
768
-
769#ifndef __O
-
770#define __O volatile
-
771#endif
-
772
-
773#ifndef __IO
-
774#define __IO volatile
-
775#endif
-
776
-
777/* following defines should be used for structure members */
-
778#ifndef __IM
-
779#define __IM volatile const
-
780#endif
-
781
-
782#ifndef __OM
-
783#define __OM volatile
-
784#endif
-
785
-
786#ifndef __IOM
-
787#define __IOM volatile
-
788#endif
-
789
-
790
-
791#ifndef UNUSED
-
792#define UNUSED(X) (void) (X)
-
793#endif
-
794
-
795#ifndef UNUSED_RET
-
796#define UNUSED_RET (void)
-
797#endif
-
798
-
799
-
800/****************************************************************/
-
801#ifdef __cplusplus
-
802 }
-
803#endif
-
804
-
805#endif /* ARM_CMSIS_H_ */
-
806// cppcheck-suppress-end [misra-c2012-21.1]
-
807/****************************************************************/
-
Common macros for Arduino.
-
Common macros for PIC.
-
ARM common macros for Atmel SAM families.
-
ARM common macros for STM32.
-
#define HALTICKS_PROTOTYPE(func)
External definition of Ticks getter that shall be implemented in project.
Definition arm_cmsis.h:745
-
#define HALTicks
Alias for HAL get ticks function.
Definition arm_cmsis.h:750
-
- - - - diff --git a/html/arm__errors_8h.html b/html/arm__errors_8h.html index 9475111..efdae02 100644 --- a/html/arm__errors_8h.html +++ b/html/arm__errors_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_errors.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Typedefs | @@ -91,9 +104,7 @@
-
-

Go to the source code of this file.

- +
@@ -258,7 +269,8 @@

+ diff --git a/html/arm__errors_8h_source.html b/html/arm__errors_8h_source.html deleted file mode 100644 index fe94e1b..0000000 --- a/html/arm__errors_8h_source.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_errors.h Source File - - - - - - - - - - - -
-
-

Typedefs

typedef enum FctERR FctERR
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_errors.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_ERRORS_H_
-
8 #define ARM_ERRORS_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
-
19typedef enum FctERR {
- - - - - - - - - - - - - - - - - - -
38 ERROR_IDLE = -18,
- - -
41 ERROR_CRC = -21,
- - - - - - - - -
50 ERROR_CMD = -30,
- - -
53 ERROR_INSTANCE = -33
- -
-
55
-
56
-
57/****************************************************************/
-
58#ifdef __cplusplus
-
59 }
-
60#endif
-
61
-
62#endif /* ARM_ERRORS_H_ */
-
63/****************************************************************/
-
FctERR
Enum of low/mid level functions return state.
Definition arm_errors.h:19
-
@ ERROR_CMD
Command error is detected.
Definition arm_errors.h:50
-
@ ERROR_DISABLED
Device is disabled.
Definition arm_errors.h:28
-
@ ERROR_LINSYNC
LIN synchronization error is detected.
Definition arm_errors.h:47
-
@ ERROR_BUSY
Device is busy.
Definition arm_errors.h:29
-
@ ERROR_RANGE
Parameter out of range.
Definition arm_errors.h:22
-
@ ERROR_QFULL
Queue is full.
Definition arm_errors.h:49
-
@ ERROR_PARITY
Parity error is detected.
Definition arm_errors.h:36
-
@ ERROR_OVERRUN
Overrun error is detected.
Definition arm_errors.h:34
-
@ ERROR_CRC
CRC error is detected.
Definition arm_errors.h:41
-
@ ERROR_FAILED
Requested functionality or process failed.
Definition arm_errors.h:48
-
@ ERROR_TIMEOUT
Abort on timeout error.
Definition arm_errors.h:23
-
@ ERROR_ENABLED
Device is enabled.
Definition arm_errors.h:27
-
@ ERROR_RXEMPTY
No data in receiver.
Definition arm_errors.h:31
-
@ ERROR_PROTECT
Protection error is detected.
Definition arm_errors.h:43
-
@ ERROR_NOTAVAIL
Requested value or method not available.
Definition arm_errors.h:30
-
@ ERROR_MEMORY
Memory error.
Definition arm_errors.h:52
-
@ ERROR_OVERFLOW
Overflow.
Definition arm_errors.h:25
-
@ ERROR_FAULT
Fault error is detected.
Definition arm_errors.h:39
-
@ ERROR_BUSOFF
Bus not available.
Definition arm_errors.h:33
-
@ ERROR_BREAK
Break char is received during communication.
Definition arm_errors.h:40
-
@ ERROR_UNDERFLOW
Underflow error is detected.
Definition arm_errors.h:44
-
@ ERROR_NOISE
Noise error is detected.
Definition arm_errors.h:37
-
@ ERROR_FRAMING
Framing error is detected.
Definition arm_errors.h:35
-
@ ERROR_INSTANCE
Instance error.
Definition arm_errors.h:53
-
@ ERROR_COMMON
Common error of a device.
Definition arm_errors.h:46
-
@ ERROR_TXFULL
Transmitter is full.
Definition arm_errors.h:32
-
@ ERROR_ARBITR
A node lost arbitration. This error occurs if two nodes start transmission at the same time.
Definition arm_errors.h:42
-
@ ERROR_OK
OK.
Definition arm_errors.h:20
-
@ ERROR_UNDERRUN
Underrun error is detected.
Definition arm_errors.h:45
-
@ ERROR_IDLE
Idle error is detected.
Definition arm_errors.h:38
-
@ ERROR_NOTIMPLEM
Function not implemented error.
Definition arm_errors.h:51
-
@ ERROR_MATH
Overflow during evaluation.
Definition arm_errors.h:26
-
@ ERROR_VALUE
Parameter of incorrect value.
Definition arm_errors.h:24
-
@ ERROR_SPEED
This device does not work in the active speed mode.
Definition arm_errors.h:21
-
- - - - diff --git a/html/arm__hal__peripheral_8h.html b/html/arm__hal__peripheral_8h.html index 76ab6df..df48e13 100644 --- a/html/arm__hal__peripheral_8h.html +++ b/html/arm__hal__peripheral_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_hal_peripheral.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
arm_hal_peripheral.h File Reference
@@ -88,9 +101,7 @@
- -

Go to the source code of this file.

-

Detailed Description

+

Detailed Description

ARM HAL peripheral includes.

Warning
for STM32, HAL shall be configured to generate as pairs of h/c files
Author
SMFSW
@@ -98,7 +109,8 @@
+ diff --git a/html/arm__hal__peripheral_8h_source.html b/html/arm__hal__peripheral_8h_source.html deleted file mode 100644 index 8ef9391..0000000 --- a/html/arm__hal__peripheral_8h_source.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_hal_peripheral.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_hal_peripheral.h
-
-
-Go to the documentation of this file.
1
-
7/****************************************************************/
-
8#ifndef ARM_HAL_PERIPHERAL_H_
-
9 #define ARM_HAL_PERIPHERAL_H_
-
10
-
11#ifdef __cplusplus
-
12 extern "C" {
-
13#endif
-
14/****************************************************************/
-
15
-
16#if !defined(HAL_INC_DISABLE)
-
17
-
18 #if defined(STM_FAMILY)
-
19
-
20 #if defined(HAL_MODULE_ENABLED)
-
21 /***********************/
-
22 /*** HAL PERIPHERALS ***/
-
23 /***********************/
-
24 #if defined(HAL_ADC_MODULE_ENABLED) && !defined(HAL_ADC_INC_DISABLE)
-
25 #include "adc.h"
-
26 #endif /* HAL_ADC_MODULE_ENABLED */
-
27
-
28 #if defined(HAL_CAN_MODULE_ENABLED) && !defined(HAL_CAN_INC_DISABLE)
-
29 #include "can.h"
-
30 #endif /* HAL_CAN_MODULE_ENABLED */
-
31
-
32 #if defined(HAL_CEC_MODULE_ENABLED) && !defined(HAL_CEC_INC_DISABLE)
-
33 #include "cec.h"
-
34 #endif /* HAL_CEC_MODULE_ENABLED */
-
35
-
36 #if defined(HAL_COMP_MODULE_ENABLED) && !defined(HAL_COMP_INC_DISABLE)
-
37 #include "comp.h"
-
38 #endif /* HAL_COMP_MODULE_ENABLED */
-
39
-
40 #if defined(HAL_CRC_MODULE_ENABLED) && !defined(HAL_CRC_INC_DISABLE)
-
41 #include "crc.h"
-
42 #endif /* HAL_CRC_MODULE_ENABLED */
-
43
-
44 #if defined(HAL_CRYP_MODULE_ENABLED) && !defined(HAL_CRYP_INC_DISABLE)
-
45 #include "cryp.h"
-
46 #endif /* HAL_CRYP_MODULE_ENABLED */
-
47
-
48 #if defined(HAL_DAC_MODULE_ENABLED) && !defined(HAL_DAC_INC_DISABLE)
-
49 #include "dac.h"
-
50 #endif /* HAL_DAC_MODULE_ENABLED */
-
51
-
52 #if defined(HAL_DCMI_MODULE_ENABLED) && !defined(HAL_DCMI_INC_DISABLE)
-
53 #include "dcmi.h"
-
54 #endif /* HAL_DCMI_MODULE_ENABLED */
-
55
-
56// #if defined(HAL_DMA_MODULE_ENABLED) && !defined(HAL_DMA_INC_DISABLE)
-
57// #include "dma.h" // No header generated
-
58// #endif /* HAL_DMA_MODULE_ENABLED */
-
59
-
60// #if defined(HAL_DMA2D_MODULE_ENABLED) && !defined(HAL_DMA2D_INC_DISABLE)
-
61// #include "dma2d.h" // No header generated
-
62// #endif /* HAL_DMA2D_MODULE_ENABLED */
-
63
-
64// #if defined(HAL_ETH_MODULE_ENABLED) && !defined(HAL_ETH_INC_DISABLE)
-
65// #include "eth.h" // No header generated
-
66// #endif /* HAL_ETH_MODULE_ENABLED */
-
67
-
68 #if defined(HAL_FDCAN_MODULE_ENABLED) && !defined(HAL_FDCAN_INC_DISABLE)
-
69 #include "fdcan.h"
-
70 #endif /* HAL_FDCAN_MODULE_ENABLED */
-
71
-
72 #if defined(HAL_GPIO_MODULE_ENABLED) && !defined(HAL_GPIO_INC_DISABLE)
-
73 #include "gpio.h"
-
74 #endif /* HAL_GPIO_MODULE_ENABLED */
-
75
-
76 #if defined(HAL_HASH_MODULE_ENABLED) && !defined(HAL_HASH_INC_DISABLE)
-
77 #include "hash.h"
-
78 #endif /* HAL_HASH_MODULE_ENABLED */
-
79
-
80// #if defined(HAL_HCD_MODULE_ENABLED) && !defined(HAL_HCD_INC_DISABLE)
-
81// #include "hcd.h" // No header generated
-
82// #endif /* HAL_HCD_MODULE_ENABLED */
-
83
-
84 #if defined(HAL_HRTIM_MODULE_ENABLED) && !defined(HAL_HRTIM_INC_DISABLE)
-
85 #include "hrtim.h"
-
86 #endif /* HAL_HRTIM_MODULE_ENABLED */
-
87
-
88// #if defined(HAL_HSEM_MODULE_ENABLED) && !defined(HAL_HSEM_INC_DISABLE)
-
89// #include "hsem.h" // No header generated
-
90// #endif /* HAL_HSEM_MODULE_ENABLED */
-
91
-
92 #if defined(HAL_I2C_MODULE_ENABLED) && !defined(HAL_I2C_INC_DISABLE)
-
93 #include "i2c.h"
-
94 #endif /* HAL_I2C_MODULE_ENABLED */
-
95
-
96 #if defined(HAL_IRDA_MODULE_ENABLED) && !defined(HAL_IRDA_INC_DISABLE)
-
97 #include "irda.h"
-
98 #endif /* HAL_IRDA_MODULE_ENABLED */
-
99
-
100 #if defined(HAL_I2S_MODULE_ENABLED) && !defined(HAL_I2S_INC_DISABLE)
-
101 #include "i2s.h"
-
102 #endif /* HAL_I2S_MODULE_ENABLED */
-
103
-
104 #if defined(HAL_IWDG_MODULE_ENABLED) && !defined(HAL_IWDG_INC_DISABLE)
-
105 #include "iwdg.h"
-
106 #endif /* HAL_IWDG_MODULE_ENABLED */
-
107
-
108 #if defined(HAL_JPEG_MODULE_ENABLED) && !defined(HAL_JPEG_INC_DISABLE)
-
109 #include "libjpeg.h"
-
110 #include "jconfig.h"
-
111 #include "jmorecfg.h"
-
112 #endif /* HAL_JPEG_MODULE_ENABLED */
-
113
-
114 #if defined(HAL_LPTIM_MODULE_ENABLED) && !defined(HAL_LPTIM_INC_DISABLE)
-
115 #include "lptim.h"
-
116 #endif /* HAL_LPTIM_MODULE_ENABLED */
-
117
-
118 #if defined(HAL_LTDC_MODULE_ENABLED) && !defined(HAL_LTDC_INC_DISABLE)
-
119 #include "ltdc.h"
-
120 #endif /* HAL_LTDC_MODULE_ENABLED */
-
121
-
122 #if defined(HAL_MDIOS_MODULE_ENABLED) && !defined(HAL_MDIOS_INC_DISABLE)
-
123 #include "mdios.h"
-
124 #endif /* HAL_MDIOS_MODULE_ENABLED */
-
125
-
126// #if defined(HAL_MDMA_MODULE_ENABLED) && !defined(HAL_MDMA_INC_DISABLE)
-
127// #include "mdma.h" // No header generated
-
128// #endif /* HAL_MDMA_MODULE_ENABLED */
-
129
-
130 #if defined(HAL_NAND_MODULE_ENABLED) && !defined(HAL_NAND_INC_DISABLE)
-
131 #include "nand.h"
-
132 #endif /* HAL_NAND_MODULE_ENABLED */
-
133
-
134 #if defined(HAL_NOR_MODULE_ENABLED) && !defined(HAL_NOR_INC_DISABLE)
-
135 #include "nor.h"
-
136 #endif /* HAL_NOR_MODULE_ENABLED */
-
137
-
138 #if defined(HAL_OPAMP_MODULE_ENABLED) && !defined(HAL_OPAMP_INC_DISABLE)
-
139 #include "opamp.h"
-
140 #endif /* HAL_OPAMP_MODULE_ENABLED */
-
141
-
142 #if defined(HAL_PCCARD_MODULE_ENABLED) && !defined(HAL_PCCARD_INC_DISABLE)
-
143 #include "pccard.h"
-
144 #endif /* HAL_PCCARD_MODULE_ENABLED */
-
145
-
146 #if defined(HAL_PCD_MODULE_ENABLED) && !defined(HAL_PCD_INC_DISABLE)
-
147 #include "usb_device.h"
-
148 #endif /* HAL_PCD_MODULE_ENABLED */
-
149
-
150 #if defined(HAL_QSPI_MODULE_ENABLED) && !defined(HAL_QSPI_INC_DISABLE)
-
151 #include "quadspi.h"
-
152 #endif /* HAL_QSPI_MODULE_ENABLED */
-
153
-
154 #if defined(HAL_RNG_MODULE_ENABLED) && !defined(HAL_RNG_INC_DISABLE)
-
155 #include "rng.h"
-
156 #endif /* HAL_RNG_MODULE_ENABLED */
-
157
-
158 #if defined(HAL_RTC_MODULE_ENABLED) && !defined(HAL_RTC_INC_DISABLE)
-
159 #include "rtc.h"
-
160 #endif /* HAL_RTC_MODULE_ENABLED */
-
161
-
162 #if defined(HAL_SAI_MODULE_ENABLED) && !defined(HAL_SAI_INC_DISABLE)
-
163 #include "sai.h"
-
164 #endif /* HAL_SAI_MODULE_ENABLED */
-
165
-
166 #if defined(HAL_SD_MODULE_ENABLED) && !defined(HAL_SD_INC_DISABLE)
-
167 #include "sd.h"
-
168 #endif /* HAL_SD_MODULE_ENABLED */
-
169
-
170 #if defined(HAL_SDADC_MODULE_ENABLED) && !defined(HAL_SDADC_INC_DISABLE)
-
171 #include "sdadc.h"
-
172 #endif /* HAL_SDADC_MODULE_ENABLED */
-
173
-
174 #if defined(HAL_SPDIFRX_MODULE_ENABLED) && !defined(HAL_SPDIFRX_INC_DISABLE)
-
175 #include "spdifrx.h"
-
176 #endif /* HAL_SPDIFRX_MODULE_ENABLED */
-
177
-
178 #if defined(HAL_SMARTCARD_MODULE_ENABLED) && !defined(HAL_SMARTCARD_INC_DISABLE)
-
179 #include "smartcard.h"
-
180 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
-
181
-
182 #if defined(HAL_SMBUS_MODULE_ENABLED) && !defined(HAL_SMBUS_INC_DISABLE)
-
183 #include "smbus.h"
-
184 #endif /* HAL_SMBUS_MODULE_ENABLED */
-
185
-
186 #if defined(HAL_SPI_MODULE_ENABLED) && !defined(HAL_SPI_INC_DISABLE)
-
187 #include "spi.h"
-
188 #endif /* HAL_SPI_MODULE_ENABLED */
-
189
-
190 #if defined(HAL_SRAM_MODULE_ENABLED) && !defined(HAL_SRAM_INC_DISABLE)
-
191 #include "sram.h"
-
192 #endif /* HAL_SRAM_MODULE_ENABLED */
-
193
-
194 #if defined(HAL_SWPMI_MODULE_ENABLED) && !defined(HAL_SWPMI_INC_DISABLE)
-
195 #include "swpmi.h"
-
196 #endif /* HAL_SWPMI_MODULE_ENABLED */
-
197
-
198 #if defined(HAL_TIM_MODULE_ENABLED) && !defined(HAL_TIM_INC_DISABLE)
-
199 #include "tim.h"
-
200 #endif /* HAL_TIM_MODULE_ENABLED */
-
201
-
202 #if defined(HAL_TSC_MODULE_ENABLED) && !defined(HAL_TSC_INC_DISABLE)
-
203 #include "tsc.h"
-
204 #endif /* HAL_TSC_MODULE_ENABLED */
-
205
-
206 #if defined(HAL_UART_MODULE_ENABLED) && !defined(HAL_UART_INC_DISABLE)
-
207 #include "usart.h"
-
208 #endif /* HAL_UART_MODULE_ENABLED */
-
209
-
210 #if defined(HAL_USART_MODULE_ENABLED) && !defined(HAL_USART_INC_DISABLE)
-
211 #include "usart.h"
-
212 #endif /* HAL_USART_MODULE_ENABLED */
-
213
-
214 #if defined(HAL_WWDG_MODULE_ENABLED) && !defined(HAL_WWDG_INC_DISABLE)
-
215 #include "wwdg.h"
-
216 #endif /* HAL_WWDG_MODULE_ENABLED */
-
217
-
218 #endif
-
219
-
220 #elif defined(SAM_FAMILY)
-
221
-
222 // SAM families HAL config includes already included by CMSIS include
-
223
-
224 #endif
-
225
-
226#endif
-
227
-
228/****************************************************************/
-
229#ifdef __cplusplus
-
230 }
-
231#endif
-
232
-
233#endif /* ARM_HAL_PERIPHERAL_H_ */
-
234/****************************************************************/
-
- - - - diff --git a/html/arm__inlines_8h.html b/html/arm__inlines_8h.html index 592d3e9..33e8a08 100644 --- a/html/arm__inlines_8h.html +++ b/html/arm__inlines_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
arm_inlines.h File Reference
@@ -78,20 +91,20 @@

ARM common inlines. More...

-
#include "arm_inlines_ticks.h"
-#include "arm_inlines_binary.h"
-#include "arm_inlines_ascii.h"
-#include "arm_inlines_bcd.h"
-#include "arm_inlines_gray.h"
-#include "arm_inlines_var_size.h"
-#include "arm_inlines_var_test.h"
-#include "arm_inlines_endian.h"
-#include "arm_inlines_float.h"
-#include "arm_inlines_average.h"
-#include "arm_inlines_linearization.h"
-#include "arm_inlines_angle.h"
-#include "arm_inlines_rotation.h"
-#include "arm_inlines_temperature.h"
+
Include dependency graph for arm_inlines.h:
@@ -144,16 +157,15 @@
-
-

Go to the source code of this file.

-

Detailed Description

+

Detailed Description

ARM common inlines.

Author
SMFSW
+ diff --git a/html/arm__inlines_8h_source.html b/html/arm__inlines_8h_source.html deleted file mode 100644 index fea0b42..0000000 --- a/html/arm__inlines_8h_source.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_H_
-
8 #define ARM_INLINES_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
16/********************/
-
17/*** TIME TESTS ***/
-
18/********************/
-
19#include "arm_inlines_ticks.h"
-
20
-
21/******************************/
-
22/*** BINARY MANIPULATIONS ***/
-
23/******************************/
-
24#include "arm_inlines_binary.h"
-
25
-
26/*************************************************/
-
27/*** HEX, ASCII, BCD & GRAY CODE CONVERSIONS ***/
-
28/*************************************************/
-
29#include "arm_inlines_ascii.h"
-
30#include "arm_inlines_bcd.h"
-
31#include "arm_inlines_gray.h"
-
32
-
33/******************************/
-
34/*** VAR SIZE CONVERSIONS ***/
-
35/******************************/
- -
37
-
38/************************/
-
39/*** VALUES TESTING ***/
-
40/************************/
- -
42
-
43/***************************************/
-
44/*** ENDIANS CONVERSIONS & TESTING ***/
-
45/***************************************/
-
46#include "arm_inlines_endian.h"
-
47
-
48/************************/
-
49/*** FLOATING POINT ***/
-
50/************************/
-
51#include "arm_inlines_float.h"
-
52
-
53/*******************/
-
54/*** AVERAGING ***/
-
55/*******************/
-
56#include "arm_inlines_average.h"
-
57
-
58/***********************/
-
59/*** LINEARIZATION ***/
-
60/***********************/
- -
62
-
63/**************************/
-
64/*** ANGLE CONVERSIONS ***/
-
65/**************************/
-
66#include "arm_inlines_angle.h"
-
67
-
68/*******************/
-
69/*** ROTATTION ***/
-
70/*******************/
- -
72
-
73/********************************/
-
74/*** TEMPERATURE CONVERSIONS ***/
-
75/********************************/
- -
77
-
78
-
79/****************************************************************/
-
80#ifdef __cplusplus
-
81 }
-
82#endif
-
83
-
84#endif /* ARM_INLINES_H_ */
-
85/****************************************************************/
-
Angle conversion inlines.
-
ASCII code conversion inlines.
-
Averaging inlines.
-
BCD code conversion inlines.
-
Binary manipulation inlines.
-
Endian conversion and testing inlines.
-
Floating point manipulation inlines.
-
Gray code conversion inlines.
-
Linearization inlines.
-
Rotation inlines.
-
Temperature conversion inlines.
-
Ticks related inlines.
-
Variables size conversion inlines.
-
Variables test inlines.
-
- - - - diff --git a/html/arm__inlines__angle_8h.html b/html/arm__inlines__angle_8h.html index a27ba7f..81203b7 100644 --- a/html/arm__inlines__angle_8h.html +++ b/html/arm__inlines__angle_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_angle.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -104,9 +117,7 @@
-
-

Go to the source code of this file.

- +
@@ -579,7 +590,8 @@

+ diff --git a/html/arm__inlines__angle_8h_source.html b/html/arm__inlines__angle_8h_source.html deleted file mode 100644 index dbbaa3f..0000000 --- a/html/arm__inlines__angle_8h_source.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_angle.h Source File - - - - - - - - - - - -
-
-

Macros

#define M_SQRT2   1.41421356237309504880
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_angle.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_ANGLE_H_
-
8 #define ARM_INLINES_ANGLE_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13
-
14#include <math.h>
-
15/****************************************************************/
-
16
-
17
-
18#if !defined(M_SQRT2)
-
19#define M_SQRT2 1.41421356237309504880
-
20#endif
-
21
-
22#if !defined(M_PI)
-
23#define M_PI 3.14159265358979323846
-
24#endif
-
25
-
26#if !defined(M_TWOPI)
-
27#define M_TWOPI (M_PI * 2.0)
-
28#endif
-
29
-
30#define M_PI_180 (M_PI / 180.0)
-
31#define M_180_PI (180.0 / M_PI)
-
32
-
33
-
-
38__INLINE float RAD_NORM(const float rad)
-
39{
-
40 const float val = (rad < 0.0f) ? M_TWOPI : -M_TWOPI;
-
41 float r = rad;
-
42
-
43 while (fabs(r) > M_TWOPI) { r += val; }
-
44
-
45 return r;
-
46}
-
-
47
-
48
-
-
53__INLINE float DEG_NORM(const float deg)
-
54{
-
55 const float val = (deg < 0.0f) ? 360.0f : -360.0f;
-
56 float d = deg;
-
57
-
58 while (fabs(d) > 360.0f) { d += val; }
-
59
-
60 return d;
-
61}
-
-
62
-
63
-
64#if !defined(ARDUINO)
-
-
70__INLINE float RAD_TO_DEG(const float rad)
-
71{
-
72 return RAD_NORM(rad) * M_180_PI;
-
73}
-
-
74
-
75
-
-
81__INLINE float DEG_TO_RAD(const float deg)
-
82{
-
83 return DEG_NORM(deg) * M_PI_180;
-
84}
-
-
85#endif
-
86
-
87
-
-
92__INLINE float RAD_TO_FLOAT(const float rad)
-
93{
-
94 return RAD_NORM(rad) / M_TWOPI;
-
95}
-
-
96
-
-
101__INLINE float FLOAT_TO_RAD(const float val)
-
102{
-
103 return (val - (float) ((intCPU_t) val)) * M_TWOPI;
-
104}
-
-
105
-
106
-
-
111__INLINE float DEG_TO_FLOAT(const float deg)
-
112{
-
113 return DEG_NORM(deg) / 360.0f;
-
114}
-
-
115
-
-
120__INLINE float FLOAT_TO_DEG(const float val)
-
121{
-
122 return (val - (float) ((intCPU_t) val)) * 360.0f;
-
123}
-
-
124
-
125
-
126/****************************************************************/
-
127#ifdef __cplusplus
-
128 }
-
129#endif
-
130
-
131#endif /* ARM_INLINES_ANGLE_H_ */
-
132/****************************************************************/
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
float DEG_TO_FLOAT(const float deg)
Degrees to 0-1 scaled float conversion.
Definition arm_inlines_angle.h:111
-
#define M_TWOPI
2*Pi approximation constant
Definition arm_inlines_angle.h:27
-
float DEG_NORM(const float deg)
Degrees normalization (normalize angle to single rotation)
Definition arm_inlines_angle.h:53
-
float RAD_NORM(const float rad)
Radians normalization (normalize angle to single rotation)
Definition arm_inlines_angle.h:38
-
float RAD_TO_DEG(const float rad)
Radians to degrees conversion.
Definition arm_inlines_angle.h:70
-
float DEG_TO_RAD(const float deg)
Degrees to radians conversion.
Definition arm_inlines_angle.h:81
-
float FLOAT_TO_RAD(const float val)
0-1 scaled float to radians conversion
Definition arm_inlines_angle.h:101
-
#define M_PI_180
Pi/180 approximation constant.
Definition arm_inlines_angle.h:30
-
float RAD_TO_FLOAT(const float rad)
Radians to 0-1 scaled float conversion.
Definition arm_inlines_angle.h:92
-
float FLOAT_TO_DEG(const float val)
0-1 scaled float to degrees conversion
Definition arm_inlines_angle.h:120
-
#define M_180_PI
180/Pi approximation constant
Definition arm_inlines_angle.h:31
-
int intCPU_t
Signed integer typedef.
Definition arm_typedefs.h:64
-
- - - - diff --git a/html/arm__inlines__ascii_8h.html b/html/arm__inlines__ascii_8h.html index 74f101b..68f77b0 100644 --- a/html/arm__inlines__ascii_8h.html +++ b/html/arm__inlines__ascii_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_ascii.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -92,9 +105,7 @@
-
-

Go to the source code of this file.

- +
@@ -476,7 +487,7 @@

DWORD strDecToInt

- + @@ -525,7 +536,7 @@

DWORD strHexToInt

- + @@ -655,7 +666,8 @@

+ diff --git a/html/arm__inlines__ascii_8h_source.html b/html/arm__inlines__ascii_8h_source.html deleted file mode 100644 index d5199dd..0000000 --- a/html/arm__inlines__ascii_8h_source.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_ascii.h Source File - - - - - - - - - - - -
-
-

Functions

BOOL isLowerCase (const CHAR ascii)
(const CHAR *const pASCII, const CHAR *const pASCII,
(const CHAR *const pASCII, const CHAR *const pASCII,
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_ascii.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_ASCII_H_
-
8 #define ARM_INLINES_ASCII_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13
-
14//#include <ctype.h>
-
15/****************************************************************/
-
16
-
17
-
- -
24 return binEval((ascii >= 'a') && (ascii <= 'z')); }
-
-
25
-
26
-
- -
33 return binEval((ascii >= 'A') && (ascii <= 'Z')); }
-
-
34
-
35
-
-
40__INLINE BOOL isAlpha(const CHAR ascii) {
-
41 return binEval(isLowerCase(ascii) || isUpperCase(ascii)); }
-
-
42
-
43
-
-
48__INLINE BOOL isNum(const CHAR ascii) {
-
49 return binEval((ascii >= '0') && (ascii <= '9')); }
-
-
50
-
51
-
- -
57 return binEval(isNum(ascii) || isAlpha(ascii)); }
-
-
58
-
59
-
- -
66 return binEval(isUpperCase(ascii)) ? (ascii + ('a' - 'A')) : ascii; }
-
-
67
-
68
-
- -
75 return binEval(isLowerCase(ascii)) ? (ascii - ('a' - 'A')) : ascii; }
-
-
76
-
77
-
- -
83{
-
84 const BYTE h = hex & 0x0FU;
-
85 return (CHAR) (h) + ((h < 0x0AU) ? 0x30 : 0x37);
-
86}
-
-
87
-
88
-
- -
94{
-
95 BYTE h = (BYTE) ascii;
-
96
-
97 if ((ascii >= '0') && (ascii <= '9')) { h -= 0x30U; }
-
98 else if ((ascii >= 'A') && (ascii <= 'F')) { h -= 0x37U; }
-
99 else if ((ascii >= 'a') && (ascii <= 'f')) { h -= 0x57U; }
-
100 else { h = 0xFFU; }
-
101
-
102 return h;
-
103}
-
-
104
-
-
110__INLINE DWORD NONNULL__ strDecToInt(const CHAR * const pASCII, const BYTE len)
-
111{
-
112 DWORD dec = 0;
-
113 DWORD mult = 1U;
-
114
-
115 for (uintCPU_t i = len ; i > 0U ; i--)
-
116 {
-
117 const BYTE single = ASCIIToHex(pASCII[i - 1U]);
-
118 if (single > 9U) { break; }
-
119
-
120 dec += single * mult;
-
121 mult *= 10U;
-
122 }
-
123
-
124 return dec;
-
125}
-
-
126
-
127
-
-
133__INLINE DWORD NONNULL__ strHexToInt(const CHAR * const pASCII, const BYTE len)
-
134{
-
135 DWORD hex = 0;
-
136 DWORD shift = 0;
-
137
-
138 for (uintCPU_t i = len ; i > 0U ; i--)
-
139 {
-
140 const BYTE nybble = ASCIIToHex(pASCII[i - 1U]);
-
141 if (nybble == 0xFFU) { break; }
-
142
-
143 hex |= LSHIFT(nybble, shift);
-
144 shift += 4U;
-
145 }
-
146
-
147 return hex;
-
148}
-
-
149
-
150
-
151/****************************************************************/
-
152#ifdef __cplusplus
-
153 }
-
154#endif
-
155
-
156#endif /* ARM_INLINES_ASCII_H_ */
-
157/****************************************************************/
-
#define NONNULL__
Non null attribute (all pointers will be checked)
Definition arm_attributes.h:120
-
#define INLINE__
Always inline attribute.
Definition arm_attributes.h:119
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
BYTE ASCIIToHex(const CHAR ascii)
Converts ASCII char to hexadecimal.
Definition arm_inlines_ascii.h:93
-
BOOL isLowerCase(const CHAR ascii)
test for lower case alphabetic char
Definition arm_inlines_ascii.h:23
-
BOOL isAlphaNum(const CHAR ascii)
test for alphanumeric char
Definition arm_inlines_ascii.h:56
-
CHAR HexToASCII(const BYTE hex)
Converts hexadecimal value to ASCII.
Definition arm_inlines_ascii.h:82
-
BOOL isUpperCase(const CHAR ascii)
test for upper case alphabetic char
Definition arm_inlines_ascii.h:32
-
DWORD strHexToInt(const CHAR *const pASCII, const BYTE len)
ASCII hexadecimal string to 32bit unsigned integer.
Definition arm_inlines_ascii.h:133
-
BOOL isAlpha(const CHAR ascii)
test for alphabetic char
Definition arm_inlines_ascii.h:40
-
CHAR toLowerCase(const CHAR ascii)
Convert upper case alphabetic char to lower case.
Definition arm_inlines_ascii.h:65
-
DWORD strDecToInt(const CHAR *const pASCII, const BYTE len)
ASCII decimal string to 32bit unsigned integer.
Definition arm_inlines_ascii.h:110
-
BOOL isNum(const CHAR ascii)
test for numeric char
Definition arm_inlines_ascii.h:48
-
CHAR toUpperCase(const CHAR ascii)
Convert lower case alphabetic char to upper case.
Definition arm_inlines_ascii.h:74
-
#define binEval(exp)
boolean evaluation of expression exp
Definition arm_macros.h:192
-
#define LSHIFT(v, n)
Shift v n bits left.
Definition arm_macros.h:87
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
bool BOOL
boolean typedef (1bit, for stdbool.h handling compilers)
Definition arm_typedefs.h:67
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
char CHAR
Char typedef (8bits)
Definition arm_typedefs.h:68
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
- - - - diff --git a/html/arm__inlines__average_8h.html b/html/arm__inlines__average_8h.html index d206760..844dd8d 100644 --- a/html/arm__inlines__average_8h.html +++ b/html/arm__inlines__average_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_average.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -93,9 +106,7 @@
-
-

Go to the source code of this file.

- +
@@ -142,12 +153,12 @@

#define RESTRICTED_AVERAGE

- + - +

Macros

#define RESTRICTED_AVERAGE(typ_t, sum_t)
( typ_t, typ_t,
sum_t ) sum_t )
@@ -208,7 +219,7 @@

BYTE RestrictedAverage_BYTE ( - volatile const BYTE pArray[], + volatile const BYTE pArray[], @@ -248,7 +259,7 @@

double RestrictedAverage_double ( - volatile const double pArray[], + volatile const double pArray[], @@ -288,7 +299,7 @@

DWORD RestrictedAverage_DWORD ( - volatile const DWORD pArray[], + volatile const DWORD pArray[], @@ -328,7 +339,7 @@

float RestrictedAverage_float ( - volatile const float pArray[], + volatile const float pArray[], @@ -368,7 +379,7 @@

SBYTE RestrictedAverage_SBYTE ( - volatile const SBYTE pArray[], + volatile const SBYTE pArray[], @@ -408,7 +419,7 @@

SDWORD RestrictedAverage_SDWORD ( - volatile const SDWORD pArray[], + volatile const SDWORD pArray[], @@ -448,7 +459,7 @@

SWORD RestrictedAverage_SWORD ( - volatile const SWORD pArray[], + volatile const SWORD pArray[], @@ -488,7 +499,7 @@

WORD RestrictedAverage_WORD ( - volatile const WORD pArray[], + volatile const WORD pArray[], @@ -519,7 +530,8 @@

+

diff --git a/html/arm__inlines__average_8h_source.html b/html/arm__inlines__average_8h_source.html deleted file mode 100644 index 18d7dfa..0000000 --- a/html/arm__inlines__average_8h_source.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_average.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_average.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_AVERAGE_H_
-
8 #define ARM_INLINES_AVERAGE_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
24// cppcheck-suppress-macro [misra-c2012-18.8, misra-c2012-20.7, misra-c2012-20.10]
-
-
25#define RESTRICTED_AVERAGE(typ_t, sum_t) \
-
26__INLINE typ_t RestrictedAverage_##typ_t(volatile const typ_t pArray[], const uint8_t nb) \
-
27{ \
-
28 const typ_t n = (typ_t) nb - (typ_t) 2; \
-
29 typ_t average = (typ_t) 0; \
-
30 \
-
31 if (nb > 2U) \
-
32 { \
-
33 /* Array copy (memcpy not used as copy by byte and pTab may be volatile) */ \
-
34 typ_t array[nb]; \
-
35 for (uintCPU_t i = 0 ; i < nb ; i++) { array[i] = pArray[i]; } \
-
36 \
-
37 /* Sum and min/max recording */ \
-
38 sum_t min_val = pArray[0]; \
-
39 sum_t max_val = pArray[0]; \
-
40 sum_t sum = (typ_t) 0; \
-
41 for (uintCPU_t i = 0 ; i < nb ; i++) \
-
42 { \
-
43 sum += array[i]; \
-
44 if (array[i] > max_val) { max_val = array[i]; } \
-
45 if (array[i] < min_val) { min_val = array[i]; } \
-
46 } \
-
47 \
-
48 /* Averaging */ \
-
49 sum -= min_val + max_val; \
-
50 sum /= n; \
-
51 average = (typ_t) sum; \
-
52 } \
-
53 \
-
54 return average; \
-
55}
-
-
56
-
57
- -
67
-
68
- -
79
-
80
- -
91
-
92
- -
102
-
103
- -
114
-
115
- -
126
-
127
-
136RESTRICTED_AVERAGE(float, float);
-
137
-
138
-
147RESTRICTED_AVERAGE(double, double);
-
148
-
149
-
150/****************************************************************/
-
151#ifdef __cplusplus
-
152 }
-
153#endif
-
154
-
155#endif /* ARM_INLINES_AVERAGE_H_ */
-
156/****************************************************************/
-
#define RESTRICTED_AVERAGE(typ_t, sum_t)
Definition arm_inlines_average.h:25
-
int8_t SBYTE
Signed Byte typedef (8bits)
Definition arm_typedefs.h:73
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
uint64_t LWORD
Unsigned lWord typedef (64bits)
Definition arm_typedefs.h:72
-
int16_t SWORD
Signed Word typedef (16bits)
Definition arm_typedefs.h:74
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
uint16_t WORD
Unsigned Word typedef (16bits)
Definition arm_typedefs.h:70
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
int64_t SLWORD
Signed lWord typedef (64bits)
Definition arm_typedefs.h:76
-
- - - - diff --git a/html/arm__inlines__bcd_8h.html b/html/arm__inlines__bcd_8h.html index 68391eb..c1325c6 100644 --- a/html/arm__inlines__bcd_8h.html +++ b/html/arm__inlines__bcd_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_bcd.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -103,9 +116,7 @@
-
-

Go to the source code of this file.

- +
@@ -193,7 +204,8 @@

+ diff --git a/html/arm__inlines__bcd_8h_source.html b/html/arm__inlines__bcd_8h_source.html deleted file mode 100644 index eafeade..0000000 --- a/html/arm__inlines__bcd_8h_source.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_bcd.h Source File - - - - - - - - - - - -
-
-

Functions

DWORD HexToBCD (const DWORD hex)
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_bcd.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_BCD_H_
-
8 #define ARM_INLINES_BCD_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13
-
14#include <stdlib.h>
-
15/****************************************************************/
-
16
-
17
-
- -
24{
-
25 DWORD res = 0;
-
26
-
27 if (hex > 99999999U)
-
28 {
-
29 res = (DWORD) -1;
-
30 }
-
31 else
-
32 {
-
33 div_t tmp;
-
34 tmp.quot = hex;
-
35
-
36 for (uintCPU_t i = 0 ; i < 8U ; i++)
-
37 {
-
38 tmp = div(tmp.quot, 10);
-
39 res |= LSHIFT(tmp.rem, (4U * i));
-
40 }
-
41 }
-
42
-
43 return res;
-
44}
-
-
45
-
46
-
- -
53{
-
54 DWORD res = 0;
-
55 DWORD mult = 1U;
-
56
-
57 for (uintCPU_t i = 0 ; i < 8U ; i++)
-
58 {
-
59 const BYTE single = (BYTE) (RSHIFT(bcd, (4U * i)) & 0x0FU);
-
60
-
61 if (single > 9U)
-
62 {
-
63 res = (DWORD) -1;
-
64 break;
-
65 }
-
66
-
67 res += single * mult;
-
68 mult *= 10;
-
69 }
-
70
-
71 return res;
-
72}
-
-
73
-
74
-
75/****************************************************************/
-
76#ifdef __cplusplus
-
77 }
-
78#endif
-
79
-
80#endif /* ARM_INLINES_BCD_H_ */
-
81/****************************************************************/
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
DWORD HexToBCD(const DWORD hex)
Converts hexadecimal value to BCD.
Definition arm_inlines_bcd.h:23
-
DWORD BCDToHex(const DWORD bcd)
Converts BCD value to hexadecimal.
Definition arm_inlines_bcd.h:52
-
#define RSHIFT(v, n)
Shift v n bits right.
Definition arm_macros.h:88
-
#define LSHIFT(v, n)
Shift v n bits left.
Definition arm_macros.h:87
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
- - - - diff --git a/html/arm__inlines__binary_8h.html b/html/arm__inlines__binary_8h.html index 78c68cd..524d539 100644 --- a/html/arm__inlines__binary_8h.html +++ b/html/arm__inlines__binary_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_binary.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -92,9 +105,7 @@
-
-

Go to the source code of this file.

- +
@@ -214,12 +225,12 @@

BYTE nbBitsState

- + - + @@ -260,7 +271,7 @@

DWORD swapBits

- + @@ -291,7 +302,8 @@

+ diff --git a/html/arm__inlines__binary_8h_source.html b/html/arm__inlines__binary_8h_source.html deleted file mode 100644 index d8d50f7..0000000 --- a/html/arm__inlines__binary_8h_source.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_binary.h Source File - - - - - - - - - - - -
-
-

Functions

DWORD maskBits (const BYTE bits)
(const DWORD val, const DWORD val,
const BYTE bits, const BYTE bits,
(const DWORD val, const DWORD val,
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_binary.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_BINARY_H_
-
8 #define ARM_INLINES_BINARY_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
- -
22{
-
23 const uintCPU_t nb_bits = 32;
-
24 const uintCPU_t nb = MIN(bits, nb_bits);
-
25 DWORD mask = 0;
-
26
-
27 for (uintCPU_t i = 0 ; i < nb ; i++)
-
28 {
-
29 mask |= LSHIFT((DWORD) 1, i);
-
30 }
-
31
-
32 return mask;
-
33}
-
-
34
-
35
-
-
43__INLINE BYTE nbBitsState(const DWORD val, const BYTE bits, const BOOL state)
-
44{
-
45 const uintCPU_t nb_bits = 32;
-
46 const uintCPU_t nb = MIN(bits, nb_bits);
-
47 BYTE ret = 0;
-
48
-
49 for (uintCPU_t i = 0 ; i < nb ; i++)
-
50 {
-
51 if ((val & LSHIFT((DWORD) 1, i)) != 0U)
-
52 {
-
53 ret++;
-
54 }
-
55 }
-
56
-
57 if (!state)
-
58 {
-
59 ret = (BYTE) nb - ret;
-
60 }
-
61
-
62 return ret;
-
63}
-
-
64
-
65
-
- -
74{
-
75 const uintCPU_t nb_bits = 32;
-
76 SDWORD ret = -1;
-
77
-
78 for (uintCPU_t i = nb_bits ; i > 0U ; i--)
-
79 {
-
80 const uintCPU_t bit = i - 1U;
-
81 if ((val & LSHIFT((DWORD) 1, bit)) != 0U)
-
82 {
-
83 ret = (SDWORD) bit;
-
84 break;
-
85 }
-
86 }
-
87
-
88 return ret;
-
89}
-
-
90
-
91
-
-
98__INLINE DWORD swapBits(const DWORD val, const BYTE bits)
-
99{
-
100 const uintCPU_t nb_bits = 32;
-
101 const uintCPU_t nb = MIN(bits, nb_bits) - 1U;
-
102 DWORD swap = 0;
-
103
-
104 for (uintCPU_t i = nb + 1U ; i > 0U ; i--)
-
105 {
-
106 const uintCPU_t bit = i - 1U;
-
107 if ((val & LSHIFT((DWORD) 1, bit)) != 0U)
-
108 {
-
109 swap |= LSHIFT((DWORD) 1, (nb - bit));
-
110 }
-
111 }
-
112
-
113 return swap;
-
114}
-
-
115
-
116
-
117/****************************************************************/
-
118#ifdef __cplusplus
-
119 }
-
120#endif
-
121
-
122#endif /* ARM_INLINES_BINARY_H_ */
-
123/****************************************************************/
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
DWORD maskBits(const BYTE bits)
Create specified number of bits mask.
Definition arm_inlines_binary.h:21
-
DWORD swapBits(const DWORD val, const BYTE bits)
Swap specified number of bits in value (mirroring bits)
Definition arm_inlines_binary.h:98
-
BYTE nbBitsState(const DWORD val, const BYTE bits, const BOOL state)
Check the number of clear/set bits in a variable.
Definition arm_inlines_binary.h:43
-
SDWORD getMSBitSet(const DWORD val)
Get power of 2 of the most significant set bit.
Definition arm_inlines_binary.h:73
-
#define MIN(a, b)
Returns min value between a and b.
Definition arm_macros.h:204
-
#define LSHIFT(v, n)
Shift v n bits left.
Definition arm_macros.h:87
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
bool BOOL
boolean typedef (1bit, for stdbool.h handling compilers)
Definition arm_typedefs.h:67
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
- - - - diff --git a/html/arm__inlines__endian_8h.html b/html/arm__inlines__endian_8h.html index ce34f57..6aa1f3d 100644 --- a/html/arm__inlines__endian_8h.html +++ b/html/arm__inlines__endian_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_endian.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Typedefs | @@ -94,9 +107,7 @@
-
-

Go to the source code of this file.

- +
@@ -256,7 +267,7 @@

void SWAP_END16B_TAB

- + @@ -362,7 +373,7 @@

void SWAP_END32B_TAB

- + @@ -468,7 +479,7 @@

void SWAP_END64B_TAB

- + @@ -520,7 +531,7 @@

eEndian testEndian_basic

- +

Typedefs

typedef enum eEndian eEndian
(WORD tab[], WORD tab[],
(DWORD tab[], DWORD tab[],
(LWORD tab[], LWORD tab[],
(void )void )
@@ -548,7 +559,7 @@

eEndian testEndian_full ( - void ) + void ) @@ -571,7 +582,8 @@

+

diff --git a/html/arm__inlines__endian_8h_source.html b/html/arm__inlines__endian_8h_source.html deleted file mode 100644 index ac237df..0000000 --- a/html/arm__inlines__endian_8h_source.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_endian.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_endian.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_ENDIAN_H_
-
8 #define ARM_INLINES_ENDIAN_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
- -
26
-
27
-
- -
33{
-
34 return (WORD) (LSHIFT((w & 0xFFU), 8) | RSHIFT((w & 0xFF00U), 8));
-
35}
-
-
36
-
37
-
- -
43{
-
44 return (DWORD) (LSHIFT(SWAP_END16B(d & 0xFFFFU), 16) | SWAP_END16B(RSHIFT((d & 0xFFFF0000U), 16)));
-
45}
-
-
46
-
47
-
- -
53{
-
54 return (LWORD) (LSHIFT64(SWAP_END32B(l & 0xFFFFFFFFULL), 32) | SWAP_END32B(RSHIFT64((l & 0xFFFFFFFF00000000ULL), 32)));
-
55}
-
-
56
-
57
-
- -
63{
-
64 for (uintCPU_t i = 0 ; i < nb ; i++) { tab[i] = SWAP_END16B(tab[i]); }
-
65}
-
-
66
-
67
-
- -
73{
-
74 for (uintCPU_t i = 0 ; i < nb ; i++) { tab[i] = SWAP_END32B(tab[i]); }
-
75}
-
-
76
-
77
-
- -
83{
-
84 for (uintCPU_t i = 0 ; i < nb ; i++) { tab[i] = SWAP_END64B(tab[i]); }
-
85}
-
-
86
-
87
-
- -
92{
-
93 const WORD x = 0x100;
-
94
-
95 return (*(const BYTE *) (&x)) ? Endian_big : Endian_little;
-
96}
-
-
97
-
98
-
- -
106{
-
107 // cppcheck-suppress-begin misra-c2012-19.2
-
108 const union {
-
109 DWORD dword;
-
110 BYTE byte[sizeof(DWORD)];
-
111 } tst = { .byte = { 1, 2, 3, 4 } };
-
112 // cppcheck-suppress-end misra-c2012-19.2
-
113
-
114 // cppcheck-suppress-begin misra-c2012-15.5
-
115 switch (tst.dword)
-
116 {
-
117 default: return Endian_unknown;
-
118 case 0x01020304UL: return Endian_big;
-
119 case 0x04030201UL: return Endian_little;
-
120 case 0x03040102UL: return Endian_mid_big;
-
121 case 0x02010403UL: return Endian_mid_little;
-
122 }
-
123 // cppcheck-suppress-end misra-c2012-15.5
-
124}
-
-
125
-
126
-
127/****************************************************************/
-
128#ifdef __cplusplus
-
129 }
-
130#endif
-
131
-
132#endif /* ARM_INLINES_ENDIAN_H_ */
-
133/****************************************************************/
-
#define NONNULL_INLINE__
Non null and Always inline attributes.
Definition arm_attributes.h:128
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
void SWAP_END16B_TAB(WORD tab[], const WORD nb)
Swap endian of a 16b tab (little -> big, big -> little)
Definition arm_inlines_endian.h:62
-
void SWAP_END32B_TAB(DWORD tab[], const WORD nb)
Swap endian of a 32b tab (little -> big, big -> little)
Definition arm_inlines_endian.h:72
-
DWORD SWAP_END32B(const DWORD d)
Swap content endian of a 32b value (little -> big, big -> little)
Definition arm_inlines_endian.h:42
-
void SWAP_END64B_TAB(LWORD tab[], const WORD nb)
Swap endian of a 64b tab (little -> big, big -> little)
Definition arm_inlines_endian.h:82
-
eEndian testEndian_full(void)
Test Core endian (full, recognizing mid endian too)
Definition arm_inlines_endian.h:105
-
LWORD SWAP_END64B(const LWORD l)
Swap content endian of a 64b value (little -> big, big -> little)
Definition arm_inlines_endian.h:52
-
eEndian
Core endian.
Definition arm_inlines_endian.h:19
-
@ Endian_mid_big
Middle big endian configured MCU (Honeywell 316)
Definition arm_inlines_endian.h:23
-
@ Endian_big
Big endian configured MCU.
Definition arm_inlines_endian.h:21
-
@ Endian_mid_little
Middle little endian configured MCU (PDP-11)
Definition arm_inlines_endian.h:22
-
@ Endian_little
Little endian configured MCU.
Definition arm_inlines_endian.h:20
-
@ Endian_unknown
Unknown endian MCU.
Definition arm_inlines_endian.h:24
-
WORD SWAP_END16B(const WORD w)
Swap content endian of a 16b value (little -> big, big -> little)
Definition arm_inlines_endian.h:32
-
eEndian testEndian_basic(void)
Test Core endian.
Definition arm_inlines_endian.h:91
-
#define RSHIFT64(v, n)
Shift v n bits right (up to 63b)
Definition arm_macros.h:100
-
#define LSHIFT64(v, n)
Shift v n bits left (up to 63b)
Definition arm_macros.h:99
-
#define RSHIFT(v, n)
Shift v n bits right.
Definition arm_macros.h:88
-
#define LSHIFT(v, n)
Shift v n bits left.
Definition arm_macros.h:87
-
uint64_t LWORD
Unsigned lWord typedef (64bits)
Definition arm_typedefs.h:72
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
uint16_t WORD
Unsigned Word typedef (16bits)
Definition arm_typedefs.h:70
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
- - - - diff --git a/html/arm__inlines__float_8h.html b/html/arm__inlines__float_8h.html index 8cecd1a..9391b49 100644 --- a/html/arm__inlines__float_8h.html +++ b/html/arm__inlines__float_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_float.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Data Structures | @@ -106,9 +119,7 @@
-
-

Go to the source code of this file.

- +
@@ -152,12 +163,12 @@

#define SPLIT_FLOAT_TO_INTS

- + - +

Data Structures

struct  sIntFrac
( val, val,
nb_frac )   (SDWORD) (val), get_fp_dec((val), (nb_frac)) nb_frac )   (SDWORD) (val), get_fp_dec((val), (nb_frac))
@@ -195,12 +206,12 @@

void float2sIntFrac ( - sIntFrac *const pIntFrac, + sIntFrac *const pIntFrac, - const double f, + const double f, @@ -249,7 +260,7 @@

DWORD get_fp_dec ( - const double f, + const double f, @@ -299,7 +310,7 @@

void sIntFrac2float ( - double *const pFloat, + double *const pFloat, @@ -328,7 +339,8 @@

+

diff --git a/html/arm__inlines__float_8h_source.html b/html/arm__inlines__float_8h_source.html deleted file mode 100644 index 688d413..0000000 --- a/html/arm__inlines__float_8h_source.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_float.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_float.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_FLOAT_H_
-
8 #define ARM_INLINES_FLOAT_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13
-
14#include <math.h>
-
15/****************************************************************/
-
16
-
17
-
19#define SPLIT_FLOAT_TO_INTS(val, nb_frac) (SDWORD) (val), get_fp_dec((val), (nb_frac))
-
20
-
21
- -
31
-
32
-
-
40__INLINE DWORD get_fp_dec(const double f, const BYTE nb)
-
41{
-
42 BYTE digits = MIN(9, nb); // Limit to 9 digits
-
43 DWORD mul = 1;
-
44
-
45 while (digits-- > 0) { mul *= 10; }
-
46
-
47 double dec = fabs(f);
-
48 dec -= (double) ((DWORD) f);
-
49
-
50 return (DWORD) (dec * (double) mul);
-
51}
-
-
52
-
53
-
-
59__INLINE void NONNULL__ float2sIntFrac(sIntFrac * const pIntFrac, const double f, const uint8_t nb_frac)
-
60{
-
61 pIntFrac->nb_frac = MIN(9, nb_frac); // Limit to 9 digits
-
62 pIntFrac->sign = binEval(f < 0.0);
-
63 pIntFrac->integer = (DWORD) (f);
-
64 pIntFrac->fractionnal = get_fp_dec(f, nb_frac);
-
65}
-
-
66
-
67
-
-
72__INLINE void NONNULL__ sIntFrac2float(double * const pFloat, const sIntFrac * const pIntFrac)
-
73{
-
74 *pFloat = pIntFrac->fractionnal;
-
75 for (uintCPU_t i = pIntFrac->nb_frac ; i ; i--) { *pFloat /= 10.0; }
-
76
-
77 *pFloat += pIntFrac->integer;
-
78
-
79 if (pIntFrac->sign) { *pFloat = -*pFloat; }
-
80}
-
-
81
-
82
-
83/****************************************************************/
-
84#ifdef __cplusplus
-
85 }
-
86#endif
-
87
-
88#endif /* ARM_INLINES_FLOAT_H_ */
-
89/****************************************************************/
-
#define NONNULL__
Non null attribute (all pointers will be checked)
Definition arm_attributes.h:120
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
void sIntFrac2float(double *const pFloat, const sIntFrac *const pIntFrac)
Convert sIntFrac integers representation to floating point representation.
Definition arm_inlines_float.h:72
-
DWORD get_fp_dec(const double f, const BYTE nb)
Get floating point number decimal part (as absolute value)
Definition arm_inlines_float.h:40
-
struct sIntFrac sIntFrac
-
void float2sIntFrac(sIntFrac *const pIntFrac, const double f, const uint8_t nb_frac)
Convert floating point representation to sIntFrac integers representation.
Definition arm_inlines_float.h:59
-
#define MIN(a, b)
Returns min value between a and b.
Definition arm_macros.h:204
-
#define binEval(exp)
boolean evaluation of expression exp
Definition arm_macros.h:192
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
bool BOOL
boolean typedef (1bit, for stdbool.h handling compilers)
Definition arm_typedefs.h:67
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
Float representation on integers.
Definition arm_inlines_float.h:25
-
BYTE nb_frac
Number of fractional digits.
Definition arm_inlines_float.h:28
-
DWORD fractionnal
Fractional part.
Definition arm_inlines_float.h:27
-
DWORD integer
Integer part.
Definition arm_inlines_float.h:26
-
BOOL sign
Sign: true if negative.
Definition arm_inlines_float.h:29
-
- - - - diff --git a/html/arm__inlines__gray_8h.html b/html/arm__inlines__gray_8h.html index 23ab757..704a02f 100644 --- a/html/arm__inlines__gray_8h.html +++ b/html/arm__inlines__gray_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_gray.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -92,9 +105,7 @@
-
-

Go to the source code of this file.

- +
@@ -180,7 +191,8 @@

+ diff --git a/html/arm__inlines__gray_8h_source.html b/html/arm__inlines__gray_8h_source.html deleted file mode 100644 index 86792c1..0000000 --- a/html/arm__inlines__gray_8h_source.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_gray.h Source File - - - - - - - - - - - -
-
-

Functions

DWORD bin2gray (const DWORD bin)
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_gray.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_GRAY_H_
-
8 #define ARM_INLINES_GRAY_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
- -
21{
-
22 return (RSHIFT(bin, 1) ^ bin);
-
23}
-
-
24
-
25
-
- -
31{
-
32 uintCPU_t bits = 32;
-
33 DWORD tmp = gray;
-
34
-
35 while ((bits >>= 1) != 0U)
-
36 {
-
37 tmp ^= (tmp >> bits);
-
38 }
-
39
-
40 return tmp;
-
41}
-
-
42
-
43
-
44/****************************************************************/
-
45#ifdef __cplusplus
-
46 }
-
47#endif
-
48
-
49#endif /* ARM_INLINES_GRAY_H_ */
-
50/****************************************************************/
-
#define INLINE__
Always inline attribute.
Definition arm_attributes.h:119
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
DWORD gray2bin(const DWORD gray)
Convert gray code to binary value.
Definition arm_inlines_gray.h:30
-
DWORD bin2gray(const DWORD bin)
Convert binary value to gray code.
Definition arm_inlines_gray.h:20
-
#define RSHIFT(v, n)
Shift v n bits right.
Definition arm_macros.h:88
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
- - - - diff --git a/html/arm__inlines__linearization_8h.html b/html/arm__inlines__linearization_8h.html index ed6c621..850fcdb 100644 --- a/html/arm__inlines__linearization_8h.html +++ b/html/arm__inlines__linearization_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_linearization.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Data Structures | @@ -95,9 +108,7 @@
-
-

Go to the source code of this file.

- +
@@ -141,12 +152,12 @@

#define LINEAR_EVAL

- + - +

Data Structures

struct  sLinearFlexArray
( name, name,
val )   linearization_eval(name.array, name.nb, (val)) val )   linearization_eval(name.array, name.nb, (val))
@@ -219,12 +230,12 @@

SDWORD linearization_eval ( - const SDWORD array[][2], + const SDWORD array[][2], - const DWORD nb, + const DWORD nb, @@ -274,7 +285,7 @@

SDWORD linearization_eval_flex ( - const sLinearFlexArray *const pArray, + const sLinearFlexArray *const pArray, @@ -314,7 +325,8 @@

+

diff --git a/html/arm__inlines__linearization_8h_source.html b/html/arm__inlines__linearization_8h_source.html deleted file mode 100644 index ee4baa5..0000000 --- a/html/arm__inlines__linearization_8h_source.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_linearization.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_linearization.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_LINEARIZATION_H_
-
8 #define ARM_INLINES_LINEARIZATION_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
16/*************************************************/
-
17/*** Non Flexible member array type definition ***/
-
18/*************************************************/
-
21// cppcheck-suppress misra-c2012-20.10
-
-
22#define LINEAR_TAB(name, nbElem) typedef struct sLinear##name { \
-
23 DWORD nb; \
-
24 SDWORD array[nbElem][2]; \
-
25 } sLinear##name;
-
-
26
-
27/*********************************************/
-
28/*** Flexible member array type definition ***/
-
29/*********************************************/
-
-
37typedef struct sLinearFlexArray {
- -
39 // cppcheck-suppress misra-c2012-18.7
-
40 SDWORD array[/*flexible*/][2];
- -
-
42
-
43
-
47// cppcheck-suppress-macro misra-c2012-20.7
-
48#define LINEAR_EVAL(name, val) linearization_eval(name.array, name.nb, (val))
-
49
-
50
-
-
58__INLINE SDWORD NONNULL__ linearization_eval(const SDWORD array[][2], const DWORD nb, const SDWORD val)
-
59{
-
60 DWORD idxMin = 0;
-
61 DWORD idxMax = nb - 1U;
-
62
-
63 // Find indexes
-
64 while (idxMax > (idxMin + 1U))
-
65 {
-
66 const DWORD idx = (((idxMax - idxMin) / 2U) + idxMin);
-
67
-
68 if (val < array[idx][0]) { idxMax = idx; }
-
69 else { idxMin = idx; }
-
70 }
-
71
-
72 // Get interval values
-
73 const float x0 = (float) array[idxMin][0];
-
74 const float y0 = (float) array[idxMin][1];
-
75 const float x1 = (float) array[idxMax][0];
-
76 const float y1 = (float) array[idxMax][1];
-
77
-
78 // Linearize
-
79 const float coef = (y1 - y0) / (x1 - x0);
-
80 return (SDWORD) (coef * ((float) val - x0) + y0);
-
81}
-
-
82
-
83
-
- -
91 return linearization_eval(pArray->array, pArray->nb, val); }
-
-
92
-
93
-
94/****************************************************************/
-
95#ifdef __cplusplus
-
96 }
-
97#endif
-
98
-
99#endif /* ARM_INLINES_LINEARIZATION_H_ */
-
100/****************************************************************/
-
#define NONNULL_INLINE__
Non null and Always inline attributes.
Definition arm_attributes.h:128
-
#define NONNULL__
Non null attribute (all pointers will be checked)
Definition arm_attributes.h:120
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
struct sLinearFlexArray sLinearFlexArray
-
SDWORD linearization_eval_flex(const sLinearFlexArray *const pArray, const SDWORD val)
2 dimensional linearization (flexible member array)
Definition arm_inlines_linearization.h:90
-
SDWORD linearization_eval(const SDWORD array[][2], const DWORD nb, const SDWORD val)
2 dimensional linearization
Definition arm_inlines_linearization.h:58
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
Linearization flexible member array structure.
Definition arm_inlines_linearization.h:37
-
SDWORD array[][2]
Flexible 2 dimensional array member.
Definition arm_inlines_linearization.h:40
-
DWORD nb
Number of items.
Definition arm_inlines_linearization.h:38
-
- - - - diff --git a/html/arm__inlines__rotation_8h.html b/html/arm__inlines__rotation_8h.html index 988cd27..c037e9c 100644 --- a/html/arm__inlines__rotation_8h.html +++ b/html/arm__inlines__rotation_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_rotation.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Data Structures | @@ -105,9 +118,7 @@
-
-

Go to the source code of this file.

- +
@@ -157,7 +168,7 @@

sCoord2D rotate_2D

- + @@ -191,7 +202,8 @@

+ diff --git a/html/arm__inlines__rotation_8h_source.html b/html/arm__inlines__rotation_8h_source.html deleted file mode 100644 index 5da4f1e..0000000 --- a/html/arm__inlines__rotation_8h_source.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_rotation.h Source File - - - - - - - - - - - -
-
-

Data Structures

struct  sCoord2D
(const sCoord2D c, const sCoord2D c,
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_rotation.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_ROTATION_H_
-
8 #define ARM_INLINES_ROTATION_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13
-
14#include <math.h>
-
15/****************************************************************/
-
16
-
17
-
-
21typedef struct sCoord2D {
- - - -
-
25
-
26
-
- -
36{
-
37 sCoord2D r = { c.x, c.y };
-
38 SWORD deg = angle % 360;
-
39
-
40 if (deg < 0) { deg += 360; }
-
41
-
42 switch (deg)
-
43 {
-
44 default:
-
45 {
-
46 const float rad = (float) deg * M_PI_180;
-
47 const float cos_rad = cos(rad);
-
48 const float sin_rad = sin(rad);
-
49 r.x = (SDWORD) ((c.x * cos_rad) - (c.y * sin_rad));
-
50 r.y = (SDWORD) ((c.x * sin_rad) + (c.y * cos_rad));
-
51 }
-
52 break;
-
53
-
54 case 0:
-
55 return c; // cppcheck-suppress misra-c2012-15.5
-
56
-
57 case 45:
-
58 case 90 + 45:
-
59 case 180 + 45:
-
60 case 270 + 45:
-
61 r.x = (SDWORD) ((c.x - c.y) / M_SQRT2);
-
62 r.y = (SDWORD) ((c.x + c.y) / M_SQRT2);
-
63 deg -= 45;
-
64 //break; // No break, may still need to rotate by a multiple of 90°
-
65
-
66 case 90:
-
67 // Return only if 90°, otherwise, continue
-
68 if (deg == 90) { return (sCoord2D) { -r.y, r.x }; } // cppcheck-suppress misra-c2012-15.5
-
69
-
70 case 180:
-
71 // Return only if 180°, otherwise, continue
-
72 if (deg == 180) { return (sCoord2D) { -r.x, -r.y }; } // cppcheck-suppress misra-c2012-15.5
-
73
-
74 case 270:
-
75 // Return only if 270°, otherwise, continue
-
76 if (deg == 270) { return (sCoord2D) { r.y, -r.x }; } // cppcheck-suppress misra-c2012-15.5
-
77 }
-
78
-
79 return r;
-
80}
-
-
81
-
82
-
83/****************************************************************/
-
84#ifdef __cplusplus
-
85 }
-
86#endif
-
87
-
88#endif /* ARM_INLINES_ROTATION_H_ */
-
89/****************************************************************/
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
#define M_SQRT2
sqrt(2) approximation constant
Definition arm_inlines_angle.h:19
-
#define M_PI_180
Pi/180 approximation constant.
Definition arm_inlines_angle.h:30
-
struct sCoord2D sCoord2D
-
sCoord2D rotate_2D(const sCoord2D c, const SWORD angle)
2D Coordinates rotation
Definition arm_inlines_rotation.h:35
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
int16_t SWORD
Signed Word typedef (16bits)
Definition arm_typedefs.h:74
-
2D coordinates structure
Definition arm_inlines_rotation.h:21
-
SDWORD x
x coordinate
Definition arm_inlines_rotation.h:22
-
SDWORD y
y coordinate
Definition arm_inlines_rotation.h:23
-
- - - - diff --git a/html/arm__inlines__temperature_8h.html b/html/arm__inlines__temperature_8h.html index dd72bdf..62592f4 100644 --- a/html/arm__inlines__temperature_8h.html +++ b/html/arm__inlines__temperature_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_temperature.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Macros | @@ -93,9 +106,7 @@
-
-

Go to the source code of this file.

- +
@@ -435,7 +446,8 @@

+ diff --git a/html/arm__inlines__temperature_8h_source.html b/html/arm__inlines__temperature_8h_source.html deleted file mode 100644 index 3847fbf..0000000 --- a/html/arm__inlines__temperature_8h_source.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_temperature.h Source File - - - - - - - - - - - -
-
-

Macros

#define M_5_9   (5.0 / 9.0)
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_temperature.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_TEMPERATURE_H_
-
8 #define ARM_INLINES_TEMPERATURE_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
16#define M_5_9 (5.0 / 9.0)
-
17#define M_9_5 (9.0 / 5.0)
-
18
-
19
-
-
24__INLINE float celsius2kelvin(const float cel)
-
25{
-
26 return (cel + 273.15f);
-
27}
-
-
28
-
29
-
-
34__INLINE float kelvin2celsius(const float kel)
-
35{
-
36 return (kel - 273.15f);
-
37}
-
-
38
-
39
-
-
44__INLINE float celsius2fahrenheit(const float cel)
-
45{
-
46 return (cel * M_9_5) + 32.0f;
-
47}
-
-
48
-
49
-
-
54__INLINE float fahrenheit2celsius(const float fah)
-
55{
-
56 return ((fah - 32.0f) * M_5_9);
-
57}
-
-
58
-
59
-
-
64__INLINE float fahrenheit2kelvin(const float fah)
-
65{
- -
67}
-
-
68
-
69
-
-
74__INLINE float kelvin2fahrenheit(const float kel)
-
75{
- -
77}
-
-
78
-
79
-
80/****************************************************************/
-
81#ifdef __cplusplus
-
82 }
-
83#endif
-
84
-
85#endif /* ARM_INLINES_TEMPERATURE_H_ */
-
86/****************************************************************/
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
float fahrenheit2kelvin(const float fah)
Convert degrees Fahrenheit to Kelvin.
Definition arm_inlines_temperature.h:64
-
float kelvin2fahrenheit(const float kel)
Convert degrees Kelvin to Fahrenheit.
Definition arm_inlines_temperature.h:74
-
#define M_5_9
5/9 constant approximation
Definition arm_inlines_temperature.h:16
-
float celsius2kelvin(const float cel)
Convert degrees Celsius to Kelvin.
Definition arm_inlines_temperature.h:24
-
float fahrenheit2celsius(const float fah)
Convert degrees Fahrenheit to Celsius.
Definition arm_inlines_temperature.h:54
-
float celsius2fahrenheit(const float cel)
Convert degrees Celsius to Fahrenheit.
Definition arm_inlines_temperature.h:44
-
float kelvin2celsius(const float kel)
Convert degrees Kelvin to Celsius.
Definition arm_inlines_temperature.h:34
-
#define M_9_5
9/5 constant approximation
Definition arm_inlines_temperature.h:17
-
- - - - diff --git a/html/arm__inlines__ticks_8h.html b/html/arm__inlines__ticks_8h.html index 8377ab9..d5b9959 100644 --- a/html/arm__inlines__ticks_8h.html +++ b/html/arm__inlines__ticks_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_ticks.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -92,9 +105,7 @@
-
-

Go to the source code of this file.

- +
@@ -121,7 +132,7 @@

BOOL TPSINF_MS

- + @@ -162,7 +173,7 @@

BOOL TPSSUP_MS

- + @@ -194,7 +205,8 @@

+ diff --git a/html/arm__inlines__ticks_8h_source.html b/html/arm__inlines__ticks_8h_source.html deleted file mode 100644 index e767f94..0000000 --- a/html/arm__inlines__ticks_8h_source.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_ticks.h Source File - - - - - - - - - - - -
-
-

Functions

BOOL TPSSUP_MS (const DWORD prev, const DWORD time)
(const DWORD prev, const DWORD prev,
(const DWORD prev, const DWORD prev,
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_ticks.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_TICKS_H_
-
8 #define ARM_INLINES_TICKS_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
-
24__INLINE BOOL INLINE__ TPSSUP_MS(const DWORD prev, const DWORD time)
-
25{
-
26 const DWORD scaled_time = time * HAL_MS_TICKS_FACTOR;
-
27 const DWORD diff = OVF_DIFF(HALTicks(), prev);
-
28
-
29 return binEval(diff >= scaled_time);
-
30}
-
-
31
-
32
-
-
41__INLINE BOOL INLINE__ TPSINF_MS(const DWORD prev, const DWORD time)
-
42{
-
43 const DWORD diff = OVF_DIFF(HALTicks(), prev);
-
44 const DWORD scaled_time = time * HAL_MS_TICKS_FACTOR;
-
45
-
46 return binEval(diff < scaled_time);
-
47}
-
-
48
-
49
-
50/****************************************************************/
-
51#ifdef __cplusplus
-
52 }
-
53#endif
-
54
-
55#endif /* ARM_INLINES_TICKS_H_ */
-
56/****************************************************************/
-
#define INLINE__
Always inline attribute.
Definition arm_attributes.h:119
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
#define HAL_MS_TICKS_FACTOR
Milliseconds multiplier (depending tick counter frequency)
Definition arm_chip_ino.h:39
-
#define HALTicks
Alias for Arduino get ms ticks function.
Definition arm_chip_ino.h:43
-
BOOL TPSINF_MS(const DWORD prev, const DWORD time)
Tests if stored time value has not reached time lapse in ms.
Definition arm_inlines_ticks.h:41
-
BOOL TPSSUP_MS(const DWORD prev, const DWORD time)
Tests if stored time value has reached time lapse in ms.
Definition arm_inlines_ticks.h:24
-
#define OVF_DIFF(a, b)
Returns difference of unsigned a and b (with potential overflow handling)
Definition arm_macros.h:262
-
#define binEval(exp)
boolean evaluation of expression exp
Definition arm_macros.h:192
-
bool BOOL
boolean typedef (1bit, for stdbool.h handling compilers)
Definition arm_typedefs.h:67
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
- - - - diff --git a/html/arm__inlines__var__size_8h.html b/html/arm__inlines__var__size_8h.html index f2ac3f6..69a91c4 100644 --- a/html/arm__inlines__var__size_8h.html +++ b/html/arm__inlines__var__size_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_var_size.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -92,9 +105,7 @@
-
-

Go to the source code of this file.

- +
@@ -216,7 +227,7 @@

DWORD conv16upto32Bits

- + @@ -326,7 +337,7 @@

LWORD conv32upto64Bits

- + @@ -436,7 +447,7 @@

WORD conv8upto16Bits

- + @@ -478,12 +489,12 @@

DWORD convXtoYBits

- + - + @@ -536,22 +547,22 @@

SLWORD scaleValue

- + - + - + - + @@ -583,7 +594,8 @@

+ diff --git a/html/arm__inlines__var__size_8h_source.html b/html/arm__inlines__var__size_8h_source.html deleted file mode 100644 index 958f842..0000000 --- a/html/arm__inlines__var__size_8h_source.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_var_size.h Source File - - - - - - - - - - - -
-
-

Functions

BYTE conv16to8Bits (const WORD val)
(const WORD val, const WORD val,
(const DWORD val, const DWORD val,
(const BYTE val, const BYTE val,
(const DWORD val, const DWORD val,
const BYTE from, const BYTE from,
(const SLWORD val, const SLWORD val,
const SLWORD from_min, const SLWORD from_min,
const SLWORD from_max, const SLWORD from_max,
const SLWORD to_min, const SLWORD to_min,
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_var_size.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_VAR_SIZE_H_
-
8 #define ARM_INLINES_VAR_SIZE_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
- -
21{
-
22 return (BYTE) RSHIFT(val, 8);
-
23}
-
-
24
-
25
-
- -
31{
-
32 return LSHIFT16(val, 8U) | val;
-
33}
-
-
34
-
35
-
- -
41{
-
42 return (WORD) RSHIFT(val, 16U);
-
43}
-
-
44
-
45
-
- -
51{
-
52 return LSHIFT32(val, 16U) | val;
-
53}
-
-
54
-
55
-
- -
61{
-
62 return (DWORD) RSHIFT64(val, 32U);
-
63}
-
-
64
-
65
-
- -
71{
-
72 return LSHIFT64(val, 32U) | val;
-
73}
-
-
74
-
75
-
- -
84{
-
85 const uintCPU_t rem = 8U - (uintCPU_t) nb;
-
86 return LSHIFT16(val, nb) | RSHIFT16(val, rem);
-
87}
-
-
88
-
89
-
- -
98{
-
99 const uintCPU_t rem = 16U - (uintCPU_t) nb;
-
100 return LSHIFT32(val, nb) | RSHIFT32(val, rem);
-
101}
-
-
102
-
103
-
- -
112{
-
113 const uintCPU_t rem = 32U - (uintCPU_t) nb;
-
114 return LSHIFT64(val, nb) | RSHIFT64(val, rem);
-
115}
-
-
116
-
117
-
-
126__INLINE DWORD convXtoYBits(const DWORD val, const BYTE from, const BYTE to)
-
127{
-
128 const intCPU_t diff_bits = MIN(32U, to) - MIN(32U, from);
-
129 const uintCPU_t shift = abs(diff_bits);
-
130 DWORD conv = val & maskBits(from);
-
131
-
132 if (diff_bits > 0) { conv = LSHIFT(val, shift) | RSHIFT(val, from - shift); }
-
133 if (diff_bits < 0) { conv = RSHIFT(val, shift); }
-
134
-
135 return conv;
-
136}
-
-
137
-
138
-
-
147__INLINE SLWORD scaleValue(const SLWORD val, const SLWORD from_min, const SLWORD from_max, const SLWORD to_min, const SLWORD to_max)
-
148{
-
149 return (((val - from_min) * (to_max - to_min)) / (from_max - from_min)) + to_min;
-
150}
-
-
151
-
152
-
153/****************************************************************/
-
154#ifdef __cplusplus
-
155 }
-
156#endif
-
157
-
158#endif /* ARM_INLINES_VAR_SIZE_H_ */
-
159/****************************************************************/
-
#define INLINE__
Always inline attribute.
Definition arm_attributes.h:119
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
DWORD maskBits(const BYTE bits)
Create specified number of bits mask.
Definition arm_inlines_binary.h:21
-
DWORD conv16to32Bits(const WORD val)
convert 16bits variable to 32bits
Definition arm_inlines_var_size.h:50
-
WORD conv8upto16Bits(const BYTE val, const BYTE nb)
convert 8bits variable to 8+nb bits (16bits max)
Definition arm_inlines_var_size.h:83
-
DWORD conv16upto32Bits(const WORD val, const BYTE nb)
convert 16bits variable to 16+nb bits (32bits max)
Definition arm_inlines_var_size.h:97
-
LWORD conv32upto64Bits(const DWORD val, const BYTE nb)
convert 32bits variable to 32+nb bits (64bits max)
Definition arm_inlines_var_size.h:111
-
DWORD convXtoYBits(const DWORD val, const BYTE from, const BYTE to)
convert x bits variable to y bits (32bits max)
Definition arm_inlines_var_size.h:126
-
WORD conv8to16Bits(const BYTE val)
convert 8bits variable to 16bits
Definition arm_inlines_var_size.h:30
-
BYTE conv16to8Bits(const WORD val)
convert 16bits variable to 8bits
Definition arm_inlines_var_size.h:20
-
DWORD conv64to32Bits(const LWORD val)
convert 64bits variable to 32bits
Definition arm_inlines_var_size.h:60
-
SLWORD scaleValue(const SLWORD val, const SLWORD from_min, const SLWORD from_max, const SLWORD to_min, const SLWORD to_max)
Scale value from one range to another.
Definition arm_inlines_var_size.h:147
-
LWORD conv32to64Bits(const DWORD val)
convert 32bits variable to 64bits
Definition arm_inlines_var_size.h:70
-
WORD conv32to16Bits(const DWORD val)
convert 32bits variable to 16bits
Definition arm_inlines_var_size.h:40
-
#define LSHIFT16(v, n)
Shift v n bits left (up to 15b)
Definition arm_macros.h:93
-
#define RSHIFT32(v, n)
Shift v n bits right (up to 31b)
Definition arm_macros.h:97
-
#define RSHIFT64(v, n)
Shift v n bits right (up to 63b)
Definition arm_macros.h:100
-
#define MIN(a, b)
Returns min value between a and b.
Definition arm_macros.h:204
-
#define LSHIFT32(v, n)
Shift v n bits left (up to 31b)
Definition arm_macros.h:96
-
#define LSHIFT64(v, n)
Shift v n bits left (up to 63b)
Definition arm_macros.h:99
-
#define RSHIFT16(v, n)
Shift v n bits right (up to 15b)
Definition arm_macros.h:94
-
#define RSHIFT(v, n)
Shift v n bits right.
Definition arm_macros.h:88
-
#define LSHIFT(v, n)
Shift v n bits left.
Definition arm_macros.h:87
-
uint64_t LWORD
Unsigned lWord typedef (64bits)
Definition arm_typedefs.h:72
-
int intCPU_t
Signed integer typedef.
Definition arm_typedefs.h:64
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
uint16_t WORD
Unsigned Word typedef (16bits)
Definition arm_typedefs.h:70
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
int64_t SLWORD
Signed lWord typedef (64bits)
Definition arm_typedefs.h:76
-
- - - - diff --git a/html/arm__inlines__var__test_8h.html b/html/arm__inlines__var__test_8h.html index 8dd9e81..b18b4ab 100644 --- a/html/arm__inlines__var__test_8h.html +++ b/html/arm__inlines__var__test_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_var_test.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -92,9 +105,7 @@
-
-

Go to the source code of this file.

- +
@@ -121,12 +132,12 @@

BOOL inRange

- + - + @@ -166,12 +177,12 @@

BOOL inTolerance

- + - + @@ -202,7 +213,8 @@

+ diff --git a/html/arm__inlines__var__test_8h_source.html b/html/arm__inlines__var__test_8h_source.html deleted file mode 100644 index 50e19ab..0000000 --- a/html/arm__inlines__var__test_8h_source.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_inlines_var_test.h Source File - - - - - - - - - - - -
-
-

Functions

BOOL inTolerance (const SDWORD val, const SDWORD ref, const float tolerance)
(const SDWORD val, const SDWORD val,
const SDWORD low, const SDWORD low,
(const SDWORD val, const SDWORD val,
const SDWORD ref, const SDWORD ref,
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
- - - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_inlines_var_test.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_INLINES_VAR_TEST_H_
-
8 #define ARM_INLINES_VAR_TEST_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13/****************************************************************/
-
14
-
15
-
-
22__INLINE BOOL inTolerance(const SDWORD val, const SDWORD ref, const float tolerance)
-
23{
-
24 const float ratio = MIN(100.0f, MAX(0.0f, tolerance)) / 100.0f;
-
25
-
26 SDWORD hyst = (SDWORD) ((float) ref * ratio);
-
27 if (hyst < 0.0f) { hyst = -hyst; }
-
28
-
29 return ((val <= (SDWORD) (ref + hyst)) && (val >= (SDWORD) (ref - hyst)));
-
30}
-
-
31
-
32
-
-
39__INLINE BOOL INLINE__ inRange(const SDWORD val, const SDWORD low, const SDWORD high)
-
40{
-
41 return ((val <= high) && (val >= low));
-
42}
-
-
43
-
44
-
45/****************************************************************/
-
46#ifdef __cplusplus
-
47 }
-
48#endif
-
49
-
50#endif /* ARM_INLINES_VAR_TEST_H_ */
-
51/****************************************************************/
-
#define INLINE__
Always inline attribute.
Definition arm_attributes.h:119
-
#define __INLINE
inline attribute alias
Definition arm_attributes.h:278
-
BOOL inTolerance(const SDWORD val, const SDWORD ref, const float tolerance)
Checks if val given as parameter is in tolerance.
Definition arm_inlines_var_test.h:22
-
BOOL inRange(const SDWORD val, const SDWORD low, const SDWORD high)
Checks if val given as parameter is in range.
Definition arm_inlines_var_test.h:39
-
#define MIN(a, b)
Returns min value between a and b.
Definition arm_macros.h:204
-
#define MAX(a, b)
Returns max value between a and b.
Definition arm_macros.h:216
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
bool BOOL
boolean typedef (1bit, for stdbool.h handling compilers)
Definition arm_typedefs.h:67
-
- - - - diff --git a/html/arm__macros_8h.html b/html/arm__macros_8h.html index 4dcb30c..6699044 100644 --- a/html/arm__macros_8h.html +++ b/html/arm__macros_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_macros.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -90,9 +103,7 @@
-
-

Go to the source code of this file.

- +
@@ -131,9 +142,9 @@ - - - + + + @@ -325,7 +336,7 @@

#define binEval

- +

Macros

#define Undefined   (-1)
#define INV_BITS(v, b)   ((v) ^= (b))
 Invert bits b of variable v.
 
#define SET_BITS_VAL(v, c, s)   ((v) = (((v) & ~(c)) | (s)))
 Set variable v with clear mask c to set mask s.
 
#define SET_BITS_VAL(v, m, s)   ((v) = (((v) & ~(m)) | ((s) & (m))))
 Set variable v to set value s with mask m.
 
#define TEST_BITS_VAL(v, b)   (((v) & (b)) == (b))
 Test variable v with bits b.
 
( exp) exp)    ((exp) ? true : false)
@@ -344,7 +355,7 @@

#define BYTE_TO_PERC ( - b) + b)    ((BYTE) ((((b) > 255U ? 255U : (b)) * 100U) / 255U)) @@ -362,12 +373,12 @@

#define CAT ( - a, + a, - b )   a##b + b )   a##b
@@ -391,22 +402,6 @@

-

◆ clamp

- -
-
- - - - -
#define clamp   CLAMP
-
- -

clamp alias for CLAMP

-
@@ -418,17 +413,17 @@

#define CLAMP ( - v, + v, - mn, + mn, - mx ) + mx )

@@ -440,6 +435,22 @@

+

◆ clamp

+ +
+
+ + + + +
#define clamp   CLAMP
+
+ +

clamp alias for CLAMP

+
@@ -451,12 +462,12 @@

#define CLR_BITS ( - v, + v, - b )   ((v) &= ~(b)) + b )   ((v) &= ~(b))

@@ -465,35 +476,35 @@

-

◆ False

+ +

◆ FALSE

- +
#define False   false#define FALSE   false
-

False alias for false

+

FALSE alias for false

- -

◆ FALSE

+ +

◆ False

- +
#define FALSE   false#define False   false
-

FALSE alias for false

+

False alias for false

@@ -506,12 +517,12 @@

#define GET_BITS ( - v, + v, - b )   ((v) & (b)) + b )   ((v) & (b))

@@ -674,12 +685,12 @@

#define LSHIFT32 ( - v, + v, - n )   ((DWORD) ((DWORD) (v) << (n))) + n )   ((DWORD) ((DWORD) (v) << (n)))

@@ -697,12 +708,12 @@

#define LSHIFT64 ( - v, + v, - n )   ((LWORD) ((LWORD) (v) << (n))) + n )   ((LWORD) ((LWORD) (v) << (n)))

@@ -720,12 +731,12 @@

#define LSHIFT8 ( - v, + v, - n )   ((BYTE) ((BYTE) (v) << (n))) + n )   ((BYTE) ((BYTE) (v) << (n)))

@@ -775,12 +786,12 @@

#define MAKELONG ( - lsw, + lsw, - msw )   ((DWORD) (((WORD) (lsw)) | LSHIFT(((DWORD) (msw)), 16))) + msw )   ((DWORD) (((WORD) (lsw)) | LSHIFT(((DWORD) (msw)), 16)))

@@ -798,12 +809,12 @@

#define MAKEWORD ( - lsb, + lsb, - msb )   ((WORD) (((BYTE) (lsb)) | LSHIFT(((WORD) (msb)), 8))) + msb )   ((WORD) (((BYTE) (lsb)) | LSHIFT(((WORD) (msb)), 8)))

@@ -821,7 +832,7 @@

#define malloc_assert ( - x) + x)    ((x) = malloc(sizeof(*(x))), assert((x))) @@ -829,22 +840,6 @@

-

◆ max

- -
-
- - - - -
#define max   MAX
-
- -

max alias for MAX

-
@@ -856,12 +851,12 @@

#define MAX ( - a, + a, - b ) + b )

@@ -873,19 +868,19 @@

-

◆ max3

+ +

◆ max

- +
#define max3   MAX3#define max   MAX
-

max3 alias for MAX3

+

max alias for MAX

@@ -898,17 +893,17 @@

#define MAX3 ( - a, + a, - b, + b, - c ) + c )

@@ -921,19 +916,19 @@

-

◆ min

+ +

◆ max3

- +
#define min   MIN#define max3   MAX3
-

min alias for MIN

+

max3 alias for MAX3

@@ -946,12 +941,12 @@

#define MIN ( - a, + a, - b ) + b )

@@ -963,19 +958,19 @@

-

◆ min3

+ +

◆ min

- +
#define min3   MIN3#define min   MIN
-

min3 alias for MIN3

+

min alias for MIN

@@ -988,17 +983,17 @@

#define MIN3 ( - a, + a, - b, + b, - c ) + c )

@@ -1111,7 +1122,7 @@

#define PERC_TO_BYTE ( - p) + p)    ((BYTE) ((((p) > 100U ? 100U : (p)) * 255U) / 100U)) @@ -1147,17 +1158,17 @@

#define ROOT_OF ( - ptr, + ptr, - typ, + typ, - mbr )   ((typ *) (((uint8_t *) (ptr)) - OFFSET_OF(typ, mbr))) + mbr )   ((typ *) (((uint8_t *) (ptr)) - OFFSET_OF(typ, mbr)))

@@ -1225,12 +1236,12 @@

#define RSHIFT32 ( - v, + v, - n )   ((DWORD) ((DWORD) (v) >> (n))) + n )   ((DWORD) ((DWORD) (v) >> (n)))

@@ -1248,12 +1259,12 @@

#define RSHIFT64 ( - v, + v, - n )   ((LWORD) ((LWORD) (v) >> (n))) + n )   ((LWORD) ((LWORD) (v) >> (n)))

@@ -1271,12 +1282,12 @@

#define RSHIFT8 ( - v, + v, - n )   ((BYTE) ((BYTE) (v) >> (n))) + n )   ((BYTE) ((BYTE) (v) >> (n)))

@@ -1473,12 +1484,12 @@

#define SWAP_DOUBLE ( - a, + a, - b )   SWAP_TYPE(a, b, double) + b )   SWAP_TYPE(a, b, double)

@@ -1496,12 +1507,12 @@

#define SWAP_DWORD ( - a, + a, - b )   SWAP_TYPE(a, b, DWORD) + b )   SWAP_TYPE(a, b, DWORD)

@@ -1519,12 +1530,12 @@

#define SWAP_FLOAT ( - a, + a, - b )   SWAP_TYPE(a, b, float) + b )   SWAP_TYPE(a, b, float)

@@ -1542,12 +1553,12 @@

#define SWAP_LWORD ( - a, + a, - b )   SWAP_TYPE(a, b, LWORD) + b )   SWAP_TYPE(a, b, LWORD)

@@ -1741,35 +1752,35 @@

-

◆ True

+ +

◆ TRUE

- +
#define True   true#define TRUE   true
-

True alias for true

+

TRUE alias for true

- -

◆ TRUE

+ +

◆ True

- +
#define TRUE   true#define True   true
-

TRUE alias for true

+

True alias for true

@@ -1782,12 +1793,12 @@

#define TYP_MBR ( - typ, + typ, - mbr )   (((typ *)0)->mbr) + mbr )   (((typ *)0)->mbr)

@@ -1901,7 +1912,7 @@

#define XSTR ( - s) + s)    STR(s) @@ -1914,7 +1925,8 @@

+

diff --git a/html/arm__macros_8h_source.html b/html/arm__macros_8h_source.html deleted file mode 100644 index b2fbe4f..0000000 --- a/html/arm__macros_8h_source.html +++ /dev/null @@ -1,349 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_macros.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_macros.h
-
-
-Go to the documentation of this file.
1
-
11// cppcheck-suppress-begin [misra-c2012-1.2, misra-c2012-20.5, misra-c2012-20.10]
-
12/****************************************************************/
-
13#ifndef ARM_MACROS_H_
-
14 #define ARM_MACROS_H_
-
15
-
16#ifdef __cplusplus
-
17 extern "C" {
-
18#endif
-
19/****************************************************************/
-
20
-
21
-
22#define Undefined (-1)
-
23
-
24#define Null (0)
-
25#define pNull ((void *) 0)
-
26#define charNull ('\0')
-
27
-
28
-
29#ifndef True
-
30 #define True true
-
31#endif
-
32#ifndef False
-
33 #define False false
-
34#endif
-
35#ifndef TRUE
-
36 #define TRUE true
-
37#endif
-
38#ifndef FALSE
-
39 #define FALSE false
-
40#endif
-
41
-
42
-
43#define GET_BITS(v, b) ((v) & (b))
-
44#define SET_BITS(v, b) ((v) |= (b))
-
45#define CLR_BITS(v, b) ((v) &= ~(b))
-
46#define INV_BITS(v, b) ((v) ^= (b))
-
47
-
48#define SET_BITS_VAL(v, c, s) ((v) = (((v) & ~(c)) | (s)))
-
49#define TEST_BITS_VAL(v, b) (((v) & (b)) == (b))
-
50#define TEST_MASK_VAL(v, m, r) (((v) & (m)) == (r))
-
51
-
52
-
53#if defined(SINGLE_SHIFT_ONLY_OPCODE)
-
54
-
56#define LSHIFT_CAST(t, v, n) ((t) ((t) (v) * ((t) 1 << (n))))
-
58#define RSHIFT_CAST(t, v, n) ((t) ((t) (v) / ((t) 1 << (n))))
-
59
-
61#define LSHIFT(v, n) ((v) * (1U << (n)))
-
63#define RSHIFT(v, n) ((v) / (1U << (n)))
-
64
-
66#define LSHIFT8(v, n) LSHIFT_CAST(BYTE, v, n)
-
68#define RSHIFT8(v, n) RSHIFT_CAST(BYTE, v, n)
-
69
-
71#define LSHIFT16(v, n) LSHIFT_CAST(WORD, v, n)
-
73#define RSHIFT16(v, n) RSHIFT_CAST(WORD, v, n)
-
74
-
76#define LSHIFT32(v, n) LSHIFT_CAST(DWORD, v, n)
-
78#define RSHIFT32(v, n) RSHIFT_CAST(DWORD, v, n)
-
79
-
81#define LSHIFT64(v, n) LSHIFT_CAST(LWORD, v, n)
-
83#define RSHIFT64(v, n) RSHIFT_CAST(LWORD, v, n)
-
84
-
85#else
-
86
-
87#define LSHIFT(v, n) ((v) << (n))
-
88#define RSHIFT(v, n) ((v) >> (n))
-
89
-
90#define LSHIFT8(v, n) ((BYTE) ((BYTE) (v) << (n)))
-
91#define RSHIFT8(v, n) ((BYTE) ((BYTE) (v) >> (n)))
-
92
-
93#define LSHIFT16(v, n) ((WORD) ((WORD) (v) << (n)))
-
94#define RSHIFT16(v, n) ((WORD) ((WORD) (v) >> (n)))
-
95
-
96#define LSHIFT32(v, n) ((DWORD) ((DWORD) (v) << (n)))
-
97#define RSHIFT32(v, n) ((DWORD) ((DWORD) (v) >> (n)))
-
98
-
99#define LSHIFT64(v, n) ((LWORD) ((LWORD) (v) << (n)))
-
100#define RSHIFT64(v, n) ((LWORD) ((LWORD) (v) >> (n)))
-
101
-
102#endif
-
103
-
104
-
105#define MAKEWORD(lsb, msb) ((WORD) (((BYTE) (lsb)) | LSHIFT(((WORD) (msb)), 8)))
-
106#define MAKELONG(lsw, msw) ((DWORD) (((WORD) (lsw)) | LSHIFT(((DWORD) (msw)), 16)))
-
107
-
108#ifdef LOBYTE
-
109#undef LOBYTE
-
110#endif
-
111
-
112#ifdef HIBYTE
-
113#undef HIBYTE
-
114#endif
-
115
-
116#define LOBYTE(w) ((BYTE) (w))
-
117#define HIBYTE(w) ((BYTE) RSHIFT((WORD) (w), 8))
-
118#define LOWORD(l) ((WORD) (l))
-
119#define HIWORD(l) ((WORD) RSHIFT((DWORD) (l), 16))
-
120
-
124// cppcheck-suppress-macro misra-c2012-20.7
-
125#define SWAP_TYPE(a, b, typ) ({ typ c = a; a = b; b = c; })
-
126#define SWAP_BYTE(a, b) SWAP_TYPE(a, b, BYTE)
-
127#define SWAP_WORD(a, b) SWAP_TYPE(a, b, WORD)
-
128#define SWAP_DWORD(a, b) SWAP_TYPE(a, b, DWORD)
-
129#define SWAP_LWORD(a, b) SWAP_TYPE(a, b, LWORD)
-
130#define SWAP_FLOAT(a, b) SWAP_TYPE(a, b, float)
-
131#define SWAP_DOUBLE(a, b) SWAP_TYPE(a, b, double)
-
132
-
133
-
137// cppcheck-suppress-macro misra-c2012-20.7
-
138#define VAL_AT(addr, typ) (*(typ *) (addr))
-
139
-
143// cppcheck-suppress-macro misra-c2012-20.7
-
144#define SZ_ARRAY(arr) ((size_t) (sizeof(arr) / sizeof(arr[0])))
-
145
-
150// cppcheck-suppress-macro misra-c2012-20.7
-
151#define SZ_OBJ(obj, typ) ((size_t) (sizeof(obj) / sizeof(typ)))
-
152
-
157// cppcheck-suppress-macro misra-c2012-20.7
-
158#define SZ_TYP_MBR(typ, mbr) ((size_t) sizeof(((typ *)0)->mbr))
-
159
-
164// cppcheck-suppress-macro misra-c2012-20.7
-
165#define TYP_MBR(typ, mbr) (((typ *)0)->mbr)
-
166
-
169#define TYP_MBR_TYP(typ, mbr) typeof(TYP_MBR(typ, mbr))
-
170
-
175// cppcheck-suppress-macro misra-c2012-20.7
-
176#define OFFSET_OF(typ, mbr) ((size_t) &(((typ *)0)->mbr))
-
177
-
181// cppcheck-suppress-macro misra-c2012-20.7
-
182#define ROOT_OF(ptr, typ, mbr) ((typ *) (((uint8_t *) (ptr)) - OFFSET_OF(typ, mbr)))
-
183
-
184
-
186#define CAT(a, b) a##b
-
187#define XCAT(a, b) CAT(a, b)
-
188
-
189#define STR(s) #s
-
190#define XSTR(s) STR(s)
-
191
-
192#define binEval(exp) ((exp) ? true : false)
-
193#define nbinEval(exp) (!binEval(exp))
-
194
-
195
-
196#ifdef min
-
197#undef min
-
198#endif
-
199#ifdef MIN
-
200#undef MIN
-
201#endif
-
202#define min MIN
-
203// cppcheck-suppress-macro misra-c2012-1.2
-
-
204#define MIN(a, b) ({ __TYPEOF(a) _a = (a); \
-
205 __TYPEOF(b) _b = (b); \
-
206 (_a <= _b) ? _a : _b; })
-
-
207
-
208#ifdef max
-
209#undef max
-
210#endif
-
211#ifdef MAX
-
212#undef MAX
-
213#endif
-
214#define max MAX
-
215// cppcheck-suppress-macro misra-c2012-1.2
-
-
216#define MAX(a, b) ({ __TYPEOF(a) _a = (a); \
-
217 __TYPEOF(b) _b = (b); \
-
218 (_a >= _b) ? _a : _b; })
-
-
219
-
220#ifdef min3
-
221#undef min3
-
222#endif
-
223#ifdef MIN3
-
224#undef MIN3
-
225#endif
-
226#define min3 MIN3
-
227// cppcheck-suppress-macro misra-c2012-1.2
-
-
228#define MIN3(a, b, c) ({ __TYPEOF(a) _a = (a); \
-
229 __TYPEOF(b) _b = (b); \
-
230 __TYPEOF(c) _c = (c); \
-
231 (_b <= _c) ? ((_a <= _b) ? _a : _b) : ((_a <= _c) ? _a : _c); })
-
-
232
-
233#ifdef max3
-
234#undef max3
-
235#endif
-
236#ifdef MAX3
-
237#undef MAX3
-
238#endif
-
239#define max3 MAX3
-
240// cppcheck-suppress-macro misra-c2012-1.2
-
-
241#define MAX3(a, b, c) ({ __TYPEOF(a) _a = (a); \
-
242 __TYPEOF(b) _b = (b); \
-
243 __TYPEOF(c) _c = (c); \
-
244 (_b >= _c) ? ((_a >= _b) ? _a : _b) : ((_a >= _c) ? _a : _c); })
-
-
245
-
246#ifdef clamp
-
247#undef clamp
-
248#endif
-
249#ifdef CLAMP
-
250#undef CLAMP
-
251#endif
-
252#define clamp CLAMP
-
253// cppcheck-suppress-macro misra-c2012-1.2
-
-
254#define CLAMP(v, mn, mx) ({ __TYPEOF(v) _v = (v); \
-
255 __TYPEOF(mn) _mn = (mn); \
-
256 __TYPEOF(mx) _mx = (mx); \
-
257 (_v < _mn) ? _mn : ((_v > _mx) ? _mx : _v); })
-
-
258
-
259
-
261// cppcheck-suppress-macro misra-c2012-1.2
-
-
262#define OVF_DIFF(a, b) ({ __TYPEOF(a) _a = (a); \
-
263 __TYPEOF(b) _b = (b); \
-
264 __TYPEOF(a) _max = -1; \
-
265 (_a >= _b) ? (_a - _b) : (_max - _b) + _a + 1; })
-
-
266
-
267
-
-
269#define SCALE_VAL(v, from_min, from_max, to_min, to_max) \
-
270 (((((v) - (from_min)) * ((to_max) - (to_min))) / \
-
271 ((from_max) - (from_min))) + (to_min))
-
-
272
-
-
273#define SCALE_VAL_T(typ, v, from_min, from_max, to_min, to_max) \
-
274 (((((typ) (v) - (typ) (from_min)) * ((typ) (to_max) - (typ) (to_min))) / \
-
275 ((typ) (from_max) - (typ) (from_min))) + (typ) (to_min))
-
-
276
-
277
-
279#define BYTE_TO_PERC(b) ((BYTE) ((((b) > 255U ? 255U : (b)) * 100U) / 255U))
-
281#define PERC_TO_BYTE(p) ((BYTE) ((((p) > 100U ? 100U : (p)) * 255U) / 100U))
-
282
-
283
-
284/*** Constants ***/
-
285#define M_1_3 (1.0 / 3.0)
-
286#define M_2_3 (2.0 / 3.0)
-
287
-
288
-
289/*** Test Macros ***/
-
290#define malloc_assert(x) ((x) = malloc(sizeof(*(x))), assert((x)))
-
291
-
292
-
293/****************************************************************/
-
294#ifdef __cplusplus
-
295 }
-
296#endif
-
297
-
298#endif /* ARM_MACROS_H_ */
-
299// cppcheck-suppress-end [misra-c2012-1.2, misra-c2012-20.5, misra-c2012-20.10]
-
300/****************************************************************/
-
- - - - diff --git a/html/arm__stdclib_8h.html b/html/arm__stdclib_8h.html index 4ad55a2..30d6d3c 100644 --- a/html/arm__stdclib_8h.html +++ b/html/arm__stdclib_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_stdclib.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -104,9 +117,7 @@
-
-

Go to the source code of this file.

- +
@@ -154,7 +165,7 @@

#define printExpr

- +

Macros

#define str_clr(s)   (s[0] = charNull)
( e) e)    (printf("%s = %d\r\n", STR(e), (e)))
@@ -173,7 +184,7 @@

#define str_add_cr ( - s) + s)    (strcat(s, '\r')) @@ -192,7 +203,7 @@

#define str_add_crlf ( - s) + s)    (strcat(s, '\r\n')) @@ -211,7 +222,7 @@

#define str_add_lf ( - s) + s)    (strcat(s, '\n')) @@ -230,7 +241,7 @@

#define str_add_tab ( - s) + s)    (strcat(s, '\t')) @@ -249,7 +260,7 @@

#define str_clr ( - s) + s)    (s[0] = charNull) @@ -268,7 +279,7 @@

#define str_clr_safe ( - s) + s)    (memset(s, charNull, sizeof(s))) @@ -287,7 +298,7 @@

#define verbDec ( - x) + x)    (puts("Decrementing " STR(x)), (x)--) @@ -306,7 +317,7 @@

#define verbInc ( - x) + x)    (puts("Incrementing " STR(x)), (x)++) @@ -325,7 +336,7 @@

#define verbInstr ( - i) + i)    (printf(STR(i)), (i)) @@ -338,7 +349,8 @@

+ diff --git a/html/arm__stdclib_8h_source.html b/html/arm__stdclib_8h_source.html deleted file mode 100644 index f3e26df..0000000 --- a/html/arm__stdclib_8h_source.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_stdclib.h Source File - - - - - - - - - - - -
-
- - - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_stdclib.h
-
-
-Go to the documentation of this file.
1
-
6/****************************************************************/
-
7#ifndef ARM_STDCLIB_H_
-
8 #define ARM_STDCLIB_H_
-
9
-
10#ifdef __cplusplus
-
11 extern "C" {
-
12#endif
-
13
-
14#include <string.h>
-
15#include <stdio.h>
-
16/****************************************************************/
-
17
-
18
-
19/*** prints and strings ***/
-
20#define str_clr(s) (s[0] = charNull)
-
21#define str_clr_safe(s) (memset(s, charNull, sizeof(s)))
-
22
-
23#define str_add_tab(s) (strcat(s, '\t'))
-
24#define str_add_cr(s) (strcat(s, '\r'))
-
25#define str_add_lf(s) (strcat(s, '\n'))
-
26#define str_add_crlf(s) (strcat(s, '\r\n'))
-
27
-
28
-
29#define printExpr(e) (printf("%s = %d\r\n", STR(e), (e)))
-
30
-
31#define verbInstr(i) (printf(STR(i)), (i))
-
32
-
33#define verbInc(x) (puts("Incrementing " STR(x)), (x)++)
-
34#define verbDec(x) (puts("Decrementing " STR(x)), (x)--)
-
35
-
36
-
37/****************************************************************/
-
38#ifdef __cplusplus
-
39 }
-
40#endif
-
41
-
42#endif /* ARM_STDCLIB_H_ */
-
43/****************************************************************/
-
- - - - diff --git a/html/arm__typedefs_8h.html b/html/arm__typedefs_8h.html index 7588014..9393f90 100644 --- a/html/arm__typedefs_8h.html +++ b/html/arm__typedefs_8h.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_typedefs.h File Reference + + @@ -32,23 +34,33 @@ - + + +
+
Data Structures | @@ -107,9 +120,7 @@
-
-

Go to the source code of this file.

- +
@@ -739,7 +750,8 @@

+ diff --git a/html/arm__typedefs_8h_source.html b/html/arm__typedefs_8h_source.html deleted file mode 100644 index c4fb8f6..0000000 --- a/html/arm__typedefs_8h_source.html +++ /dev/null @@ -1,824 +0,0 @@ - - - - - - - -sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): arm_typedefs.h Source File - - - - - - - - - - - -
-
-

Data Structures

struct  sBitfield8_i
- - - - - -
-
sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7 -
-
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
-
-
- - - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
arm_typedefs.h
-
-
-Go to the documentation of this file.
1
-
23// cppcheck-suppress-begin [misra-c2012-19.2]
-
24// cppcheck-suppress-begin [misra-c2012-21.1]
-
25/****************************************************************/
-
26#ifndef ARM_TYPEDEFS_H_
-
27 #define ARM_TYPEDEFS_H_
-
28
-
29#ifdef __cplusplus
-
30 extern "C" {
-
31#endif
-
32/****************************************************************/
-
33
-
34
-
35#ifndef STDBOOL_NDEF // TODO: maybe find proper pre-processing directive for compilers not handling stdbool.h
-
36#define __STDBOOL_DEF
-
37#else
-
38// If not possible to include header, types defined as symbols here
-
39typedef unsigned char bool;
-
40#endif
-
41
-
42#ifndef STDINT_NDEF // TODO: maybe find proper pre-processing directive for compilers not handling stdint.h
-
43#define __STDINT_DEF
-
44#else
-
45// If not possible to include header, types defined as symbols here
-
46typedef unsigned char uint8_t;
-
47typedef short unsigned int uint16_t;
-
48typedef long unsigned int uint32_t;
-
49typedef long long unsigned int uint64_t;
-
50typedef signed char int8_t;
-
51typedef short signed int int16_t;
-
52typedef long signed int int32_t;
-
53typedef long long signed int int64_t;
-
54#endif
-
55
-
56
-
57#ifdef __STDBOOL_DEF
-
58#include <stdbool.h>
-
59#endif
-
60#ifdef __STDINT_DEF
-
61#include <stdint.h>
-
62#endif
-
63
-
64typedef int intCPU_t;
-
65typedef unsigned int uintCPU_t;
-
66
-
67typedef bool BOOL;
-
68typedef char CHAR;
-
69typedef uint8_t BYTE;
-
70typedef uint16_t WORD;
-
71typedef uint32_t DWORD;
-
72typedef uint64_t LWORD;
-
73typedef int8_t SBYTE;
-
74typedef int16_t SWORD;
-
75typedef int32_t SDWORD;
-
76typedef int64_t SLWORD;
-
77
-
78
-
79#if defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN) || \
-
80 defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) || \
-
81 defined(__FLOAT_WORD_ORDER__) && (__FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__) || \
-
82 defined(__BIG_ENDIAN__) || \
-
83 defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
-
84 defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__)
-
85 #ifndef __BIG_ENDIAN__
-
86 #define __BIG_ENDIAN__
-
87 #endif
-
88#elif defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN) || \
-
89 defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
-
90 defined(__FLOAT_WORD_ORDER__) && (__FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
-
91 defined(__LITTLE_ENDIAN__) || \
-
92 defined(__ARMEL__) || defined(__THUMBEL__) || defined(__AARCH64EL__) || \
-
93 defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
-
94 #ifndef __LITTLE_ENDIAN__
-
95 #define __LITTLE_ENDIAN__
-
96 #endif
-
97#elif defined(__BYTE_ORDER) && (__BYTE_ORDER == __PDP_ENDIAN)
-
98 #warning "Unfortunately, easy-access typedefs for PDP Endian not handled by the sarmfw library!"
-
99 #ifndef __PDP_ENDIAN__
-
100 #define __PDP_ENDIAN__
-
101 #endif
-
102#else
-
103 #warning "Unknown endianness, please define LITTLE_ENDIAN or BIG_ENDIAN symbol to ensure behavior!"
-
104#endif
-
105
-
106
-
-
110typedef enum eState_i {
-
111 Off = 0U,
-
112 On = 1U
- -
-
114
-
115
-
-
119typedef enum eEdge_i {
-
120 NoEdge = 0,
- -
122 Falling
- -
-
124
-
125
-
-
129typedef enum eGPIOState_i {
-
130 Reset = 0,
- -
132 Toggle
- -
-
135
-
-
139typedef enum eGPIOPull_i {
- - -
142 NoPull
- -
-
144
-
145
-
-
149typedef struct sBitfield8_i {
-
150 #ifndef REVERSE_BITFIELD
-
151 BYTE b0 :1;
-
152 BYTE b1 :1;
-
153 BYTE b2 :1;
-
154 BYTE b3 :1;
-
155 BYTE b4 :1;
-
156 BYTE b5 :1;
-
157 BYTE b6 :1;
-
158 BYTE b7 :1;
-
159 #else
-
160 BYTE b7 :1;
-
161 BYTE b6 :1;
-
162 BYTE b5 :1;
-
163 BYTE b4 :1;
-
164 BYTE b3 :1;
-
165 BYTE b2 :1;
-
166 BYTE b1 :1;
-
167 BYTE b0 :1;
-
168 #endif
- -
-
170
-
-
174typedef struct sBitfield16_i {
-
175 #ifndef REVERSE_BITFIELD
-
176 WORD b0 :1;
-
177 WORD b1 :1;
-
178 WORD b2 :1;
-
179 WORD b3 :1;
-
180 WORD b4 :1;
-
181 WORD b5 :1;
-
182 WORD b6 :1;
-
183 WORD b7 :1;
-
184 WORD b8 :1;
-
185 WORD b9 :1;
- - - - - - -
192 #else
-
193 WORD b15 :1;
-
194 WORD b14 :1;
-
195 WORD b13 :1;
-
196 WORD b12 :1;
-
197 WORD b11 :1;
-
198 WORD b10 :1;
-
199 WORD b9 :1;
-
200 WORD b8 :1;
-
201 WORD b7 :1;
-
202 WORD b6 :1;
-
203 WORD b5 :1;
-
204 WORD b4 :1;
-
205 WORD b3 :1;
-
206 WORD b2 :1;
-
207 WORD b1 :1;
-
208 WORD b0 :1;
-
209 #endif
- -
-
211
-
-
215typedef struct sBitfield32_i {
-
216 #ifndef REVERSE_BITFIELD
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
249 #else
-
250 DWORD b31 :1;
-
251 DWORD b30 :1;
-
252 DWORD b29 :1;
-
253 DWORD b28 :1;
-
254 DWORD b27 :1;
-
255 DWORD b26 :1;
-
256 DWORD b25 :1;
-
257 DWORD b24 :1;
-
258 DWORD b23 :1;
-
259 DWORD b22 :1;
-
260 DWORD b21 :1;
-
261 DWORD b20 :1;
-
262 DWORD b19 :1;
-
263 DWORD b18 :1;
-
264 DWORD b17 :1;
-
265 DWORD b16 :1;
-
266 DWORD b15 :1;
-
267 DWORD b14 :1;
-
268 DWORD b13 :1;
-
269 DWORD b12 :1;
-
270 DWORD b11 :1;
-
271 DWORD b10 :1;
-
272 DWORD b9 :1;
-
273 DWORD b8 :1;
-
274 DWORD b7 :1;
-
275 DWORD b6 :1;
-
276 DWORD b5 :1;
-
277 DWORD b4 :1;
-
278 DWORD b3 :1;
-
279 DWORD b2 :1;
-
280 DWORD b1 :1;
-
281 DWORD b0 :1;
-
282 #endif
- -
-
284
-
-
288typedef struct sBitfield64_i {
-
289 #ifndef REVERSE_BITFIELD
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
354 #else
-
355 LWORD b63 :1;
-
356 LWORD b62 :1;
-
357 LWORD b61 :1;
-
358 LWORD b60 :1;
-
359 LWORD b59 :1;
-
360 LWORD b58 :1;
-
361 LWORD b57 :1;
-
362 LWORD b56 :1;
-
363 LWORD b55 :1;
-
364 LWORD b54 :1;
-
365 LWORD b53 :1;
-
366 LWORD b52 :1;
-
367 LWORD b51 :1;
-
368 LWORD b50 :1;
-
369 LWORD b49 :1;
-
370 LWORD b48 :1;
-
371 LWORD b47 :1;
-
372 LWORD b46 :1;
-
373 LWORD b45 :1;
-
374 LWORD b44 :1;
-
375 LWORD b43 :1;
-
376 LWORD b42 :1;
-
377 LWORD b41 :1;
-
378 LWORD b40 :1;
-
379 LWORD b39 :1;
-
380 LWORD b38 :1;
-
381 LWORD b37 :1;
-
382 LWORD b36 :1;
-
383 LWORD b35 :1;
-
384 LWORD b34 :1;
-
385 LWORD b33 :1;
-
386 LWORD b32 :1;
-
387 LWORD b31 :1;
-
388 LWORD b30 :1;
-
389 LWORD b29 :1;
-
390 LWORD b28 :1;
-
391 LWORD b27 :1;
-
392 LWORD b26 :1;
-
393 LWORD b25 :1;
-
394 LWORD b24 :1;
-
395 LWORD b23 :1;
-
396 LWORD b22 :1;
-
397 LWORD b21 :1;
-
398 LWORD b20 :1;
-
399 LWORD b19 :1;
-
400 LWORD b18 :1;
-
401 LWORD b17 :1;
-
402 LWORD b16 :1;
-
403 LWORD b15 :1;
-
404 LWORD b14 :1;
-
405 LWORD b13 :1;
-
406 LWORD b12 :1;
-
407 LWORD b11 :1;
-
408 LWORD b10 :1;
-
409 LWORD b9 :1;
-
410 LWORD b8 :1;
-
411 LWORD b7 :1;
-
412 LWORD b6 :1;
-
413 LWORD b5 :1;
-
414 LWORD b4 :1;
-
415 LWORD b3 :1;
-
416 LWORD b2 :1;
-
417 LWORD b1 :1;
-
418 LWORD b0 :1;
-
419 #endif
- -
-
421
-
422
-
423#if defined(ARDUINO)
-
424 // Undefine binary.h definitions used here
-
425 #undef B0
-
426 #undef B1
-
427#endif /* defined(ARDUINO) */
-
428
-
429
-
-
433typedef union uByte_i {
- - - -
-
437
-
-
441typedef union uWord_i {
- - -
444 struct {
-
445 #ifdef __LITTLE_ENDIAN__
-
446 BYTE B0 :8;
-
447 BYTE B1 :8;
-
448 #else
-
449 BYTE B1 :8;
-
450 BYTE B0 :8;
-
451 #endif
- - - -
-
455
-
-
459typedef union uDWord_i {
- - - -
463 struct {
-
464 #ifdef __LITTLE_ENDIAN__
-
465 WORD W0 :16;
-
466 WORD W1 :16;
-
467 #else
-
468 WORD W1 :16;
-
469 WORD W0 :16;
-
470 #endif
- -
472 struct {
-
473 #ifdef __LITTLE_ENDIAN__
-
474 BYTE B0 :8;
-
475 BYTE B1 :8;
-
476 BYTE B2 :8;
-
477 BYTE B3 :8;
-
478 #else
-
479 BYTE B3 :8;
-
480 BYTE B2 :8;
-
481 BYTE B1 :8;
-
482 BYTE B0 :8;
-
483 #endif
- - - -
-
487
-
-
491typedef union uLWord_i {
- - - - -
496 struct {
-
497 #ifdef __LITTLE_ENDIAN__
-
498 DWORD D0 :32;
-
499 DWORD D1 :32;
-
500 #else
-
501 DWORD D1 :32;
-
502 DWORD D0 :32;
-
503 #endif
- -
505 struct {
-
506 #ifdef __LITTLE_ENDIAN__
-
507 WORD W0 :16;
-
508 WORD W1 :16;
-
509 WORD W2 :16;
-
510 WORD W3 :16;
-
511 #else
-
512 WORD W3 :16;
-
513 WORD W2 :16;
-
514 WORD W1 :16;
-
515 WORD W0 :16;
-
516 #endif
- -
518 struct {
-
519 #ifdef __LITTLE_ENDIAN__
-
520 BYTE B0 :8;
-
521 BYTE B1 :8;
-
522 BYTE B2 :8;
-
523 BYTE B3 :8;
-
524 BYTE B4 :8;
-
525 BYTE B5 :8;
-
526 BYTE B6 :8;
-
527 BYTE B7 :8;
-
528 #else
-
529 BYTE B7 :8;
-
530 BYTE B6 :8;
-
531 BYTE B5 :8;
-
532 BYTE B4 :8;
-
533 BYTE B3 :8;
-
534 BYTE B2 :8;
-
535 BYTE B1 :8;
-
536 BYTE B0 :8;
-
537 #endif
- - - -
-
541
-
542
-
543#if defined(ARDUINO)
-
544#if defined(I_FIND_BINARY_HEADER_USEFUL)
-
545 // Redefine binary.h definitions used here
-
546 #define B0 0
-
547 #define B1 1
-
548#endif /* defined(I_FIND_BINARY_HEADER_USEFULL) */
-
549#endif /* defined(ARDUINO) */
-
550
-
551
-
552/****************************************************************/
-
553#ifdef __cplusplus
-
554 }
-
555#endif
-
556
-
557#endif /* ARM_TYPEDEFS_H_ */
-
558// cppcheck-suppress-end [misra-c2012-19.2]
-
559// cppcheck-suppress-end [misra-c2012-21.1]
-
560/****************************************************************/
-
struct sBitfield32_i sBitfield32
-
enum eGPIOPull_i eGPIOPull
-
int8_t SBYTE
Signed Byte typedef (8bits)
Definition arm_typedefs.h:73
-
union uByte_i uByte
-
eGPIOPull_i
GPIO possible pull resistor configuration.
Definition arm_typedefs.h:139
-
@ PullUp
GPIO with pull up.
Definition arm_typedefs.h:141
-
@ NoPull
GPIO without pull.
Definition arm_typedefs.h:142
-
@ PullDown
GPIO with pull down.
Definition arm_typedefs.h:140
-
int32_t SDWORD
Signed dWord typedef (32bits)
Definition arm_typedefs.h:75
-
uint64_t LWORD
Unsigned lWord typedef (64bits)
Definition arm_typedefs.h:72
-
eState_i
Activation state On, Off.
Definition arm_typedefs.h:110
-
@ On
On / Set.
Definition arm_typedefs.h:112
-
@ Off
Off / Reset.
Definition arm_typedefs.h:111
-
enum eEdge_i eEdge
-
union uDWord_i uDWord
-
int16_t SWORD
Signed Word typedef (16bits)
Definition arm_typedefs.h:74
-
struct sBitfield8_i sBitfield8
-
int intCPU_t
Signed integer typedef.
Definition arm_typedefs.h:64
-
union uLWord_i uLWord
-
uint8_t BYTE
Unsigned Byte typedef (8bits)
Definition arm_typedefs.h:69
-
uint16_t WORD
Unsigned Word typedef (16bits)
Definition arm_typedefs.h:70
-
bool BOOL
boolean typedef (1bit, for stdbool.h handling compilers)
Definition arm_typedefs.h:67
-
enum eState_i eState
-
struct sBitfield64_i sBitfield64
-
unsigned int uintCPU_t
Unsigned integer typedef.
Definition arm_typedefs.h:65
-
eGPIOState_i
GPIO possible states/actions enumeration.
Definition arm_typedefs.h:129
-
@ Toggle
Definition arm_typedefs.h:132
-
@ Set
Set State.
Definition arm_typedefs.h:131
-
@ Reset
Reset State.
Definition arm_typedefs.h:130
-
union uWord_i uWord
-
enum eGPIOState_i eGPIOState
-
struct sBitfield16_i sBitfield16
-
char CHAR
Char typedef (8bits)
Definition arm_typedefs.h:68
-
eEdge_i
Signal Edges.
Definition arm_typedefs.h:119
-
@ NoEdge
No change.
Definition arm_typedefs.h:120
-
@ Rising
Rising edge.
Definition arm_typedefs.h:121
-
@ Falling
Falling edge.
Definition arm_typedefs.h:122
-
uint32_t DWORD
Unsigned dWord typedef (32bits)
Definition arm_typedefs.h:71
-
int64_t SLWORD
Signed lWord typedef (64bits)
Definition arm_typedefs.h:76
-
Definition arm_typedefs.h:174
-
WORD b10
Bit 10.
Definition arm_typedefs.h:186
-
WORD b6
Bit 6.
Definition arm_typedefs.h:182
-
WORD b15
Bit 15 (MSB)
Definition arm_typedefs.h:191
-
WORD b5
Bit 5.
Definition arm_typedefs.h:181
-
WORD b13
Bit 13.
Definition arm_typedefs.h:189
-
WORD b14
Bit 14.
Definition arm_typedefs.h:190
-
WORD b3
Bit 3.
Definition arm_typedefs.h:179
-
WORD b0
Bit 0 (LSB)
Definition arm_typedefs.h:176
-
WORD b4
Bit 4.
Definition arm_typedefs.h:180
-
WORD b8
Bit 8.
Definition arm_typedefs.h:184
-
WORD b9
Bit 9.
Definition arm_typedefs.h:185
-
WORD b1
Bit 1.
Definition arm_typedefs.h:177
-
WORD b11
Bit 11.
Definition arm_typedefs.h:187
-
WORD b7
Bit 7.
Definition arm_typedefs.h:183
-
WORD b12
Bit 12.
Definition arm_typedefs.h:188
-
WORD b2
Bit 2.
Definition arm_typedefs.h:178
-
Definition arm_typedefs.h:215
-
DWORD b17
Bit 17.
Definition arm_typedefs.h:234
-
DWORD b21
Bit 21.
Definition arm_typedefs.h:238
-
DWORD b16
Bit 16.
Definition arm_typedefs.h:233
-
DWORD b31
Bit 31 (MSB)
Definition arm_typedefs.h:248
-
DWORD b18
Bit 18.
Definition arm_typedefs.h:235
-
DWORD b26
Bit 26.
Definition arm_typedefs.h:243
-
DWORD b2
Bit 2.
Definition arm_typedefs.h:219
-
DWORD b23
Bit 23.
Definition arm_typedefs.h:240
-
DWORD b27
Bit 27.
Definition arm_typedefs.h:244
-
DWORD b28
Bit 28.
Definition arm_typedefs.h:245
-
DWORD b29
Bit 29.
Definition arm_typedefs.h:246
-
DWORD b30
Bit 30.
Definition arm_typedefs.h:247
-
DWORD b0
Bit 0 (LSB)
Definition arm_typedefs.h:217
-
DWORD b14
Bit 14.
Definition arm_typedefs.h:231
-
DWORD b22
Bit 22.
Definition arm_typedefs.h:239
-
DWORD b24
Bit 24.
Definition arm_typedefs.h:241
-
DWORD b11
Bit 11.
Definition arm_typedefs.h:228
-
DWORD b13
Bit 13.
Definition arm_typedefs.h:230
-
DWORD b10
Bit 10.
Definition arm_typedefs.h:227
-
DWORD b25
Bit 25.
Definition arm_typedefs.h:242
-
DWORD b1
Bit 1.
Definition arm_typedefs.h:218
-
DWORD b6
Bit 6.
Definition arm_typedefs.h:223
-
DWORD b3
Bit 3.
Definition arm_typedefs.h:220
-
DWORD b5
Bit 5.
Definition arm_typedefs.h:222
-
DWORD b19
Bit 19.
Definition arm_typedefs.h:236
-
DWORD b8
Bit 8.
Definition arm_typedefs.h:225
-
DWORD b15
Bit 15.
Definition arm_typedefs.h:232
-
DWORD b4
Bit 4.
Definition arm_typedefs.h:221
-
DWORD b7
Bit 7.
Definition arm_typedefs.h:224
-
DWORD b20
Bit 20.
Definition arm_typedefs.h:237
-
DWORD b12
Bit 12.
Definition arm_typedefs.h:229
-
DWORD b9
Bit 9.
Definition arm_typedefs.h:226
-
Definition arm_typedefs.h:288
-
LWORD b60
Bit 60.
Definition arm_typedefs.h:350
-
LWORD b29
Bit 29.
Definition arm_typedefs.h:319
-
LWORD b33
Bit 33.
Definition arm_typedefs.h:323
-
LWORD b12
Bit 12.
Definition arm_typedefs.h:302
-
LWORD b23
Bit 23.
Definition arm_typedefs.h:313
-
LWORD b1
Bit 1.
Definition arm_typedefs.h:291
-
LWORD b52
Bit 52.
Definition arm_typedefs.h:342
-
LWORD b18
Bit 18.
Definition arm_typedefs.h:308
-
LWORD b32
Bit 32.
Definition arm_typedefs.h:322
-
LWORD b38
Bit 38.
Definition arm_typedefs.h:328
-
LWORD b0
Bit 0 (LSB)
Definition arm_typedefs.h:290
-
LWORD b26
Bit 26.
Definition arm_typedefs.h:316
-
LWORD b46
Bit 46.
Definition arm_typedefs.h:336
-
LWORD b7
Bit 7.
Definition arm_typedefs.h:297
-
LWORD b21
Bit 21.
Definition arm_typedefs.h:311
-
LWORD b58
Bit 58.
Definition arm_typedefs.h:348
-
LWORD b19
Bit 19.
Definition arm_typedefs.h:309
-
LWORD b11
Bit 11.
Definition arm_typedefs.h:301
-
LWORD b41
Bit 41.
Definition arm_typedefs.h:331
-
LWORD b42
Bit 42.
Definition arm_typedefs.h:332
-
LWORD b28
Bit 28.
Definition arm_typedefs.h:318
-
LWORD b50
Bit 50.
Definition arm_typedefs.h:340
-
LWORD b55
Bit 55.
Definition arm_typedefs.h:345
-
LWORD b47
Bit 47.
Definition arm_typedefs.h:337
-
LWORD b15
Bit 15.
Definition arm_typedefs.h:305
-
LWORD b31
Bit 31.
Definition arm_typedefs.h:321
-
LWORD b5
Bit 5.
Definition arm_typedefs.h:295
-
LWORD b43
Bit 43.
Definition arm_typedefs.h:333
-
LWORD b51
Bit 51.
Definition arm_typedefs.h:341
-
LWORD b59
Bit 59.
Definition arm_typedefs.h:349
-
LWORD b44
Bit 44.
Definition arm_typedefs.h:334
-
LWORD b27
Bit 27.
Definition arm_typedefs.h:317
-
LWORD b49
Bit 49.
Definition arm_typedefs.h:339
-
LWORD b16
Bit 16.
Definition arm_typedefs.h:306
-
LWORD b14
Bit 14.
Definition arm_typedefs.h:304
-
LWORD b63
Bit 63 (MSB)
Definition arm_typedefs.h:353
-
LWORD b62
Bit 62.
Definition arm_typedefs.h:352
-
LWORD b45
Bit 45.
Definition arm_typedefs.h:335
-
LWORD b35
Bit 35.
Definition arm_typedefs.h:325
-
LWORD b13
Bit 13.
Definition arm_typedefs.h:303
-
LWORD b24
Bit 24.
Definition arm_typedefs.h:314
-
LWORD b48
Bit 48.
Definition arm_typedefs.h:338
-
LWORD b22
Bit 22.
Definition arm_typedefs.h:312
-
LWORD b36
Bit 36.
Definition arm_typedefs.h:326
-
LWORD b10
Bit 10.
Definition arm_typedefs.h:300
-
LWORD b37
Bit 37.
Definition arm_typedefs.h:327
-
LWORD b34
Bit 34.
Definition arm_typedefs.h:324
-
LWORD b9
Bit 9.
Definition arm_typedefs.h:299
-
LWORD b30
Bit 30.
Definition arm_typedefs.h:320
-
LWORD b8
Bit 8.
Definition arm_typedefs.h:298
-
LWORD b20
Bit 20.
Definition arm_typedefs.h:310
-
LWORD b4
Bit 4.
Definition arm_typedefs.h:294
-
LWORD b40
Bit 40.
Definition arm_typedefs.h:330
-
LWORD b6
Bit 6.
Definition arm_typedefs.h:296
-
LWORD b39
Bit 39.
Definition arm_typedefs.h:329
-
LWORD b17
Bit 17.
Definition arm_typedefs.h:307
-
LWORD b57
Bit 57.
Definition arm_typedefs.h:347
-
LWORD b61
Bit 61.
Definition arm_typedefs.h:351
-
LWORD b3
Bit 3.
Definition arm_typedefs.h:293
-
LWORD b2
Bit 2.
Definition arm_typedefs.h:292
-
LWORD b56
Bit 56.
Definition arm_typedefs.h:346
-
LWORD b54
Bit 54.
Definition arm_typedefs.h:344
-
LWORD b53
Bit 53.
Definition arm_typedefs.h:343
-
LWORD b25
Bit 25.
Definition arm_typedefs.h:315
-
Definition arm_typedefs.h:149
-
BYTE b5
Bit 5.
Definition arm_typedefs.h:156
-
BYTE b1
Bit 1.
Definition arm_typedefs.h:152
-
BYTE b0
Bit 0 (LSB)
Definition arm_typedefs.h:151
-
BYTE b6
Bit 6.
Definition arm_typedefs.h:157
-
BYTE b3
Bit 3.
Definition arm_typedefs.h:154
-
BYTE b7
Bit 7 (MSB)
Definition arm_typedefs.h:158
-
BYTE b2
Bit 2.
Definition arm_typedefs.h:153
-
BYTE b4
Bit 4.
Definition arm_typedefs.h:155
-
Definition arm_typedefs.h:433
-
sBitfield8 Bits
Bits.
Definition arm_typedefs.h:435
-
BYTE Byte
BYTE.
Definition arm_typedefs.h:434
-
Definition arm_typedefs.h:459
-
BYTE B3
B3 MSByte.
Definition arm_typedefs.h:479
-
BYTE B2
B2.
Definition arm_typedefs.h:480
-
WORD W1
W1 MSWord.
Definition arm_typedefs.h:468
-
struct uDWord_i::@2 Bytes
-
WORD Word[2]
Words tab.
Definition arm_typedefs.h:461
-
struct uDWord_i::@1 Words
-
BYTE B1
B1.
Definition arm_typedefs.h:481
-
sBitfield32 Bits
Bits.
Definition arm_typedefs.h:485
-
BYTE B0
B0 LSByte.
Definition arm_typedefs.h:482
-
BYTE Byte[4]
Bytes tab.
Definition arm_typedefs.h:462
-
DWORD DWord
32b
Definition arm_typedefs.h:460
-
WORD W0
W0 LSWord.
Definition arm_typedefs.h:469
-
Definition arm_typedefs.h:491
-
WORD W2
W2.
Definition arm_typedefs.h:513
-
DWORD D0
DW0 LSDWord.
Definition arm_typedefs.h:502
-
WORD W1
W1.
Definition arm_typedefs.h:514
-
WORD Word[4]
Words tab.
Definition arm_typedefs.h:494
-
BYTE B0
B0 LSByte.
Definition arm_typedefs.h:536
-
DWORD D1
DW1 MSDWord.
Definition arm_typedefs.h:501
-
BYTE B6
B6.
Definition arm_typedefs.h:530
-
BYTE B2
B2.
Definition arm_typedefs.h:534
-
BYTE B7
B7 MSByte.
Definition arm_typedefs.h:529
-
BYTE B1
B1.
Definition arm_typedefs.h:535
-
BYTE B5
B5.
Definition arm_typedefs.h:531
-
struct uLWord_i::@5 Bytes
-
struct uLWord_i::@3 DWords
-
WORD W3
W3 MSWord.
Definition arm_typedefs.h:512
-
BYTE B4
B4.
Definition arm_typedefs.h:532
-
WORD W0
W0 LSWord.
Definition arm_typedefs.h:515
-
sBitfield64 Bits
Bits.
Definition arm_typedefs.h:539
-
DWORD DWord[2]
DWords tab.
Definition arm_typedefs.h:493
-
BYTE B3
B3.
Definition arm_typedefs.h:533
-
struct uLWord_i::@4 Words
-
LWORD LWord
64b
Definition arm_typedefs.h:492
-
BYTE Byte[8]
Bytes tab.
Definition arm_typedefs.h:495
-
Definition arm_typedefs.h:441
-
BYTE B0
LSByte.
Definition arm_typedefs.h:450
-
BYTE B1
MSByte.
Definition arm_typedefs.h:449
-
sBitfield16 Bits
Bits.
Definition arm_typedefs.h:453
-
BYTE Byte[2]
Bytes tab.
Definition arm_typedefs.h:443
-
WORD Word
16b
Definition arm_typedefs.h:442
-
struct uWord_i::@0 Bytes
-
- - - - diff --git a/html/classes.html b/html/classes.html index c443ba5..8e082f8 100644 --- a/html/classes.html +++ b/html/classes.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Data Structure Index + + @@ -32,24 +34,35 @@ - + + +
+
+
diff --git a/html/doxygen.css b/html/doxygen.css index 7b7d851..209912c 100644 --- a/html/doxygen.css +++ b/html/doxygen.css @@ -1,4 +1,4 @@ -/* The standard CSS for doxygen 1.10.0*/ +/* The standard CSS for doxygen 1.11.0*/ html { /* page base colors */ @@ -657,7 +657,24 @@ dl.el { margin-left: -1cm; } +ul.check { + list-style:none; + text-indent: -16px; + padding-left: 38px; +} +li.unchecked:before { + content: "\2610\A0"; +} +li.checked:before { + content: "\2611\A0"; +} + +ol { + text-indent: 0px; +} + ul { + text-indent: 0px; overflow: visible; } @@ -1614,7 +1631,7 @@ dl.note { border-color: #D0C000; } -dl.warning, dl.attention { +dl.warning, dl.attention, dl.important { margin-left: -7px; padding-left: 3px; border-left: 4px solid; @@ -1662,7 +1679,7 @@ dl.bug dt a, dl.deprecated dt a, dl.todo dt a, dl.test a { font-weight: bold !important; } -dl.warning, dl.attention, dl.note, dl.deprecated, dl.bug, +dl.warning, dl.attention, dl.important, dl.note, dl.deprecated, dl.bug, dl.invariant, dl.pre, dl.post, dl.todo, dl.test, dl.remark { padding: 10px; margin: 10px 0px; @@ -1675,13 +1692,13 @@ dl.section dd { margin-bottom: 2px; } -dl.warning, dl.attention { +dl.warning, dl.attention, dl.important { background: var(--warning-color-bg); border-left: 8px solid var(--warning-color-hl); color: var(--warning-color-text); } -dl.warning dt, dl.attention dt { +dl.warning dt, dl.attention dt, dl.important dt { color: var(--warning-color-hl); } @@ -1739,7 +1756,9 @@ dl.deprecated dt a { color: var(--deprecated-color-hl) !important; } -dl.section dd, dl.bug dd, dl.deprecated dd, dl.todo dd, dl.test dd { +dl.note dd, dl.warning dd, dl.pre dd, dl.post dd, +dl.remark dd, dl.attention dd, dl.important dd, dl.invariant dd, +dl.bug dd, dl.deprecated dd, dl.todo dd, dl.test dd { margin-inline-start: 0px; } diff --git a/html/doxygen_crawl.html b/html/doxygen_crawl.html index 0d26d8b..cf52585 100644 --- a/html/doxygen_crawl.html +++ b/html/doxygen_crawl.html @@ -4,37 +4,10 @@ Validator / crawler helper - + - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -193,5 +166,609 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/dynsections.js b/html/dynsections.js index 8f49326..b05f4c8 100644 --- a/html/dynsections.js +++ b/html/dynsections.js @@ -23,6 +23,10 @@ @licend The above is the entire license notice for the JavaScript code in this file */ +function toggleVisibility(linkObj) { + return dynsection.toggleVisibility(linkObj); +} + let dynsection = { // helper function diff --git a/html/files.html b/html/files.html index aa0f27c..bc77c02 100644 --- a/html/files.html +++ b/html/files.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): File List + + @@ -32,24 +34,35 @@
- + + +
+
Here is a list of all files with brief descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +
 arm_attributes.hARM common compilers attributes
 arm_chip_ino.hCommon macros for Arduino
 arm_chip_pic.hCommon macros for PIC
 arm_chip_sam.hARM common macros for Atmel SAM families
 arm_chip_stm32.hARM common macros for STM32
 arm_cmsis.hARM link with CMSIS files
 arm_errors.hARM user errors
 arm_hal_peripheral.hARM HAL peripheral includes
 arm_inlines.hARM common inlines
 arm_inlines_angle.hAngle conversion inlines
 arm_inlines_ascii.hASCII code conversion inlines
 arm_inlines_average.hAveraging inlines
 arm_inlines_bcd.hBCD code conversion inlines
 arm_inlines_binary.hBinary manipulation inlines
 arm_inlines_endian.hEndian conversion and testing inlines
 arm_inlines_float.hFloating point manipulation inlines
 arm_inlines_gray.hGray code conversion inlines
 arm_inlines_linearization.hLinearization inlines
 arm_inlines_rotation.hRotation inlines
 arm_inlines_temperature.hTemperature conversion inlines
 arm_inlines_ticks.hTicks related inlines
 arm_inlines_var_size.hVariables size conversion inlines
 arm_inlines_var_test.hVariables test inlines
 arm_macros.hARM common macros
 arm_stdclib.hARM common standard c library wrapper macros
 arm_typedefs.hARM common typedefs
 sarmfsw.hSarmfsw (ARM) common headers
 arm_attributes.hARM common compilers attributes
 arm_chip_ino.hCommon macros for Arduino
 arm_chip_pic.hCommon macros for PIC
 arm_chip_sam.hARM common macros for Atmel SAM families
 arm_chip_stm32.hARM common macros for STM32
 arm_cmsis.hARM link with CMSIS files
 arm_errors.hARM user errors
 arm_hal_peripheral.hARM HAL peripheral includes
 arm_inlines.hARM common inlines
 arm_inlines_angle.hAngle conversion inlines
 arm_inlines_ascii.hASCII code conversion inlines
 arm_inlines_average.hAveraging inlines
 arm_inlines_bcd.hBCD code conversion inlines
 arm_inlines_binary.hBinary manipulation inlines
 arm_inlines_endian.hEndian conversion and testing inlines
 arm_inlines_float.hFloating point manipulation inlines
 arm_inlines_gray.hGray code conversion inlines
 arm_inlines_linearization.hLinearization inlines
 arm_inlines_rotation.hRotation inlines
 arm_inlines_temperature.hTemperature conversion inlines
 arm_inlines_ticks.hTicks related inlines
 arm_inlines_var_size.hVariables size conversion inlines
 arm_inlines_var_test.hVariables test inlines
 arm_macros.hARM common macros
 arm_stdclib.hARM common standard c library wrapper macros
 arm_typedefs.hARM common typedefs
 sarmfsw.hSarmfsw (ARM) common headers
+
diff --git a/html/functions.html b/html/functions.html index 347b18c..4f3bca3 100644 --- a/html/functions.html +++ b/html/functions.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Data Fields + + @@ -32,24 +34,35 @@ - + + +
+
- a -

    + diff --git a/html/globals_a.html b/html/globals_a.html index 57729d5..bc17615 100644 --- a/html/globals_a.html +++ b/html/globals_a.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    - a -

    + diff --git a/html/globals_b.html b/html/globals_b.html index bb466fb..d6f94c5 100644 --- a/html/globals_b.html +++ b/html/globals_b.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    - b -

    + diff --git a/html/globals_c.html b/html/globals_c.html index 0c3f98e..d092633 100644 --- a/html/globals_c.html +++ b/html/globals_c.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    - c -

    + diff --git a/html/globals_d.html b/html/globals_d.html index 28a18ad..7414e0f 100644 --- a/html/globals_d.html +++ b/html/globals_d.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    - d -

    + diff --git a/html/globals_defs.html b/html/globals_defs.html index a9f2dd0..7e49ee5 100644 --- a/html/globals_defs.html +++ b/html/globals_defs.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    - e -

    - f -

    @@ -186,10 +199,10 @@

    - m -

    @@ -238,7 +251,7 @@

    - s -

    • SCALE_VAL_T : arm_macros.h
    • SECTION__ : arm_attributes.h
    • SET_BITS : arm_macros.h
    • -
    • SET_BITS_VAL : arm_macros.h
    • +
    • SET_BITS_VAL : arm_macros.h
    • SPLIT_FLOAT_TO_INTS : arm_inlines_float.h
    • SSO : arm_attributes.h
    • STM32_FLASHSIZE : arm_chip_stm32.h
    • @@ -304,7 +317,8 @@

      - x -

        + diff --git a/html/globals_e.html b/html/globals_e.html index e61b830..21b2f1f 100644 --- a/html/globals_e.html +++ b/html/globals_e.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
        +
        - e -

    + diff --git a/html/globals_enum.html b/html/globals_enum.html index cd46dd8..e13a190 100644 --- a/html/globals_enum.html +++ b/html/globals_enum.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    +
    diff --git a/html/globals_eval.html b/html/globals_eval.html index 9484b8e..b319803 100644 --- a/html/globals_eval.html +++ b/html/globals_eval.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@
    - + + +
    +
    - t -

    + diff --git a/html/globals_f.html b/html/globals_f.html index f8cf503..338a7e8 100644 --- a/html/globals_f.html +++ b/html/globals_f.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): Globals + + @@ -32,24 +34,35 @@ - + + +
    +
    - f -

+ diff --git a/html/unionu_d_word.html b/html/unionu_d_word.html index b8c5e17..9eaeb3e 100644 --- a/html/unionu_d_word.html +++ b/html/unionu_d_word.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): uDWord Union Reference + + @@ -32,23 +34,33 @@ - + + +
+
uDWord Union Reference
@@ -79,16 +92,17 @@

Union for DWORD. More...

-

#include "arm_typedefs.h"

+

#include "arm_typedefs.h"

Detailed Description

Union for DWORD.


The documentation for this union was generated from the following file:
+ diff --git a/html/unionu_d_word__i.html b/html/unionu_d_word__i.html index 89e1e2c..6e739f3 100644 --- a/html/unionu_d_word__i.html +++ b/html/unionu_d_word__i.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): uDWord_i Union Reference + + @@ -32,23 +34,33 @@ - + + +
+
@@ -78,7 +91,7 @@
-

#include "arm_typedefs.h"

+

#include "arm_typedefs.h"

Collaboration diagram for uDWord_i:
@@ -321,12 +334,13 @@

arm_typedefs.h +
  • arm_typedefs.h
  • +
    diff --git a/html/unionu_l_word.html b/html/unionu_l_word.html index 4c026ed..3a860e5 100644 --- a/html/unionu_l_word.html +++ b/html/unionu_l_word.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): uLWord Union Reference + + @@ -32,23 +34,33 @@
    - + + +
    +
    uLWord Union Reference
    @@ -79,16 +92,17 @@

    Union for LWORD. More...

    -

    #include "arm_typedefs.h"

    +

    #include "arm_typedefs.h"

    Detailed Description

    Union for LWORD.


    The documentation for this union was generated from the following file:
    + diff --git a/html/unionu_l_word__i.html b/html/unionu_l_word__i.html index c12a55d..845815f 100644 --- a/html/unionu_l_word__i.html +++ b/html/unionu_l_word__i.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): uLWord_i Union Reference + + @@ -32,23 +34,33 @@ - + + +
    +
    @@ -78,7 +91,7 @@
    -

    #include "arm_typedefs.h"

    +

    #include "arm_typedefs.h"

    Collaboration diagram for uLWord_i:
    @@ -510,12 +523,13 @@

    arm_typedefs.h +
  • arm_typedefs.h
  • +
    diff --git a/html/unionu_word.html b/html/unionu_word.html index 265455a..a7d2a5c 100644 --- a/html/unionu_word.html +++ b/html/unionu_word.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): uWord Union Reference + + @@ -32,23 +34,33 @@
    - + + +
    +
    uWord Union Reference
    @@ -79,16 +92,17 @@

    Union for WORD. More...

    -

    #include "arm_typedefs.h"

    +

    #include "arm_typedefs.h"

    Detailed Description

    Union for WORD.


    The documentation for this union was generated from the following file:
    + diff --git a/html/unionu_word__i.html b/html/unionu_word__i.html index 3308113..c6a40a8 100644 --- a/html/unionu_word__i.html +++ b/html/unionu_word__i.html @@ -3,13 +3,15 @@ - + sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform): uWord_i Union Reference + + @@ -32,23 +34,33 @@ - + + +
    +
    @@ -78,7 +91,7 @@
    -

    #include "arm_typedefs.h"

    +

    #include "arm_typedefs.h"

    Collaboration diagram for uWord_i:
    @@ -208,12 +221,13 @@

    arm_typedefs.h +
  • arm_typedefs.h
  • +