Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump FreeRTOS+TCP submodule to 4.2.0 #29

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
hlef marked this conversation as resolved.
Show resolved Hide resolved
#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