Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a08ba4d

Browse filesBrowse files
fpistmABOSTM
authored andcommitted
feat: support STM32WL family
Fixes #44 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent fcc5e7a commit a08ba4d
Copy full SHA for a08ba4d

File tree

Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed

‎src/port.c

Copy file name to clipboardExpand all lines: src/port.c
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@
2323
#endif
2424

2525
#if (__CORTEX_M == 4U)
26+
#if (__FPU_PRESENT == 0)
27+
/* Fallback to CM3 port as there is no FPU */
28+
#include "../portable/GCC/ARM_CM3/port.c"
29+
#else
2630
/* MPU not supported */
2731
#if 0 /*(__MPU_PRESENT == 1)*/
2832
#include "../portable/GCC/ARM_CM4_MPU/port.c"
2933
#else
3034
#include "../portable/GCC/ARM_CM4F/port.c"
3135
#endif
3236
#endif
37+
#endif
3338

3439
#if (__CORTEX_M == 7U)
3540
/* MPU not supported */

‎src/portmacro.h

Copy file name to clipboardExpand all lines: src/portmacro.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ inline __attribute__(( always_inline )) static BaseType_t xPortIsInsideInterrupt
2828
#endif
2929

3030
#if (__CORTEX_M == 4U)
31+
#if (__FPU_PRESENT == 0)
32+
/* Fallback to CM3 port as there is no FPU */
33+
#include "../portable/GCC/ARM_CM3/portmacro.h"
34+
#else
3135
/* MPU not supported */
3236
#if 0 /*(__MPU_PRESENT == 1)*/
3337
#include "../portable/GCC/ARM_CM4_MPU/portmacro.h"
3438
#else
3539
#include "../portable/GCC/ARM_CM4F/portmacro.h"
3640
#endif
3741
#endif
42+
#endif
3843

3944
#if (__CORTEX_M == 7U)
4045
/* MPU not supported */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.