Skip to content

Commit d986252

Browse files
committed
Remove coroutines from FreeRTOS-Kernel.
1 parent 5f7ca3a commit d986252

File tree

5 files changed

+2
-1437
lines changed

5 files changed

+2
-1437
lines changed

croutine.c

Lines changed: 0 additions & 363 deletions
This file was deleted.

include/FreeRTOS.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@
159159
#error Missing definition: configUSE_16_BIT_TICKS must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
160160
#endif
161161

162-
#ifndef configUSE_CO_ROUTINES
163-
#define configUSE_CO_ROUTINES 0
164-
#endif
165-
166162
#ifndef INCLUDE_vTaskPrioritySet
167163
#define INCLUDE_vTaskPrioritySet 0
168164
#endif
@@ -257,10 +253,8 @@
257253
#define INCLUDE_xTaskGetCurrentTaskHandle 1
258254
#endif
259255

260-
#if configUSE_CO_ROUTINES != 0
261-
#ifndef configMAX_CO_ROUTINE_PRIORITIES
262-
#error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1.
263-
#endif
256+
#if ( defined( configUSE_CO_ROUTINES ) && configUSE_CO_ROUTINES != 0 )
257+
#warning Co-routines have been removed from FreeRTOS-Kernel versions released after V10.5.1. You can view previous versions of the FreeRTOS Kernel at github.com/freertos/freertos-kernel/tree/V10.5.1 .
264258
#endif
265259

266260
#ifndef configUSE_DAEMON_TASK_STARTUP_HOOK

0 commit comments

Comments
 (0)