diff --git a/examples/frLiuLayland/frLiuLayland.ino b/examples/frLiuLayland/frLiuLayland.ino index ec8d7d4..723122b 100644 --- a/examples/frLiuLayland/frLiuLayland.ino +++ b/examples/frLiuLayland/frLiuLayland.ino @@ -31,7 +31,7 @@ struct task_t { task_t tasks1[] = {{10, 5, 2}, {15, 6, 1}}; task_t tasks2[] = {{10, 5, 2}, {15, 4, 1}}; task_t tasks3[] = {{10, 3, 3}, {13, 4, 2}, {17, 4, 1}}; -task_t tasks4[] = {{10, 3, 3}, {13, 4, 2}, {17, 2, 1}}; +task_t tasks4[] = {{10, 3, 3}, {13, 4, 2}, {17, 1, 1}}; task_t* taskList[] = {tasks1, tasks2, tasks3, tasks4}; int taskCount[] = {2, 2, 3, 3}; //------------------------------------------------------------------------------ diff --git a/src/port.c b/src/port.c index 432f0f0..6857410 100644 --- a/src/port.c +++ b/src/port.c @@ -23,6 +23,10 @@ #endif #if (__CORTEX_M == 4U) +#if (__FPU_PRESENT == 0) +/* Fallback to CM3 port as there is no FPU */ +#include "../portable/GCC/ARM_CM3/port.c" +#else /* MPU not supported */ #if 0 /*(__MPU_PRESENT == 1)*/ #include "../portable/GCC/ARM_CM4_MPU/port.c" @@ -30,6 +34,7 @@ #include "../portable/GCC/ARM_CM4F/port.c" #endif #endif +#endif #if (__CORTEX_M == 7U) /* MPU not supported */ diff --git a/src/portmacro.h b/src/portmacro.h index 51cd339..f06372c 100644 --- a/src/portmacro.h +++ b/src/portmacro.h @@ -28,6 +28,10 @@ inline __attribute__(( always_inline )) static BaseType_t xPortIsInsideInterrupt #endif #if (__CORTEX_M == 4U) +#if (__FPU_PRESENT == 0) +/* Fallback to CM3 port as there is no FPU */ +#include "../portable/GCC/ARM_CM3/portmacro.h" +#else /* MPU not supported */ #if 0 /*(__MPU_PRESENT == 1)*/ #include "../portable/GCC/ARM_CM4_MPU/portmacro.h" @@ -35,6 +39,7 @@ inline __attribute__(( always_inline )) static BaseType_t xPortIsInsideInterrupt #include "../portable/GCC/ARM_CM4F/portmacro.h" #endif #endif +#endif #if (__CORTEX_M == 7U) /* MPU not supported */