Skip to content

Commit 8aefa6e

Browse files
authored
Merge pull request #29 from CHERIoT-Platform/hlefeuvre/update-freertos-submodule
Bump FreeRTOS+TCP submodule to 4.2.0
2 parents f417103 + c1fe088 commit 8aefa6e

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

lib/tcpip/FreeRTOSIPConfig.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
22
// SPDX-License-Identifier: MIT
33

44
#pragma once
5+
6+
#ifndef FREERTOS_CONFIG_H
7+
/**
8+
* This macro would usually be defined in FreeRTOSConfig.h, which we do not
9+
* implement here because we do not use the FreeRTOS core. We define it here
10+
* because FreeRTOS+TCP refuses to compile without.
11+
*/
12+
#define FREERTOS_CONFIG_H
13+
#endif
14+
15+
/**
16+
* FreeRTOS+TCP errno codes. See the header documentation.
17+
*/
18+
#include <FreeRTOS_errno.h>
19+
20+
/**
21+
* `INCLUDE_*` macros have no effect here since we do not use the FreeRTOS
22+
* core, however FreeRTOS+TCP refuses to compile without defining these.
23+
*/
24+
#define INCLUDE_vTaskDelay 1
25+
#define INCLUDE_xTaskGetCurrentTaskHandle 1
26+
27+
/**
28+
* Scheduling-related settings have no impact since we do not use the FreeRTOS
29+
* core, however FreeRTOS+TCP refuses to compile without defining these.
30+
*/
31+
#define ipconfigIP_TASK_PRIORITY 0
32+
#define configMAX_PRIORITIES 1
33+
#define configMINIMAL_STACK_SIZE 128
34+
35+
/**
36+
* Enable counting semaphore functionality in the build, as this is necessary
37+
* to build FreeRTOS+TCP.
38+
*/
39+
#define configUSE_COUNTING_SEMAPHORES 1
40+
541
/**
642
* Macro defined to flag that this file has been included.
743
*/
@@ -49,6 +85,9 @@
4985
#define xPortGetMinimumEverFreeHeapSize() 0
5086
#define xPortGetFreeHeapSize() 0
5187

88+
// Use dynamic allocation
89+
#define configSUPPORT_DYNAMIC_ALLOCATION 1
90+
5291
// We don't support static allocation
5392
#define configSUPPORT_STATIC_ALLOCATION 0
5493

third_party/freertos-plus-tcp

Submodule freertos-plus-tcp updated 478 files

0 commit comments

Comments
 (0)