Skip to content

Commit

Permalink
Merge pull request #29 from CHERIoT-Platform/hlefeuvre/update-freerto…
Browse files Browse the repository at this point in the history
…s-submodule

Bump FreeRTOS+TCP submodule to 4.2.0
  • Loading branch information
hlef authored Jun 28, 2024
2 parents f417103 + c1fe088 commit 8aefa6e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions lib/tcpip/FreeRTOSIPConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,42 @@
// SPDX-License-Identifier: MIT

#pragma once

#ifndef FREERTOS_CONFIG_H
/**
* This macro would usually be defined in FreeRTOSConfig.h, which we do not
* implement here because we do not use the FreeRTOS core. We define it here
* because FreeRTOS+TCP refuses to compile without.
*/
#define FREERTOS_CONFIG_H
#endif

/**
* FreeRTOS+TCP errno codes. See the header documentation.
*/
#include <FreeRTOS_errno.h>

/**
* `INCLUDE_*` macros have no effect here since we do not use the FreeRTOS
* core, however FreeRTOS+TCP refuses to compile without defining these.
*/
#define INCLUDE_vTaskDelay 1
#define INCLUDE_xTaskGetCurrentTaskHandle 1

/**
* Scheduling-related settings have no impact since we do not use the FreeRTOS
* core, however FreeRTOS+TCP refuses to compile without defining these.
*/
#define ipconfigIP_TASK_PRIORITY 0
#define configMAX_PRIORITIES 1
#define configMINIMAL_STACK_SIZE 128

/**
* Enable counting semaphore functionality in the build, as this is necessary
* to build FreeRTOS+TCP.
*/
#define configUSE_COUNTING_SEMAPHORES 1

/**
* Macro defined to flag that this file has been included.
*/
Expand Down Expand Up @@ -49,6 +85,9 @@
#define xPortGetMinimumEverFreeHeapSize() 0
#define xPortGetFreeHeapSize() 0

// Use dynamic allocation
#define configSUPPORT_DYNAMIC_ALLOCATION 1

// We don't support static allocation
#define configSUPPORT_STATIC_ALLOCATION 0

Expand Down
2 changes: 1 addition & 1 deletion third_party/freertos-plus-tcp
Submodule freertos-plus-tcp updated 478 files

0 comments on commit 8aefa6e

Please sign in to comment.