Skip to content

Commit

Permalink
Move: ucHeap in it's individual section COMMON.ucHeap
Browse files Browse the repository at this point in the history
  • Loading branch information
turmary committed Jan 11, 2020
1 parent d09210d commit 8fd9282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/boards/SAMD21/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
#define configMAX_PRIORITIES ( 9 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 150 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 12 * 1024 ) )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 64 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 8 )
#define configUSE_TRACE_FACILITY 1
#define configUSE_16_BIT_TICKS 0
Expand All @@ -18,6 +18,7 @@
#define configUSE_COUNTING_SEMAPHORES 1
#define configUSE_QUEUE_SETS 1
#define configSUPPORT_DYNAMIC_ALLOCATION 1
// #define configSUPPORT_STATIC_ALLOCATION 1

/* Run time stats related definitions. */
//void vMainConfigureTimerForRunTimeStats( void );
Expand Down
2 changes: 1 addition & 1 deletion src/heap_4.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ task.h is included from an application file. */
heap - probably so it can be placed in a special segment or address. */
extern uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
#else
static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ] __attribute__ ((section("COMMON.ucHeap")));
#endif /* configAPPLICATION_ALLOCATED_HEAP */

/* Define the linked list structure. This is used to link free blocks in order
Expand Down

0 comments on commit 8fd9282

Please sign in to comment.