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

Define default values of macros before first use #298

Merged
merged 1 commit into from
Apr 2, 2021
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
5 changes: 0 additions & 5 deletions include/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -896,11 +896,6 @@
#define configSUPPORT_DYNAMIC_ALLOCATION 1
#endif

#ifndef configSTACK_ALLOCATION_FROM_SEPARATE_HEAP
/* Defaults to 0 for backward compatibility. */
#define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0
#endif

#ifndef configSTACK_DEPTH_TYPE

/* Defaults to uint16_t for backward compatibility, but can be overridden
Expand Down
1 change: 0 additions & 1 deletion include/mpu_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@
#define PRIVILEGED_FUNCTION
#define PRIVILEGED_DATA
#define FREERTOS_SYSTEM_CALL
#define portUSING_MPU_WRAPPERS 0
alfred2g marked this conversation as resolved.
Show resolved Hide resolved

#endif /* portUSING_MPU_WRAPPERS */

Expand Down
9 changes: 9 additions & 0 deletions include/portable.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
#error "Invalid portBYTE_ALIGNMENT definition"
#endif

#ifndef portUSING_MPU_WRAPPERS
#define portUSING_MPU_WRAPPERS 0
#endif

#ifndef portNUM_CONFIGURABLE_REGIONS
#define portNUM_CONFIGURABLE_REGIONS 1
#endif
Expand All @@ -91,6 +95,11 @@
#define portARCH_NAME NULL
#endif

#ifndef configSTACK_ALLOCATION_FROM_SEPARATE_HEAP
/* Defaults to 0 for backward compatibility. */
#define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0
#endif

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
Expand Down