Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b196df

Browse filesBrowse files
authored
fix: cast linker value for configTOTAL_HEAP_SIZE
Fixes #42
1 parent d624467 commit 8b196df
Copy full SHA for 8b196df

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/FreeRTOSConfig_Default.h

Copy file name to clipboardExpand all lines: src/FreeRTOSConfig_Default.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extern char _Min_Stack_Size; /* Defined in the linker script */
9999
#define configMINIMAL_STACK_SIZE ((uint16_t)((uint32_t)&_Min_Stack_Size/8))
100100
#endif
101101
#ifndef configTOTAL_HEAP_SIZE
102-
#define configTOTAL_HEAP_SIZE ((size_t)(&_estack - _Min_Stack_Size - &_end))
102+
#define configTOTAL_HEAP_SIZE ((size_t)((uint32_t)&_estack - (uint32_t)&_Min_Stack_Size - (uint32_t)&_end))
103103
#endif
104104
#ifndef configISR_STACK_SIZE_WORDS
105105
#define configISR_STACK_SIZE_WORDS ((uint32_t)&_Min_Stack_Size/4)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.