|
@@ -903,7 +903,7 @@ osStatus osSemaphoreDelete (osSemaphoreId semaphore_id)
|
|
|
|
|
|
|
|
#if (defined (osFeature_Pool) && (osFeature_Pool != 0))
|
|
#if (defined (osFeature_Pool) && (osFeature_Pool != 0))
|
|
|
|
|
|
|
|
-//TODO
|
|
|
|
|
|
|
+
|
|
|
//This is a primitive and inefficient wrapper around the existing FreeRTOS memory management.
|
|
//This is a primitive and inefficient wrapper around the existing FreeRTOS memory management.
|
|
|
//A better implementation will have to modify heap_x.c!
|
|
//A better implementation will have to modify heap_x.c!
|
|
|
|
|
|
|
@@ -1239,7 +1239,7 @@ osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id)
|
|
|
/* Create a mail pool */
|
|
/* Create a mail pool */
|
|
|
(*(queue_def->cb))->pool = osPoolCreate(&pool_def);
|
|
(*(queue_def->cb))->pool = osPoolCreate(&pool_def);
|
|
|
if ((*(queue_def->cb))->pool == NULL) {
|
|
if ((*(queue_def->cb))->pool == NULL) {
|
|
|
- //TODO: Delete queue. How to do it in FreeRTOS?
|
|
|
|
|
|
|
+
|
|
|
vPortFree(*(queue_def->cb));
|
|
vPortFree(*(queue_def->cb));
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|