Lines Matching +full:execution +full:- +full:memory
2 * Copyright (c) 2013-2017 ARM Limited. All rights reserved.
4 * SPDX-License-Identifier: Apache-2.0
10 * www.apache.org/licenses/LICENSE-2.0
18 * ----------------------------------------------------------------------
23 * Project: CMSIS-RTOS2 API
28 * - osKernelGetInfo, osKernelGetState
31 * - osKernelGetTickCount, osKernelGetTickFreq
33 * - updated: osKernelGetTickCount, osDelayUntil
36 * - updated: osKernelLock, osKernelUnlock
37 * - added: osKernelRestoreLock
39 * - changed flags parameter and return type from int32_t to uint32_t
42 *---------------------------------------------------------------------------*/
85 osKernelError = -1, /* /< Error. */
86 osKernelReserved = 0x7FFFFFFFU /* /< Prevents enum down-size compiler optimization. */
96 osThreadError = -1, /* /< Error. */
97 osThreadReserved = 0x7FFFFFFF /* /< Prevents enum down-size compiler optimization. */
153 …osPriorityError = -1, /* /< System cannot determine priority or illegal priority. …
154 osPriorityReserved = 0x7FFFFFFF /* /< Prevents enum down-size compiler optimization. */
165 osTimerOnce = 0, /* /< One-shot timer. */
179 #define osFlagsErrorUnknown 0xFFFFFFFFU /* /< osError (-1). */
180 #define osFlagsErrorTimeout 0xFFFFFFFEU /* /< osErrorTimeout (-2). */
181 #define osFlagsErrorResource 0xFFFFFFFDU /* /< osErrorResource (-3). */
182 #define osFlagsErrorParameter 0xFFFFFFFCU /* /< osErrorParameter (-4). */
183 #define osFlagsErrorISR 0xFFFFFFFAU /* /< osErrorISR (-6). */
194 /* / Status code values returned by CMSIS-RTOS functions. */
197 …osError = -1, /* /< Unspecified RTOS error: run-time error but no other …
198 …osErrorTimeout = -2, /* /< Operation not completed within the timeout period. */
199 osErrorResource = -3, /* /< Resource not available. */
200 osErrorParameter = -4, /* /< Parameter error. */
201 …osErrorNoMemory = -5, /* /< System is out of memory: it was impossible to alloca…
202 …osErrorISR = -6, /* /< Not allowed in ISR context: the function cannot be c…
203 osStatusReserved = 0x7FFFFFFF /* /< Prevents enum down-size compiler optimization. */
222 /* / \details Memory Pool ID identifies the memory pool. */
240 void *cb_mem; /* /< memory for control block */
241 uint32_t cb_size; /* /< size of provided memory for control block */
242 void *stack_mem; /* /< memory for stack */
253 void *cb_mem; /* /< memory for control block */
254 uint32_t cb_size; /* /< size of provided memory for control block */
261 void *cb_mem; /* /< memory for control block */
262 uint32_t cb_size; /* /< size of provided memory for control block */
269 void *cb_mem; /* /< memory for control block */
270 uint32_t cb_size; /* /< size of provided memory for control block */
277 void *cb_mem; /* /< memory for control block */
278 uint32_t cb_size; /* /< size of provided memory for control block */
281 /* / Attributes structure for memory pool. */
283 const char *name; /* /< name of the memory pool */
285 void *cb_mem; /* /< memory for control block */
286 uint32_t cb_size; /* /< size of provided memory for control block */
287 void *mp_mem; /* /< memory for data storage */
288 uint32_t mp_size; /* /< size of provided memory for data storage */
295 void *cb_mem; /* /< memory for control block */
296 uint32_t cb_size; /* /< size of provided memory for control block */
297 void *mq_mem; /* /< memory for data storage */
298 uint32_t mq_size; /* /< size of provided memory for data storage */
305 /* / \return status code that indicates the execution status of the function. */
312 /* / \return status code that indicates the execution status of the function. */
320 /* / \return status code that indicates the execution status of the function. */
324 /* / \return previous lock state (1 - locked, 0 - not locked, error code if negative). */
328 /* / \return previous lock state (1 - locked, 0 - not locked, error code if negative). */
333 /* / \return new lock state (1 - locked, 0 - not locked, error code if negative). */
337 /* / \return time in ticks, for how long the system can sleep or power-down. */
341 /* / \param[in] sleep_ticks time in ticks for how long the system was in sleep or power-down …
353 /* / \return RTOS kernel current system timer count as 32-bit value. */
389 /* / Get available stack space of a thread based on stack watermark recording during execution. */
397 /* / \return status code that indicates the execution status of the function. */
406 /* / \return status code that indicates the execution status of the function. */
409 /* / Suspend execution of a thread. */
411 /* / \return status code that indicates the execution status of the function. */
414 /* / Resume execution of a thread. */
416 /* / \return status code that indicates the execution status of the function. */
421 /* / \return status code that indicates the execution status of the function. */
426 /* / \return status code that indicates the execution status of the function. */
429 /* / Terminate execution of current running thread. */
432 /* / Terminate execution of a thread. */
434 /* / \return status code that indicates the execution status of the function. */
468 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
477 /* / \return status code that indicates the execution status of the function. */
482 /* / \return status code that indicates the execution status of the function. */
490 /* / \param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodi…
504 /* / \return status code that indicates the execution status of the function. */
509 /* / \return status code that indicates the execution status of the function. */
519 /* / \return status code that indicates the execution status of the function. */
556 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
562 /* / \return status code that indicates the execution status of the function. */
580 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
581 /* / \return status code that indicates the execution status of the function. */
586 /* / \return status code that indicates the execution status of the function. */
596 /* / \return status code that indicates the execution status of the function. */
616 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
617 /* / \return status code that indicates the execution status of the function. */
622 /* / \return status code that indicates the execution status of the function. */
632 /* / \return status code that indicates the execution status of the function. */
636 /* ==== Memory Pool Management Functions ==== */
638 /* / Create and Initialize a Memory Pool object. */
639 /* / \param[in] block_count maximum number of memory blocks in memory pool. */
640 /* / \param[in] block_size memory block size in bytes. */
641 /* / \param[in] attr memory pool attributes; NULL: default values. */
642 /* / \return memory pool ID for reference by other functions or NULL in case of error. */
645 /* / Get name of a Memory Pool object. */
646 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
650 /* / Allocate a memory block from a Memory Pool. */
651 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
652 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
653 /* / \return address of the allocated memory block or NULL in case of no memory is available. */
656 /* / Return an allocated memory block back to a Memory Pool. */
657 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
658 …/ \param[in] block address of the allocated memory block to be returned to the memory …
659 /* / \return status code that indicates the execution status of the function. */
662 /* / Get maximum number of memory blocks in a Memory Pool. */
663 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
664 /* / \return maximum number of memory blocks. */
667 /* / Get memory block size in a Memory Pool. */
668 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
669 /* / \return memory block size in bytes. */
672 /* / Get number of memory blocks used in a Memory Pool. */
673 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
674 /* / \return number of memory blocks used. */
677 /* / Get number of memory blocks available in a Memory Pool. */
678 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
679 /* / \return number of memory blocks available. */
682 /* / Delete a Memory Pool object. */
683 /* / \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. */
684 /* / \return status code that indicates the execution status of the function. */
706 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
707 /* / \return status code that indicates the execution status of the function. */
714 /* / \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. */
715 /* / \return status code that indicates the execution status of the function. */
723 /* / Get maximum message size in a Memory Pool. */
740 /* / \return status code that indicates the execution status of the function. */
745 /* / \return status code that indicates the execution status of the function. */