Skip to content

Commit e730645

Browse files
authored
Merge pull request #49 from fpistm/wl_support
feat: support STM32WL family
2 parents fcc5e7a + 8016ac2 commit e730645

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

examples/frLiuLayland/frLiuLayland.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct task_t {
3131
task_t tasks1[] = {{10, 5, 2}, {15, 6, 1}};
3232
task_t tasks2[] = {{10, 5, 2}, {15, 4, 1}};
3333
task_t tasks3[] = {{10, 3, 3}, {13, 4, 2}, {17, 4, 1}};
34-
task_t tasks4[] = {{10, 3, 3}, {13, 4, 2}, {17, 2, 1}};
34+
task_t tasks4[] = {{10, 3, 3}, {13, 4, 2}, {17, 1, 1}};
3535
task_t* taskList[] = {tasks1, tasks2, tasks3, tasks4};
3636
int taskCount[] = {2, 2, 3, 3};
3737
//------------------------------------------------------------------------------

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 (__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

+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 (__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)