summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/simplelink/oslib/osi_freertos.c
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-03-02 14:11:02 +0100
committerdanicampora <danicampora@gmail.com>2015-03-11 16:59:29 +0100
commit26cbc91373cdfff43317da01e102617ed5885655 (patch)
tree21291ed917e4452d0712de1d270b1eb2f60a24ff /cc3200/simplelink/oslib/osi_freertos.c
parent02fda44a30d114dbcead18df44c3ec3aefec61cd (diff)
downloadmicropython-26cbc91373cdfff43317da01e102617ed5885655.tar.gz
micropython-26cbc91373cdfff43317da01e102617ed5885655.zip
cc3200: Place functions only used while booting in a special section.
Such functions are never used after MicroPython has started, and they remain in RAM wasting space. Now they are placed in a special section named "boot" which sits just before the heap, allowing us to extend the effective heap area up to the new boot section. Right now, this gives us back ~1K, but in the future, more functions might end up in there as well.
Diffstat (limited to 'cc3200/simplelink/oslib/osi_freertos.c')
-rw-r--r--cc3200/simplelink/oslib/osi_freertos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc3200/simplelink/oslib/osi_freertos.c b/cc3200/simplelink/oslib/osi_freertos.c
index 8ed75a1302..2f00ab2689 100644
--- a/cc3200/simplelink/oslib/osi_freertos.c
+++ b/cc3200/simplelink/oslib/osi_freertos.c
@@ -275,6 +275,7 @@ OsiReturnVal_e osi_LockObjCreate(OsiLockObj_t* pLockObj)
\note
\warning
*/
+__attribute__ ((section (".boot")))
OsiReturnVal_e osi_TaskCreate(P_OSI_TASK_ENTRY pEntry,const signed char * const pcName,
unsigned short usStackDepth, void *pvParameters,
unsigned long uxPriority,OsiTaskHandle* pTaskHandle)
@@ -449,6 +450,7 @@ void vSimpleLinkSpawnTask(void *pvParameters)
\note
\warning
*/
+__attribute__ ((section (".boot")))
OsiReturnVal_e VStartSimpleLinkSpawnTask(unsigned portBASE_TYPE uxPriority)
{
xSimpleLinkSpawnQueue = xQueueCreate( slQUEUE_SIZE, sizeof( tSimpleLinkSpawnMsg ) );
@@ -666,6 +668,7 @@ void osi_ExitCritical(void)
\note
\warning
*/
+__attribute__ ((section (".boot")))
void osi_start()
{
vTaskStartScheduler();