cc3200: Define our own FreeRTOS heap so it can go in a special segment.

This commit is contained in:
Damien George 2016-05-27 14:28:15 +01:00
parent 5c0fc73f33
commit 9b1c1262dc
2 changed files with 6 additions and 0 deletions

View File

@ -151,4 +151,7 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
version. */
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
/* We provide a definition of ucHeap so it can go in a special segment. */
#define configAPPLICATION_ALLOCATED_HEAP 1
#endif /* FREERTOS_CONFIG_H */

View File

@ -56,6 +56,9 @@
OsiTaskHandle mpTaskHandle;
#endif
// This is the FreeRTOS heap, defined here so we can put it in a special segment
uint8_t ucHeap[ configTOTAL_HEAP_SIZE ] __attribute__ ((section (".rtos_heap"))) __attribute__((aligned (8)));
/******************************************************************************
DEFINE PUBLIC FUNCTIONS
******************************************************************************/