mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Style: Remove tabs and tab == 4 spaces (#120)
* Style: Remove tabls and tab == 4 spaces * Style: remove xx accidentally left * Style: revert uncrustify for untested portable directories * Style: revert more uncrustify files * Style: Revert more uncrustified files * Style: Revert some uncrutified files * Style: change more files * Style: remove t tab == 4 spaces * Style: remove tabs = spaces * Style: revert changed files * Style: redo the stuyles * Style: add uncrustify disable parsing for asm Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
This commit is contained in:
parent
86653e2a1f
commit
8c77117c32
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
|
@ -202,7 +201,7 @@
|
||||||
{
|
{
|
||||||
/* Are there any co-routines waiting to get moved to the ready list? These
|
/* Are there any co-routines waiting to get moved to the ready list? These
|
||||||
* are co-routines that have been readied by an ISR. The ISR cannot access
|
* are co-routines that have been readied by an ISR. The ISR cannot access
|
||||||
* the ready lists itself. */
|
* the ready lists itself. */
|
||||||
while( listLIST_IS_EMPTY( &xPendingReadyCoRoutineList ) == pdFALSE )
|
while( listLIST_IS_EMPTY( &xPendingReadyCoRoutineList ) == pdFALSE )
|
||||||
{
|
{
|
||||||
CRCB_t * pxUnblockedCRCB;
|
CRCB_t * pxUnblockedCRCB;
|
||||||
|
@ -306,7 +305,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* listGET_OWNER_OF_NEXT_ENTRY walks through the list, so the co-routines
|
/* listGET_OWNER_OF_NEXT_ENTRY walks through the list, so the co-routines
|
||||||
* of the same priority get an equal share of the processor time. */
|
* of the same priority get an equal share of the processor time. */
|
||||||
listGET_OWNER_OF_NEXT_ENTRY( pxCurrentCoRoutine, &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) );
|
listGET_OWNER_OF_NEXT_ENTRY( pxCurrentCoRoutine, &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) );
|
||||||
|
|
||||||
/* Call the co-routine. */
|
/* Call the co-routine. */
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Standard includes. */
|
/* Standard includes. */
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef INC_FREERTOS_H
|
#ifndef INC_FREERTOS_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STACK_MACROS_H
|
#ifndef STACK_MACROS_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CO_ROUTINE_H
|
#ifndef CO_ROUTINE_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEPRECATED_DEFINITIONS_H
|
#ifndef DEPRECATED_DEFINITIONS_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EVENT_GROUPS_H
|
#ifndef EVENT_GROUPS_H
|
||||||
|
@ -253,8 +252,8 @@
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
#define BIT_0 ( 1 << 0 )
|
#define BIT_0 ( 1 << 0 )
|
||||||
#define BIT_4 ( 1 << 4 )
|
#define BIT_4 ( 1 << 4 )
|
||||||
*
|
*
|
||||||
* void aFunction( EventGroupHandle_t xEventGroup )
|
* void aFunction( EventGroupHandle_t xEventGroup )
|
||||||
* {
|
* {
|
||||||
|
@ -264,11 +263,11 @@
|
||||||
* // Wait a maximum of 100ms for either bit 0 or bit 4 to be set within
|
* // Wait a maximum of 100ms for either bit 0 or bit 4 to be set within
|
||||||
* // the event group. Clear the bits before exiting.
|
* // the event group. Clear the bits before exiting.
|
||||||
* uxBits = xEventGroupWaitBits(
|
* uxBits = xEventGroupWaitBits(
|
||||||
* xEventGroup, // The event group being tested.
|
* xEventGroup, // The event group being tested.
|
||||||
* BIT_0 | BIT_4, // The bits within the event group to wait for.
|
* BIT_0 | BIT_4, // The bits within the event group to wait for.
|
||||||
* pdTRUE, // BIT_0 and BIT_4 should be cleared before returning.
|
* pdTRUE, // BIT_0 and BIT_4 should be cleared before returning.
|
||||||
* pdFALSE, // Don't wait for both bits, either bit will do.
|
* pdFALSE, // Don't wait for both bits, either bit will do.
|
||||||
* xTicksToWait ); // Wait a maximum of 100ms for either bit to be set.
|
* xTicksToWait ); // Wait a maximum of 100ms for either bit to be set.
|
||||||
*
|
*
|
||||||
* if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
* if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
||||||
* {
|
* {
|
||||||
|
@ -317,8 +316,8 @@
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
#define BIT_0 ( 1 << 0 )
|
#define BIT_0 ( 1 << 0 )
|
||||||
#define BIT_4 ( 1 << 4 )
|
#define BIT_4 ( 1 << 4 )
|
||||||
*
|
*
|
||||||
* void aFunction( EventGroupHandle_t xEventGroup )
|
* void aFunction( EventGroupHandle_t xEventGroup )
|
||||||
* {
|
* {
|
||||||
|
@ -326,7 +325,7 @@
|
||||||
*
|
*
|
||||||
* // Clear bit 0 and bit 4 in xEventGroup.
|
* // Clear bit 0 and bit 4 in xEventGroup.
|
||||||
* uxBits = xEventGroupClearBits(
|
* uxBits = xEventGroupClearBits(
|
||||||
* xEventGroup, // The event group being updated.
|
* xEventGroup, // The event group being updated.
|
||||||
* BIT_0 | BIT_4 );// The bits being cleared.
|
* BIT_0 | BIT_4 );// The bits being cleared.
|
||||||
*
|
*
|
||||||
* if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
* if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
||||||
|
@ -386,8 +385,8 @@
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
#define BIT_0 ( 1 << 0 )
|
#define BIT_0 ( 1 << 0 )
|
||||||
#define BIT_4 ( 1 << 4 )
|
#define BIT_4 ( 1 << 4 )
|
||||||
*
|
*
|
||||||
* // An event group which it is assumed has already been created by a call to
|
* // An event group which it is assumed has already been created by a call to
|
||||||
* // xEventGroupCreate().
|
* // xEventGroupCreate().
|
||||||
|
@ -397,7 +396,7 @@
|
||||||
* {
|
* {
|
||||||
* // Clear bit 0 and bit 4 in xEventGroup.
|
* // Clear bit 0 and bit 4 in xEventGroup.
|
||||||
* xResult = xEventGroupClearBitsFromISR(
|
* xResult = xEventGroupClearBitsFromISR(
|
||||||
* xEventGroup, // The event group being updated.
|
* xEventGroup, // The event group being updated.
|
||||||
* BIT_0 | BIT_4 ); // The bits being set.
|
* BIT_0 | BIT_4 ); // The bits being set.
|
||||||
*
|
*
|
||||||
* if( xResult == pdPASS )
|
* if( xResult == pdPASS )
|
||||||
|
@ -447,8 +446,8 @@
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
#define BIT_0 ( 1 << 0 )
|
#define BIT_0 ( 1 << 0 )
|
||||||
#define BIT_4 ( 1 << 4 )
|
#define BIT_4 ( 1 << 4 )
|
||||||
*
|
*
|
||||||
* void aFunction( EventGroupHandle_t xEventGroup )
|
* void aFunction( EventGroupHandle_t xEventGroup )
|
||||||
* {
|
* {
|
||||||
|
@ -456,7 +455,7 @@
|
||||||
*
|
*
|
||||||
* // Set bit 0 and bit 4 in xEventGroup.
|
* // Set bit 0 and bit 4 in xEventGroup.
|
||||||
* uxBits = xEventGroupSetBits(
|
* uxBits = xEventGroupSetBits(
|
||||||
* xEventGroup, // The event group being updated.
|
* xEventGroup, // The event group being updated.
|
||||||
* BIT_0 | BIT_4 );// The bits being set.
|
* BIT_0 | BIT_4 );// The bits being set.
|
||||||
*
|
*
|
||||||
* if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
* if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
||||||
|
@ -529,8 +528,8 @@
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
#define BIT_0 ( 1 << 0 )
|
#define BIT_0 ( 1 << 0 )
|
||||||
#define BIT_4 ( 1 << 4 )
|
#define BIT_4 ( 1 << 4 )
|
||||||
*
|
*
|
||||||
* // An event group which it is assumed has already been created by a call to
|
* // An event group which it is assumed has already been created by a call to
|
||||||
* // xEventGroupCreate().
|
* // xEventGroupCreate().
|
||||||
|
@ -545,7 +544,7 @@
|
||||||
*
|
*
|
||||||
* // Set bit 0 and bit 4 in xEventGroup.
|
* // Set bit 0 and bit 4 in xEventGroup.
|
||||||
* xResult = xEventGroupSetBitsFromISR(
|
* xResult = xEventGroupSetBitsFromISR(
|
||||||
* xEventGroup, // The event group being updated.
|
* xEventGroup, // The event group being updated.
|
||||||
* BIT_0 | BIT_4 // The bits being set.
|
* BIT_0 | BIT_4 // The bits being set.
|
||||||
* &xHigherPriorityTaskWoken );
|
* &xHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
|
@ -574,7 +573,7 @@
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
* event_groups.h
|
||||||
*<pre>
|
*<pre>
|
||||||
* EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
* EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
||||||
* const EventBits_t uxBitsToSet,
|
* const EventBits_t uxBitsToSet,
|
||||||
* const EventBits_t uxBitsToWaitFor,
|
* const EventBits_t uxBitsToWaitFor,
|
||||||
* TickType_t xTicksToWait );
|
* TickType_t xTicksToWait );
|
||||||
|
@ -619,9 +618,9 @@
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
* // Bits used by the three tasks.
|
* // Bits used by the three tasks.
|
||||||
#define TASK_0_BIT ( 1 << 0 )
|
#define TASK_0_BIT ( 1 << 0 )
|
||||||
#define TASK_1_BIT ( 1 << 1 )
|
#define TASK_1_BIT ( 1 << 1 )
|
||||||
#define TASK_2_BIT ( 1 << 2 )
|
#define TASK_2_BIT ( 1 << 2 )
|
||||||
*
|
*
|
||||||
#define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )
|
#define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )
|
||||||
*
|
*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPU_WRAPPERS_H
|
#ifndef MPU_WRAPPERS_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PROJDEFS_H
|
#ifndef PROJDEFS_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -215,7 +214,7 @@
|
||||||
*
|
*
|
||||||
* // Create a queue capable of containing 10 uint32_t values.
|
* // Create a queue capable of containing 10 uint32_t values.
|
||||||
* xQueue1 = xQueueCreate( QUEUE_LENGTH, // The number of items the queue can hold.
|
* xQueue1 = xQueueCreate( QUEUE_LENGTH, // The number of items the queue can hold.
|
||||||
* ITEM_SIZE // The size of each item in the queue
|
* ITEM_SIZE // The size of each item in the queue
|
||||||
* &( ucQueueStorage[ 0 ] ), // The buffer that will hold the items in the queue.
|
* &( ucQueueStorage[ 0 ] ), // The buffer that will hold the items in the queue.
|
||||||
* &xQueueBuffer ); // The buffer that will hold the queue structure.
|
* &xQueueBuffer ); // The buffer that will hold the queue structure.
|
||||||
*
|
*
|
||||||
|
@ -236,9 +235,9 @@
|
||||||
* queue. h
|
* queue. h
|
||||||
* <pre>
|
* <pre>
|
||||||
* BaseType_t xQueueSendToToFront(
|
* BaseType_t xQueueSendToToFront(
|
||||||
* QueueHandle_t xQueue,
|
* QueueHandle_t xQueue,
|
||||||
* const void *pvItemToQueue,
|
* const void *pvItemToQueue,
|
||||||
* TickType_t xTicksToWait
|
* TickType_t xTicksToWait
|
||||||
* );
|
* );
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -316,9 +315,9 @@
|
||||||
* queue. h
|
* queue. h
|
||||||
* <pre>
|
* <pre>
|
||||||
* BaseType_t xQueueSendToBack(
|
* BaseType_t xQueueSendToBack(
|
||||||
* QueueHandle_t xQueue,
|
* QueueHandle_t xQueue,
|
||||||
* const void *pvItemToQueue,
|
* const void *pvItemToQueue,
|
||||||
* TickType_t xTicksToWait
|
* TickType_t xTicksToWait
|
||||||
* );
|
* );
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -681,7 +680,7 @@
|
||||||
*
|
*
|
||||||
* @param xTicksToWait The maximum amount of time the task should block
|
* @param xTicksToWait The maximum amount of time the task should block
|
||||||
* waiting for an item to receive should the queue be empty at the time
|
* waiting for an item to receive should the queue be empty at the time
|
||||||
* of the call. The time is defined in tick periods so the constant
|
* of the call. The time is defined in tick periods so the constant
|
||||||
* portTICK_PERIOD_MS should be used to convert to real time if this is required.
|
* portTICK_PERIOD_MS should be used to convert to real time if this is required.
|
||||||
* xQueuePeek() will return immediately if xTicksToWait is 0 and the queue
|
* xQueuePeek() will return immediately if xTicksToWait is 0 and the queue
|
||||||
* is empty.
|
* is empty.
|
||||||
|
@ -808,7 +807,7 @@
|
||||||
*
|
*
|
||||||
* @param xTicksToWait The maximum amount of time the task should block
|
* @param xTicksToWait The maximum amount of time the task should block
|
||||||
* waiting for an item to receive should the queue be empty at the time
|
* waiting for an item to receive should the queue be empty at the time
|
||||||
* of the call. xQueueReceive() will return immediately if xTicksToWait
|
* of the call. xQueueReceive() will return immediately if xTicksToWait
|
||||||
* is zero and the queue is empty. The time is defined in tick periods so the
|
* is zero and the queue is empty. The time is defined in tick periods so the
|
||||||
* constant portTICK_PERIOD_MS should be used to convert to real time if this is
|
* constant portTICK_PERIOD_MS should be used to convert to real time if this is
|
||||||
* required.
|
* required.
|
||||||
|
@ -1227,10 +1226,10 @@
|
||||||
* queue. h
|
* queue. h
|
||||||
* <pre>
|
* <pre>
|
||||||
* BaseType_t xQueueGenericSendFromISR(
|
* BaseType_t xQueueGenericSendFromISR(
|
||||||
* QueueHandle_t xQueue,
|
* QueueHandle_t xQueue,
|
||||||
* const void *pvItemToQueue,
|
* const void *pvItemToQueue,
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken,
|
* BaseType_t *pxHigherPriorityTaskWoken,
|
||||||
* BaseType_t xCopyPosition
|
* BaseType_t xCopyPosition
|
||||||
* );
|
* );
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -1311,8 +1310,8 @@
|
||||||
* queue. h
|
* queue. h
|
||||||
* <pre>
|
* <pre>
|
||||||
* BaseType_t xQueueReceiveFromISR(
|
* BaseType_t xQueueReceiveFromISR(
|
||||||
* QueueHandle_t xQueue,
|
* QueueHandle_t xQueue,
|
||||||
* void *pvBuffer,
|
* void *pvBuffer,
|
||||||
* BaseType_t *pxTaskWoken
|
* BaseType_t *pxTaskWoken
|
||||||
* );
|
* );
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SEMAPHORE_H
|
#ifndef SEMAPHORE_H
|
||||||
|
@ -562,7 +561,7 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
\#define LONG_TIME 0xffff
|
\#define LONG_TIME 0xffff
|
||||||
\#define TICKS_TO_WAIT 10
|
\#define TICKS_TO_WAIT 10
|
||||||
* SemaphoreHandle_t xSemaphore = NULL;
|
* SemaphoreHandle_t xSemaphore = NULL;
|
||||||
*
|
*
|
||||||
* // Repetitive task.
|
* // Repetitive task.
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STACK_MACROS_H
|
#ifndef STACK_MACROS_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -493,10 +492,10 @@
|
||||||
* // Create an TaskParameters_t structure that defines the task to be created.
|
* // Create an TaskParameters_t structure that defines the task to be created.
|
||||||
* static const TaskParameters_t xCheckTaskParameters =
|
* static const TaskParameters_t xCheckTaskParameters =
|
||||||
* {
|
* {
|
||||||
* vATask, // pvTaskCode - the function that implements the task.
|
* vATask, // pvTaskCode - the function that implements the task.
|
||||||
* "ATask", // pcName - just a text name for the task to assist debugging.
|
* "ATask", // pcName - just a text name for the task to assist debugging.
|
||||||
* 100, // usStackDepth - the stack size DEFINED IN WORDS.
|
* 100, // usStackDepth - the stack size DEFINED IN WORDS.
|
||||||
* NULL, // pvParameters - passed into the task function as the function parameters.
|
* NULL, // pvParameters - passed into the task function as the function parameters.
|
||||||
* ( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
|
* ( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
|
||||||
* cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
|
* cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
|
||||||
*
|
*
|
||||||
|
@ -505,10 +504,10 @@
|
||||||
* // different memory alignment requirements - refer to the FreeRTOS documentation
|
* // different memory alignment requirements - refer to the FreeRTOS documentation
|
||||||
* // for full information.
|
* // for full information.
|
||||||
* {
|
* {
|
||||||
* // Base address Length Parameters
|
* // Base address Length Parameters
|
||||||
* { cReadWriteArray, 32, portMPU_REGION_READ_WRITE },
|
* { cReadWriteArray, 32, portMPU_REGION_READ_WRITE },
|
||||||
* { cReadOnlyArray, 32, portMPU_REGION_READ_ONLY },
|
* { cReadOnlyArray, 32, portMPU_REGION_READ_ONLY },
|
||||||
* { cPrivilegedOnlyAccessArray, 128, portMPU_REGION_PRIVILEGED_READ_WRITE }
|
* { cPrivilegedOnlyAccessArray, 128, portMPU_REGION_PRIVILEGED_READ_WRITE }
|
||||||
* }
|
* }
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
|
@ -580,10 +579,10 @@
|
||||||
* static PRIVILEGED_DATA StaticTask_t xTaskBuffer;
|
* static PRIVILEGED_DATA StaticTask_t xTaskBuffer;
|
||||||
* static const TaskParameters_t xCheckTaskParameters =
|
* static const TaskParameters_t xCheckTaskParameters =
|
||||||
* {
|
* {
|
||||||
* vATask, // pvTaskCode - the function that implements the task.
|
* vATask, // pvTaskCode - the function that implements the task.
|
||||||
* "ATask", // pcName - just a text name for the task to assist debugging.
|
* "ATask", // pcName - just a text name for the task to assist debugging.
|
||||||
* 100, // usStackDepth - the stack size DEFINED IN WORDS.
|
* 100, // usStackDepth - the stack size DEFINED IN WORDS.
|
||||||
* NULL, // pvParameters - passed into the task function as the function parameters.
|
* NULL, // pvParameters - passed into the task function as the function parameters.
|
||||||
* ( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
|
* ( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
|
||||||
* cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
|
* cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
|
||||||
*
|
*
|
||||||
|
@ -592,10 +591,10 @@
|
||||||
* // different memory alignment requirements - refer to the FreeRTOS documentation
|
* // different memory alignment requirements - refer to the FreeRTOS documentation
|
||||||
* // for full information.
|
* // for full information.
|
||||||
* {
|
* {
|
||||||
* // Base address Length Parameters
|
* // Base address Length Parameters
|
||||||
* { cReadWriteArray, 32, portMPU_REGION_READ_WRITE },
|
* { cReadWriteArray, 32, portMPU_REGION_READ_WRITE },
|
||||||
* { cReadOnlyArray, 32, portMPU_REGION_READ_ONLY },
|
* { cReadOnlyArray, 32, portMPU_REGION_READ_ONLY },
|
||||||
* { cPrivilegedOnlyAccessArray, 128, portMPU_REGION_PRIVILEGED_READ_WRITE }
|
* { cPrivilegedOnlyAccessArray, 128, portMPU_REGION_PRIVILEGED_READ_WRITE }
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* &xTaskBuffer; // Holds the task's data structure.
|
* &xTaskBuffer; // Holds the task's data structure.
|
||||||
|
@ -648,10 +647,10 @@
|
||||||
* // unused so set to zero.
|
* // unused so set to zero.
|
||||||
* static const MemoryRegion_t xAltRegions[ portNUM_CONFIGURABLE_REGIONS ] =
|
* static const MemoryRegion_t xAltRegions[ portNUM_CONFIGURABLE_REGIONS ] =
|
||||||
* {
|
* {
|
||||||
* // Base address Length Parameters
|
* // Base address Length Parameters
|
||||||
* { ucOneKByte, 1024, portMPU_REGION_READ_WRITE },
|
* { ucOneKByte, 1024, portMPU_REGION_READ_WRITE },
|
||||||
* { 0, 0, 0 },
|
* { 0 0, 0 },
|
||||||
* { 0, 0, 0 }
|
* { 0, 0, 0 }
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* void vATask( void *pvParameters )
|
* void vATask( void *pvParameters )
|
||||||
|
@ -1313,7 +1312,7 @@
|
||||||
* that were previously suspended by a call to vTaskSuspend().
|
* that were previously suspended by a call to vTaskSuspend().
|
||||||
*
|
*
|
||||||
* @return If resuming the scheduler caused a context switch then pdTRUE is
|
* @return If resuming the scheduler caused a context switch then pdTRUE is
|
||||||
* returned, otherwise pdFALSE is returned.
|
* returned, otherwise pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -136,7 +135,7 @@
|
||||||
*
|
*
|
||||||
* @param pxCallbackFunction The function to call when the timer expires.
|
* @param pxCallbackFunction The function to call when the timer expires.
|
||||||
* Callback functions must have the prototype defined by TimerCallbackFunction_t,
|
* Callback functions must have the prototype defined by TimerCallbackFunction_t,
|
||||||
* which is "void vCallbackFunction( TimerHandle_t xTimer );".
|
* which is "void vCallbackFunction( TimerHandle_t xTimer );".
|
||||||
*
|
*
|
||||||
* @return If the timer is successfully created then a handle to the newly
|
* @return If the timer is successfully created then a handle to the newly
|
||||||
* created timer is returned. If the timer cannot be created because there is
|
* created timer is returned. If the timer cannot be created because there is
|
||||||
|
@ -239,7 +238,7 @@
|
||||||
* UBaseType_t uxAutoReload,
|
* UBaseType_t uxAutoReload,
|
||||||
* void * pvTimerID,
|
* void * pvTimerID,
|
||||||
* TimerCallbackFunction_t pxCallbackFunction,
|
* TimerCallbackFunction_t pxCallbackFunction,
|
||||||
* StaticTimer_t *pxTimerBuffer );
|
* StaticTimer_t *pxTimerBuffer );
|
||||||
*
|
*
|
||||||
* Creates a new software timer instance, and returns a handle by which the
|
* Creates a new software timer instance, and returns a handle by which the
|
||||||
* created software timer can be referenced.
|
* created software timer can be referenced.
|
||||||
|
@ -548,9 +547,9 @@
|
||||||
#define xTimerStop( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
|
#define xTimerStop( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerChangePeriod( TimerHandle_t xTimer,
|
* BaseType_t xTimerChangePeriod( TimerHandle_t xTimer,
|
||||||
* TickType_t xNewPeriod,
|
* TickType_t xNewPeriod,
|
||||||
* TickType_t xTicksToWait );
|
* TickType_t xTicksToWait );
|
||||||
*
|
*
|
||||||
* Timer functionality is provided by a timer service/daemon task. Many of the
|
* Timer functionality is provided by a timer service/daemon task. Many of the
|
||||||
* public FreeRTOS timer API functions send commands to the timer service task
|
* public FreeRTOS timer API functions send commands to the timer service task
|
||||||
|
@ -791,7 +790,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerStartFromISR( TimerHandle_t xTimer,
|
* BaseType_t xTimerStartFromISR( TimerHandle_t xTimer,
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
* BaseType_t *pxHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
* A version of xTimerStart() that can be called from an interrupt service
|
* A version of xTimerStart() that can be called from an interrupt service
|
||||||
* routine.
|
* routine.
|
||||||
|
@ -877,7 +876,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerStopFromISR( TimerHandle_t xTimer,
|
* BaseType_t xTimerStopFromISR( TimerHandle_t xTimer,
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
* BaseType_t *pxHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
* A version of xTimerStop() that can be called from an interrupt service
|
* A version of xTimerStop() that can be called from an interrupt service
|
||||||
* routine.
|
* routine.
|
||||||
|
@ -940,8 +939,8 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerChangePeriodFromISR( TimerHandle_t xTimer,
|
* BaseType_t xTimerChangePeriodFromISR( TimerHandle_t xTimer,
|
||||||
* TickType_t xNewPeriod,
|
* TickType_t xNewPeriod,
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
* BaseType_t *pxHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
* A version of xTimerChangePeriod() that can be called from an interrupt
|
* A version of xTimerChangePeriod() that can be called from an interrupt
|
||||||
* service routine.
|
* service routine.
|
||||||
|
@ -1013,7 +1012,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerResetFromISR( TimerHandle_t xTimer,
|
* BaseType_t xTimerResetFromISR( TimerHandle_t xTimer,
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
* BaseType_t *pxHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
* A version of xTimerReset() that can be called from an interrupt service
|
* A version of xTimerReset() that can be called from an interrupt service
|
||||||
* routine.
|
* routine.
|
||||||
|
@ -1148,42 +1147,42 @@
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* @verbatim
|
* @verbatim
|
||||||
*
|
*
|
||||||
* // The callback function that will execute in the context of the daemon task.
|
* // The callback function that will execute in the context of the daemon task.
|
||||||
* // Note callback functions must all use this same prototype.
|
* // Note callback functions must all use this same prototype.
|
||||||
* void vProcessInterface( void *pvParameter1, uint32_t ulParameter2 )
|
* void vProcessInterface( void *pvParameter1, uint32_t ulParameter2 )
|
||||||
* {
|
* {
|
||||||
* BaseType_t xInterfaceToService;
|
* BaseType_t xInterfaceToService;
|
||||||
*
|
*
|
||||||
* // The interface that requires servicing is passed in the second
|
* // The interface that requires servicing is passed in the second
|
||||||
* // parameter. The first parameter is not used in this case.
|
* // parameter. The first parameter is not used in this case.
|
||||||
* xInterfaceToService = ( BaseType_t ) ulParameter2;
|
* xInterfaceToService = ( BaseType_t ) ulParameter2;
|
||||||
*
|
*
|
||||||
* // ...Perform the processing here...
|
* // ...Perform the processing here...
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* // An ISR that receives data packets from multiple interfaces
|
* // An ISR that receives data packets from multiple interfaces
|
||||||
* void vAnISR( void )
|
* void vAnISR( void )
|
||||||
* {
|
* {
|
||||||
* BaseType_t xInterfaceToService, xHigherPriorityTaskWoken;
|
* BaseType_t xInterfaceToService, xHigherPriorityTaskWoken;
|
||||||
*
|
*
|
||||||
* // Query the hardware to determine which interface needs processing.
|
* // Query the hardware to determine which interface needs processing.
|
||||||
* xInterfaceToService = prvCheckInterfaces();
|
* xInterfaceToService = prvCheckInterfaces();
|
||||||
*
|
*
|
||||||
* // The actual processing is to be deferred to a task. Request the
|
* // The actual processing is to be deferred to a task. Request the
|
||||||
* // vProcessInterface() callback function is executed, passing in the
|
* // vProcessInterface() callback function is executed, passing in the
|
||||||
* // number of the interface that needs processing. The interface to
|
* // number of the interface that needs processing. The interface to
|
||||||
* // service is passed in the second parameter. The first parameter is
|
* // service is passed in the second parameter. The first parameter is
|
||||||
* // not used in this case.
|
* // not used in this case.
|
||||||
* xHigherPriorityTaskWoken = pdFALSE;
|
* xHigherPriorityTaskWoken = pdFALSE;
|
||||||
* xTimerPendFunctionCallFromISR( vProcessInterface, NULL, ( uint32_t ) xInterfaceToService, &xHigherPriorityTaskWoken );
|
* xTimerPendFunctionCallFromISR( vProcessInterface, NULL, ( uint32_t ) xInterfaceToService, &xHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
* // If xHigherPriorityTaskWoken is now set to pdTRUE then a context
|
* // If xHigherPriorityTaskWoken is now set to pdTRUE then a context
|
||||||
* // switch should be requested. The macro used is port specific and will
|
* // switch should be requested. The macro used is port specific and will
|
||||||
* // be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() - refer to
|
* // be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() - refer to
|
||||||
* // the documentation page for the port being used.
|
* // the documentation page for the port being used.
|
||||||
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
*
|
*
|
||||||
* }
|
* }
|
||||||
* @endverbatim
|
* @endverbatim
|
||||||
*/
|
*/
|
||||||
BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend,
|
BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend,
|
||||||
|
|
1
list.c
1
list.c
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Standard includes. */
|
/* Standard includes. */
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
#ifndef PORTMACRO_H
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
#ifndef PORTMACRO_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -118,6 +117,7 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||||
* portSAVE_CONTEXT places the flags on the stack immediately after r0
|
* portSAVE_CONTEXT places the flags on the stack immediately after r0
|
||||||
* to ensure the interrupts get disabled as soon as possible, and so ensuring
|
* to ensure the interrupts get disabled as soon as possible, and so ensuring
|
||||||
* the stack use is minimal should a context switch interrupt occur. */
|
* the stack use is minimal should a context switch interrupt occur. */
|
||||||
|
|
||||||
*pxTopOfStack = ( StackType_t ) 0x00; /* R0 */
|
*pxTopOfStack = ( StackType_t ) 0x00; /* R0 */
|
||||||
pxTopOfStack--;
|
pxTopOfStack--;
|
||||||
*pxTopOfStack = portFLAGS_INT_ENABLED;
|
*pxTopOfStack = portFLAGS_INT_ENABLED;
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
#ifndef PORTMACRO_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
; * http://www.FreeRTOS.org
|
; * http://www.FreeRTOS.org
|
||||||
; * http://aws.amazon.com/freertos
|
; * http://aws.amazon.com/freertos
|
||||||
; *
|
; *
|
||||||
; * 1 tab == 4 spaces!
|
|
||||||
; */
|
; */
|
||||||
|
|
||||||
#include "porthardware.h"
|
#include "porthardware.h"
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -118,6 +117,7 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||||
* portSAVE_CONTEXT places the flags on the stack immediately after r0
|
* portSAVE_CONTEXT places the flags on the stack immediately after r0
|
||||||
* to ensure the interrupts get disabled as soon as possible, and so ensuring
|
* to ensure the interrupts get disabled as soon as possible, and so ensuring
|
||||||
* the stack use is minimal should a context switch interrupt occur. */
|
* the stack use is minimal should a context switch interrupt occur. */
|
||||||
|
|
||||||
*pxTopOfStack = ( StackType_t ) 0x00; /* R0 */
|
*pxTopOfStack = ( StackType_t ) 0x00; /* R0 */
|
||||||
pxTopOfStack--;
|
pxTopOfStack--;
|
||||||
*pxTopOfStack = portFLAGS_INT_ENABLED;
|
*pxTopOfStack = portFLAGS_INT_ENABLED;
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
#ifndef PORTMACRO_H
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined( __MW__ )
|
#if defined( __MW__ )
|
||||||
|
|
1
portable/ThirdParty/GCC/ARC_EM_HS/port.c
vendored
1
portable/ThirdParty/GCC/ARC_EM_HS/port.c
vendored
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
#ifndef PORTMACRO_H
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
* FOR A PARTICULAR PURPOSE. Full license text is available from the following
|
* FOR A PARTICULAR PURPOSE. Full license text is available from the following
|
||||||
* link: http://www.freertos.org/a00114.html
|
* link: http://www.freertos.org/a00114.html
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*
|
*
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
* *
|
* *
|
||||||
|
@ -60,7 +59,6 @@
|
||||||
* engineered and independently SIL3 certified version for use in safety and
|
* engineered and independently SIL3 certified version for use in safety and
|
||||||
* mission critical applications that require provable dependability.
|
* mission critical applications that require provable dependability.
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
#ifndef PORTMACRO_H
|
||||||
|
|
1
portable/ThirdParty/GCC/Xtensa_ESP32/port.c
vendored
1
portable/ThirdParty/GCC/Xtensa_ESP32/port.c
vendored
|
@ -64,7 +64,6 @@
|
||||||
* engineered and independently SIL3 certified version for use in safety and
|
* engineered and independently SIL3 certified version for use in safety and
|
||||||
* mission critical applications that require provable dependability.
|
* mission critical applications that require provable dependability.
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
1
queue.c
1
queue.c
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Standard includes. */
|
/* Standard includes. */
|
||||||
|
|
1
tasks.c
1
tasks.c
|
@ -22,7 +22,6 @@
|
||||||
* http://www.FreeRTOS.org
|
* http://www.FreeRTOS.org
|
||||||
* http://aws.amazon.com/freertos
|
* http://aws.amazon.com/freertos
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Standard includes. */
|
/* Standard includes. */
|
||||||
|
|
Loading…
Reference in a new issue