Skip to content

Commit be4ac4d

Browse files
committed
feat: support STM32WL family
Fixes #44 Signed-off-by: Frederic Pillon <[email protected]>
1 parent fcc5e7a commit be4ac4d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/port.c

+5
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@
2323
#endif
2424

2525
#if (__CORTEX_M == 4U)
26+
#if defined(STM32WLxx)
27+
/* Fallback to CM3 port as there is no FPU for STM32WL */
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

+5
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 defined(STM32WLxx)
32+
/* Fallback to CM3 port as there is no FPU for STM32WL */
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)