|
|
@@ -267,11 +267,11 @@
|
|
|
#define configASSERT_DEFINED 1
|
|
|
#endif
|
|
|
|
|
|
-/* configPRECONDITION should be resolve to configASSERT.
|
|
|
+/* configPRECONDITION should be defined as configASSERT.
|
|
|
* The CBMC proofs need a way to track assumptions and assertions.
|
|
|
- * A configPRECONDITION statement should express an implicit invariant or assumption made.
|
|
|
- * A configASSERT statement should express an invariant that must hold explicit before calling
|
|
|
- * the code. */
|
|
|
+ * A configPRECONDITION statement should express an implicit invariant or
|
|
|
+ * assumption made. A configASSERT statement should express an invariant that must
|
|
|
+ * hold explicit before calling the code. */
|
|
|
#ifndef configPRECONDITION
|
|
|
#define configPRECONDITION( X ) configASSERT( X )
|
|
|
#define configPRECONDITION_DEFINED 0
|
|
|
@@ -916,6 +916,11 @@
|
|
|
#define configSUPPORT_DYNAMIC_ALLOCATION 1
|
|
|
#endif
|
|
|
|
|
|
+#ifndef configSTACK_ALLOCATION_FROM_SEPARATE_HEAP
|
|
|
+ /* Defaults to 0 for backward compatibility. */
|
|
|
+ #define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0
|
|
|
+#endif
|
|
|
+
|
|
|
#ifndef configSTACK_DEPTH_TYPE
|
|
|
|
|
|
/* Defaults to uint16_t for backward compatibility, but can be overridden
|
|
|
@@ -999,7 +1004,7 @@
|
|
|
|
|
|
#ifndef configMIN
|
|
|
|
|
|
-/* The application writer has not provided their own MAX macro, so define
|
|
|
+/* The application writer has not provided their own MIN macro, so define
|
|
|
* the following generic implementation. */
|
|
|
#define configMIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
|
|
|
#endif
|
|
|
@@ -1024,6 +1029,7 @@
|
|
|
#define pcTimerGetTimerName pcTimerGetName
|
|
|
#define pcQueueGetQueueName pcQueueGetName
|
|
|
#define vTaskGetTaskInfo vTaskGetInfo
|
|
|
+ #define xTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter
|
|
|
|
|
|
/* Backward compatibility within the scheduler code only - these definitions
|
|
|
* are not really required but are included for completeness. */
|
|
|
@@ -1130,7 +1136,7 @@
|
|
|
* data hiding policy, so the real structures used by FreeRTOS to maintain the
|
|
|
* state of tasks, queues, semaphores, etc. are not accessible to the application
|
|
|
* code. However, if the application writer wants to statically allocate such
|
|
|
- * an object then the size of the object needs to be know. Dummy structures
|
|
|
+ * an object then the size of the object needs to be known. Dummy structures
|
|
|
* that are guaranteed to have the same size and alignment requirements of the
|
|
|
* real objects are used for this purpose. The dummy list and list item
|
|
|
* structures below are used for inclusion in such a dummy structure.
|
|
|
@@ -1179,7 +1185,7 @@ typedef struct xSTATIC_LIST
|
|
|
* strict data hiding policy. This means the Task structure used internally by
|
|
|
* FreeRTOS is not accessible to application code. However, if the application
|
|
|
* writer wants to statically allocate the memory required to create a task then
|
|
|
- * the size of the task object needs to be know. The StaticTask_t structure
|
|
|
+ * the size of the task object needs to be known. The StaticTask_t structure
|
|
|
* below is provided for this purpose. Its sizes and alignment requirements are
|
|
|
* guaranteed to match those of the genuine structure, no matter which
|
|
|
* architecture is being used, and no matter how the values in FreeRTOSConfig.h
|
|
|
@@ -1246,7 +1252,7 @@ typedef struct xSTATIC_TCB
|
|
|
* strict data hiding policy. This means the Queue structure used internally by
|
|
|
* FreeRTOS is not accessible to application code. However, if the application
|
|
|
* writer wants to statically allocate the memory required to create a queue
|
|
|
- * then the size of the queue object needs to be know. The StaticQueue_t
|
|
|
+ * then the size of the queue object needs to be known. The StaticQueue_t
|
|
|
* structure below is provided for this purpose. Its sizes and alignment
|
|
|
* requirements are guaranteed to match those of the genuine structure, no
|
|
|
* matter which architecture is being used, and no matter how the values in
|
|
|
@@ -1319,7 +1325,7 @@ typedef struct xSTATIC_EVENT_GROUP
|
|
|
* strict data hiding policy. This means the software timer structure used
|
|
|
* internally by FreeRTOS is not accessible to application code. However, if
|
|
|
* the application writer wants to statically allocate the memory required to
|
|
|
- * create a software timer then the size of the queue object needs to be know.
|
|
|
+ * create a software timer then the size of the queue object needs to be known.
|
|
|
* The StaticTimer_t structure below is provided for this purpose. Its sizes
|
|
|
* and alignment requirements are guaranteed to match those of the genuine
|
|
|
* structure, no matter which architecture is being used, and no matter how the
|
|
|
@@ -1347,12 +1353,12 @@ typedef struct xSTATIC_TIMER
|
|
|
* internally by FreeRTOS is not accessible to application code. However, if
|
|
|
* the application writer wants to statically allocate the memory required to
|
|
|
* create a stream buffer then the size of the stream buffer object needs to be
|
|
|
- * know. The StaticStreamBuffer_t structure below is provided for this purpose.
|
|
|
- * Its size and alignment requirements are guaranteed to match those of the
|
|
|
- * genuine structure, no matter which architecture is being used, and no matter
|
|
|
- * how the values in FreeRTOSConfig.h are set. Its contents are somewhat
|
|
|
- * obfuscated in the hope users will recognise that it would be unwise to make
|
|
|
- * direct use of the structure members.
|
|
|
+ * known. The StaticStreamBuffer_t structure below is provided for this
|
|
|
+ * purpose. Its size and alignment requirements are guaranteed to match those
|
|
|
+ * of the genuine structure, no matter which architecture is being used, and
|
|
|
+ * no matter how the values in FreeRTOSConfig.h are set. Its contents are
|
|
|
+ * somewhat obfuscated in the hope users will recognise that it would be unwise
|
|
|
+ * to make direct use of the structure members.
|
|
|
*/
|
|
|
typedef struct xSTATIC_STREAM_BUFFER
|
|
|
{
|