mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Map portTICK_RATE_MS to portTICK_PERIOD_MS.
This commit is contained in:
parent
a56d4b998c
commit
1aaa80fba6
|
@ -699,6 +699,7 @@ is included as it is used by the port layer. */
|
||||||
#define xTimerHandle TimerHandle_t
|
#define xTimerHandle TimerHandle_t
|
||||||
#define xCoRoutineHandle CoRoutineHandle_t
|
#define xCoRoutineHandle CoRoutineHandle_t
|
||||||
#define pdTASK_HOOK_CODE TaskHookFunction_t
|
#define pdTASK_HOOK_CODE TaskHookFunction_t
|
||||||
|
#define portTICK_RATE_MS portTICK_PERIOD_MS
|
||||||
|
|
||||||
/* Backward compatibility within the scheduler code only - these definitions
|
/* Backward compatibility within the scheduler code only - these definitions
|
||||||
are not really required but are included for completeness. */
|
are not really required but are included for completeness. */
|
||||||
|
|
|
@ -295,7 +295,7 @@ void vCoRoutineSchedule( void );
|
||||||
*
|
*
|
||||||
* @param xTickToDelay The number of ticks that the co-routine should delay
|
* @param xTickToDelay The number of ticks that the co-routine should delay
|
||||||
* for. The actual amount of time this equates to is defined by
|
* for. The actual amount of time this equates to is defined by
|
||||||
* configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant portTICK_RATE_MS
|
* configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant portTICK_PERIOD_MS
|
||||||
* can be used to convert ticks to milliseconds.
|
* can be used to convert ticks to milliseconds.
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
|
@ -306,7 +306,7 @@ void vCoRoutineSchedule( void );
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
||||||
// This may not be necessary for const variables.
|
// This may not be necessary for const variables.
|
||||||
// We are to delay for 200ms.
|
// We are to delay for 200ms.
|
||||||
static const xTickType xDelayTime = 200 / portTICK_RATE_MS;
|
static const xTickType xDelayTime = 200 / portTICK_PERIOD_MS;
|
||||||
|
|
||||||
// Must start every co-routine with a call to crSTART();
|
// Must start every co-routine with a call to crSTART();
|
||||||
crSTART( xHandle );
|
crSTART( xHandle );
|
||||||
|
@ -372,7 +372,7 @@ void vCoRoutineSchedule( void );
|
||||||
* to wait for space to become available on the queue, should space not be
|
* to wait for space to become available on the queue, should space not be
|
||||||
* available immediately. The actual amount of time this equates to is defined
|
* available immediately. The actual amount of time this equates to is defined
|
||||||
* by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant
|
* by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant
|
||||||
* portTICK_RATE_MS can be used to convert ticks to milliseconds (see example
|
* portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see example
|
||||||
* below).
|
* below).
|
||||||
*
|
*
|
||||||
* @param pxResult The variable pointed to by pxResult will be set to pdPASS if
|
* @param pxResult The variable pointed to by pxResult will be set to pdPASS if
|
||||||
|
@ -470,7 +470,7 @@ void vCoRoutineSchedule( void );
|
||||||
* to wait for data to become available from the queue, should data not be
|
* to wait for data to become available from the queue, should data not be
|
||||||
* available immediately. The actual amount of time this equates to is defined
|
* available immediately. The actual amount of time this equates to is defined
|
||||||
* by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant
|
* by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant
|
||||||
* portTICK_RATE_MS can be used to convert ticks to milliseconds (see the
|
* portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see the
|
||||||
* crQUEUE_SEND example).
|
* crQUEUE_SEND example).
|
||||||
*
|
*
|
||||||
* @param pxResult The variable pointed to by pxResult will be set to pdPASS if
|
* @param pxResult The variable pointed to by pxResult will be set to pdPASS if
|
||||||
|
|
|
@ -230,7 +230,7 @@ EventGroupHandle_t xEventGroupCreate( void ) PRIVILEGED_FUNCTION;
|
||||||
void aFunction( EventGroupHandle_t xEventGroup )
|
void aFunction( EventGroupHandle_t xEventGroup )
|
||||||
{
|
{
|
||||||
EventBits_t uxBits;
|
EventBits_t uxBits;
|
||||||
const TickType_t xTicksToWait = 100 / portTICK_RATE_MS;
|
const TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
|
||||||
|
|
||||||
// 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.
|
||||||
|
@ -545,7 +545,7 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_
|
||||||
void vTask0( void *pvParameters )
|
void vTask0( void *pvParameters )
|
||||||
{
|
{
|
||||||
EventBits_t uxReturn;
|
EventBits_t uxReturn;
|
||||||
TickType_t xTicksToWait = 100 / portTICK_RATE_MS;
|
TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
|
||||||
|
|
||||||
for( ;; )
|
for( ;; )
|
||||||
{
|
{
|
||||||
|
|
|
@ -196,7 +196,7 @@ typedef void * QueueSetMemberHandle_t;
|
||||||
* waiting for space to become available on the queue, should it already
|
* waiting for space to become available on the queue, should it already
|
||||||
* be full. The call will return immediately if this is set to 0 and the
|
* be full. The call will return immediately if this is set to 0 and the
|
||||||
* queue is full. The time is defined in tick periods so the constant
|
* queue is full. The time is defined in tick periods so the constant
|
||||||
* portTICK_RATE_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.
|
||||||
*
|
*
|
||||||
* @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
|
* @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
|
||||||
*
|
*
|
||||||
|
@ -278,7 +278,7 @@ typedef void * QueueSetMemberHandle_t;
|
||||||
* waiting for space to become available on the queue, should it already
|
* waiting for space to become available on the queue, should it already
|
||||||
* be full. The call will return immediately if this is set to 0 and the queue
|
* be full. The call will return immediately if this is set to 0 and the queue
|
||||||
* is full. The time is defined in tick periods so the constant
|
* is full. The time is defined in tick periods so the constant
|
||||||
* portTICK_RATE_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.
|
||||||
*
|
*
|
||||||
* @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
|
* @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
|
||||||
*
|
*
|
||||||
|
@ -362,7 +362,7 @@ typedef void * QueueSetMemberHandle_t;
|
||||||
* waiting for space to become available on the queue, should it already
|
* waiting for space to become available on the queue, should it already
|
||||||
* be full. The call will return immediately if this is set to 0 and the
|
* be full. The call will return immediately if this is set to 0 and the
|
||||||
* queue is full. The time is defined in tick periods so the constant
|
* queue is full. The time is defined in tick periods so the constant
|
||||||
* portTICK_RATE_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.
|
||||||
*
|
*
|
||||||
* @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
|
* @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
|
||||||
*
|
*
|
||||||
|
@ -529,7 +529,7 @@ typedef void * QueueSetMemberHandle_t;
|
||||||
* waiting for space to become available on the queue, should it already
|
* waiting for space to become available on the queue, should it already
|
||||||
* be full. The call will return immediately if this is set to 0 and the
|
* be full. The call will return immediately if this is set to 0 and the
|
||||||
* queue is full. The time is defined in tick periods so the constant
|
* queue is full. The time is defined in tick periods so the constant
|
||||||
* portTICK_RATE_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.
|
||||||
*
|
*
|
||||||
* @param xCopyPosition Can take the value queueSEND_TO_BACK to place the
|
* @param xCopyPosition Can take the value queueSEND_TO_BACK to place the
|
||||||
* item at the back of the queue, or queueSEND_TO_FRONT to place the item
|
* item at the back of the queue, or queueSEND_TO_FRONT to place the item
|
||||||
|
@ -619,7 +619,7 @@ BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQ
|
||||||
* @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_RATE_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.
|
||||||
*
|
*
|
||||||
|
@ -746,7 +746,7 @@ BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) PRIV
|
||||||
* 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_RATE_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.
|
||||||
*
|
*
|
||||||
* @return pdTRUE if an item was successfully received from the queue,
|
* @return pdTRUE if an item was successfully received from the queue,
|
||||||
|
@ -839,7 +839,7 @@ BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) PRIV
|
||||||
* @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_RATE_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.
|
||||||
* xQueueGenericReceive() will return immediately if the queue is empty and
|
* xQueueGenericReceive() will return immediately if the queue is empty and
|
||||||
* xTicksToWait is 0.
|
* xTicksToWait is 0.
|
||||||
*
|
*
|
||||||
|
|
|
@ -195,7 +195,7 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
||||||
* the semaphore was created.
|
* the semaphore was created.
|
||||||
*
|
*
|
||||||
* @param xBlockTime The time in ticks to wait for the semaphore to become
|
* @param xBlockTime The time in ticks to wait for the semaphore to become
|
||||||
* available. The macro portTICK_RATE_MS can be used to convert this to a
|
* available. The macro portTICK_PERIOD_MS can be used to convert this to a
|
||||||
* real time. A block time of zero can be used to poll the semaphore. A block
|
* real time. A block time of zero can be used to poll the semaphore. A block
|
||||||
* time of portMAX_DELAY can be used to block indefinitely (provided
|
* time of portMAX_DELAY can be used to block indefinitely (provided
|
||||||
* INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h).
|
* INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h).
|
||||||
|
@ -274,7 +274,7 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
||||||
* handle returned by xSemaphoreCreateRecursiveMutex();
|
* handle returned by xSemaphoreCreateRecursiveMutex();
|
||||||
*
|
*
|
||||||
* @param xBlockTime The time in ticks to wait for the semaphore to become
|
* @param xBlockTime The time in ticks to wait for the semaphore to become
|
||||||
* available. The macro portTICK_RATE_MS can be used to convert this to a
|
* available. The macro portTICK_PERIOD_MS can be used to convert this to a
|
||||||
* real time. A block time of zero can be used to poll the semaphore. If
|
* real time. A block time of zero can be used to poll the semaphore. If
|
||||||
* the task already owns the semaphore then xSemaphoreTakeRecursive() will
|
* the task already owns the semaphore then xSemaphoreTakeRecursive() will
|
||||||
* return immediately no matter what the value of xBlockTime.
|
* return immediately no matter what the value of xBlockTime.
|
||||||
|
|
|
@ -494,7 +494,7 @@ void vTaskDelete( TaskHandle_t xTaskToDelete ) PRIVILEGED_FUNCTION;
|
||||||
*
|
*
|
||||||
* Delay a task for a given number of ticks. The actual time that the
|
* Delay a task for a given number of ticks. The actual time that the
|
||||||
* task remains blocked depends on the tick rate. The constant
|
* task remains blocked depends on the tick rate. The constant
|
||||||
* portTICK_RATE_MS can be used to calculate real time from the tick
|
* portTICK_PERIOD_MS can be used to calculate real time from the tick
|
||||||
* rate - with the resolution of one tick period.
|
* rate - with the resolution of one tick period.
|
||||||
*
|
*
|
||||||
* INCLUDE_vTaskDelay must be defined as 1 for this function to be available.
|
* INCLUDE_vTaskDelay must be defined as 1 for this function to be available.
|
||||||
|
@ -521,7 +521,7 @@ void vTaskDelete( TaskHandle_t xTaskToDelete ) PRIVILEGED_FUNCTION;
|
||||||
void vTaskFunction( void * pvParameters )
|
void vTaskFunction( void * pvParameters )
|
||||||
{
|
{
|
||||||
// Block for 500ms.
|
// Block for 500ms.
|
||||||
const TickType_t xDelay = 500 / portTICK_RATE_MS;
|
const TickType_t xDelay = 500 / portTICK_PERIOD_MS;
|
||||||
|
|
||||||
for( ;; )
|
for( ;; )
|
||||||
{
|
{
|
||||||
|
@ -558,7 +558,7 @@ void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION;
|
||||||
* is called, vTaskDelayUntil () specifies the absolute (exact) time at which it wishes to
|
* is called, vTaskDelayUntil () specifies the absolute (exact) time at which it wishes to
|
||||||
* unblock.
|
* unblock.
|
||||||
*
|
*
|
||||||
* The constant portTICK_RATE_MS can be used to calculate real time from the tick
|
* The constant portTICK_PERIOD_MS can be used to calculate real time from the tick
|
||||||
* rate - with the resolution of one tick period.
|
* rate - with the resolution of one tick period.
|
||||||
*
|
*
|
||||||
* @param pxPreviousWakeTime Pointer to a variable that holds the time at which the
|
* @param pxPreviousWakeTime Pointer to a variable that holds the time at which the
|
||||||
|
@ -1415,7 +1415,7 @@ BaseType_t xTaskIncrementTick( void ) PRIVILEGED_FUNCTION;
|
||||||
*
|
*
|
||||||
* @param xTicksToWait The maximum amount of time that the task should wait
|
* @param xTicksToWait The maximum amount of time that the task should wait
|
||||||
* for the event to occur. This is specified in kernel ticks,the constant
|
* for the event to occur. This is specified in kernel ticks,the constant
|
||||||
* portTICK_RATE_MS can be used to convert kernel ticks into a real time
|
* portTICK_PERIOD_MS can be used to convert kernel ticks into a real time
|
||||||
* period.
|
* period.
|
||||||
*/
|
*/
|
||||||
void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
|
@ -133,11 +133,11 @@ typedef void (*PendedFunction_t)( void *, uint32_t );
|
||||||
* by its handle, and never by its name.
|
* by its handle, and never by its name.
|
||||||
*
|
*
|
||||||
* @param xTimerPeriodInTicks The timer period. The time is defined in tick
|
* @param xTimerPeriodInTicks The timer period. The time is defined in tick
|
||||||
* periods so the constant portTICK_RATE_MS can be used to convert a time that
|
* periods so the constant portTICK_PERIOD_MS can be used to convert a time that
|
||||||
* has been specified in milliseconds. For example, if the timer must expire
|
* has been specified in milliseconds. For example, if the timer must expire
|
||||||
* after 100 ticks, then xTimerPeriodInTicks should be set to 100.
|
* after 100 ticks, then xTimerPeriodInTicks should be set to 100.
|
||||||
* Alternatively, if the timer must expire after 500ms, then xPeriod can be set
|
* Alternatively, if the timer must expire after 500ms, then xPeriod can be set
|
||||||
* to ( 500 / portTICK_RATE_MS ) provided configTICK_RATE_HZ is less than or
|
* to ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than or
|
||||||
* equal to 1000.
|
* equal to 1000.
|
||||||
*
|
*
|
||||||
* @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will
|
* @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will
|
||||||
|
@ -431,11 +431,11 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void );
|
||||||
* @param xTimer The handle of the timer that is having its period changed.
|
* @param xTimer The handle of the timer that is having its period changed.
|
||||||
*
|
*
|
||||||
* @param xNewPeriod The new period for xTimer. Timer periods are specified in
|
* @param xNewPeriod The new period for xTimer. Timer periods are specified in
|
||||||
* tick periods, so the constant portTICK_RATE_MS can be used to convert a time
|
* tick periods, so the constant portTICK_PERIOD_MS can be used to convert a time
|
||||||
* that has been specified in milliseconds. For example, if the timer must
|
* that has been specified in milliseconds. For example, if the timer must
|
||||||
* expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively,
|
* expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively,
|
||||||
* if the timer must expire after 500ms, then xNewPeriod can be set to
|
* if the timer must expire after 500ms, then xNewPeriod can be set to
|
||||||
* ( 500 / portTICK_RATE_MS ) provided configTICK_RATE_HZ is less than
|
* ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than
|
||||||
* or equal to 1000.
|
* or equal to 1000.
|
||||||
*
|
*
|
||||||
* @param xBlockTime Specifies the time, in ticks, that the calling task should
|
* @param xBlockTime Specifies the time, in ticks, that the calling task should
|
||||||
|
@ -472,7 +472,7 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void );
|
||||||
* // cause the timer to start. Block for a maximum of 100 ticks if the
|
* // cause the timer to start. Block for a maximum of 100 ticks if the
|
||||||
* // change period command cannot immediately be sent to the timer
|
* // change period command cannot immediately be sent to the timer
|
||||||
* // command queue.
|
* // command queue.
|
||||||
* if( xTimerChangePeriod( xTimer, 500 / portTICK_RATE_MS, 100 ) == pdPASS )
|
* if( xTimerChangePeriod( xTimer, 500 / portTICK_PERIOD_MS, 100 ) == pdPASS )
|
||||||
* {
|
* {
|
||||||
* // The command was successfully sent.
|
* // The command was successfully sent.
|
||||||
* }
|
* }
|
||||||
|
@ -613,7 +613,7 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void );
|
||||||
* // Create then start the one-shot timer that is responsible for turning
|
* // Create then start the one-shot timer that is responsible for turning
|
||||||
* // the back-light off if no keys are pressed within a 5 second period.
|
* // the back-light off if no keys are pressed within a 5 second period.
|
||||||
* xBacklightTimer = xTimerCreate( "BacklightTimer", // Just a text name, not used by the kernel.
|
* xBacklightTimer = xTimerCreate( "BacklightTimer", // Just a text name, not used by the kernel.
|
||||||
* ( 5000 / portTICK_RATE_MS), // The timer period in ticks.
|
* ( 5000 / portTICK_PERIOD_MS), // The timer period in ticks.
|
||||||
* pdFALSE, // The timer is a one-shot timer.
|
* pdFALSE, // The timer is a one-shot timer.
|
||||||
* 0, // The id is not used by the callback so can take any value.
|
* 0, // The id is not used by the callback so can take any value.
|
||||||
* vBacklightTimerCallback // The callback function that switches the LCD back-light off.
|
* vBacklightTimerCallback // The callback function that switches the LCD back-light off.
|
||||||
|
@ -809,11 +809,11 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void );
|
||||||
* @param xTimer The handle of the timer that is having its period changed.
|
* @param xTimer The handle of the timer that is having its period changed.
|
||||||
*
|
*
|
||||||
* @param xNewPeriod The new period for xTimer. Timer periods are specified in
|
* @param xNewPeriod The new period for xTimer. Timer periods are specified in
|
||||||
* tick periods, so the constant portTICK_RATE_MS can be used to convert a time
|
* tick periods, so the constant portTICK_PERIOD_MS can be used to convert a time
|
||||||
* that has been specified in milliseconds. For example, if the timer must
|
* that has been specified in milliseconds. For example, if the timer must
|
||||||
* expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively,
|
* expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively,
|
||||||
* if the timer must expire after 500ms, then xNewPeriod can be set to
|
* if the timer must expire after 500ms, then xNewPeriod can be set to
|
||||||
* ( 500 / portTICK_RATE_MS ) provided configTICK_RATE_HZ is less than
|
* ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than
|
||||||
* or equal to 1000.
|
* or equal to 1000.
|
||||||
*
|
*
|
||||||
* @param pxHigherPriorityTaskWoken The timer service/daemon task spends most
|
* @param pxHigherPriorityTaskWoken The timer service/daemon task spends most
|
||||||
|
|
|
@ -114,7 +114,7 @@ typedef unsigned short UBaseType_t;
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portSWITCH_INT_NUMBER 0x80
|
#define portSWITCH_INT_NUMBER 0x80
|
||||||
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -115,7 +115,7 @@ typedef unsigned short UBaseType_t;
|
||||||
#define portSWITCH_INT_NUMBER 0x80
|
#define portSWITCH_INT_NUMBER 0x80
|
||||||
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
||||||
#define portDOS_TICK_RATE ( 18.20648 )
|
#define portDOS_TICK_RATE ( 18.20648 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portTICKS_PER_DOS_TICK ( ( uint16_t ) ( ( ( portDOUBLE ) configTICK_RATE_HZ / portDOS_TICK_RATE ) + 0.5 ) )
|
#define portTICKS_PER_DOS_TICK ( ( uint16_t ) ( ( ( portDOUBLE ) configTICK_RATE_HZ / portDOS_TICK_RATE ) + 0.5 ) )
|
||||||
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
||||||
#define portBYTE_ALIGNMENT ( 2 )
|
#define portBYTE_ALIGNMENT ( 2 )
|
||||||
|
|
|
@ -100,7 +100,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH (-1)
|
#define portSTACK_GROWTH (-1)
|
||||||
#define portTICK_RATE_MS ((TickType_t) 1000 / configTICK_RATE_HZ)
|
#define portTICK_PERIOD_MS ((TickType_t) 1000 / configTICK_RATE_HZ)
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
|
|
||||||
/* Critical section handling. */
|
/* Critical section handling. */
|
||||||
|
|
|
@ -159,7 +159,7 @@ extern void vPortYield( void );
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() __no_operation()
|
#define portNOP() __no_operation()
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
uint32_t ulPortSetIPL( uint32_t );
|
uint32_t ulPortSetIPL( uint32_t );
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
uint32_t ulPortSetIPL( uint32_t );
|
uint32_t ulPortSetIPL( uint32_t );
|
||||||
#define portDISABLE_INTERRUPTS() ulPortSetIPL( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() ulPortSetIPL( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
|
|
|
@ -102,7 +102,7 @@ typedef unsigned char UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 1
|
#define portBYTE_ALIGNMENT 1
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portYIELD() __asm( "swi" );
|
#define portYIELD() __asm( "swi" );
|
||||||
#define portNOP() __asm( "nop" );
|
#define portNOP() __asm( "nop" );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -127,7 +127,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm volatile ( "SWI 0" )
|
#define portYIELD() asm volatile ( "SWI 0" )
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
|
|
||||||
/* Constants required to setup the PIT. */
|
/* Constants required to setup the PIT. */
|
||||||
#define portPIT_CLOCK_DIVISOR ( ( uint32_t ) 16 )
|
#define portPIT_CLOCK_DIVISOR ( ( uint32_t ) 16 )
|
||||||
#define portPIT_COUNTER_VALUE ( ( ( configCPU_CLOCK_HZ / portPIT_CLOCK_DIVISOR ) / 1000UL ) * portTICK_RATE_MS )
|
#define portPIT_COUNTER_VALUE ( ( ( configCPU_CLOCK_HZ / portPIT_CLOCK_DIVISOR ) / 1000UL ) * portTICK_PERIOD_MS )
|
||||||
|
|
||||||
#define portINT_LEVEL_SENSITIVE 0
|
#define portINT_LEVEL_SENSITIVE 0
|
||||||
#define portPIT_ENABLE ( ( uint16_t ) 0x1 << 24 )
|
#define portPIT_ENABLE ( ( uint16_t ) 0x1 << 24 )
|
||||||
|
|
|
@ -127,7 +127,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portNOP() __asm volatile ( "NOP" );
|
#define portNOP() __asm volatile ( "NOP" );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -104,7 +104,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portNOP() __asm volatile ( "NOP" );
|
#define portNOP() __asm volatile ( "NOP" );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -127,7 +127,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portNOP() __asm volatile ( "NOP" );
|
#define portNOP() __asm volatile ( "NOP" );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ typedef struct MPU_SETTINGS
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ typedef unsigned char UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 1
|
#define portBYTE_ALIGNMENT 1
|
||||||
#define portNOP() asm volatile ( "nop" );
|
#define portNOP() asm volatile ( "nop" );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -112,9 +112,9 @@ typedef portSTACK_TYPE StackType_t;
|
||||||
typedef long BaseType_t;
|
typedef long BaseType_t;
|
||||||
typedef unsigned long UBaseType_t;
|
typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
#define TASK_DELAY_MS(x) ( (x) /portTICK_RATE_MS )
|
#define TASK_DELAY_MS(x) ( (x) /portTICK_PERIOD_MS )
|
||||||
#define TASK_DELAY_S(x) ( (x)*1000 /portTICK_RATE_MS )
|
#define TASK_DELAY_S(x) ( (x)*1000 /portTICK_PERIOD_MS )
|
||||||
#define TASK_DELAY_MIN(x) ( (x)*60*1000/portTICK_RATE_MS )
|
#define TASK_DELAY_MIN(x) ( (x)*60*1000/portTICK_PERIOD_MS )
|
||||||
|
|
||||||
#define configTICK_TC_IRQ ATPASTE2(AVR32_TC_IRQ, configTICK_TC_CHANNEL)
|
#define configTICK_TC_IRQ ATPASTE2(AVR32_TC_IRQ, configTICK_TC_CHANNEL)
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portNOP() {__asm__ __volatile__ ("nop");}
|
#define portNOP() {__asm__ __volatile__ ("nop");}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portNOP() __asm__ volatile ( "mov r0, r0" )
|
#define portNOP() __asm__ volatile ( "mov r0, r0" )
|
||||||
#define portCRITICAL_NESTING_IN_TCB 1
|
#define portCRITICAL_NESTING_IN_TCB 1
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
uint32_t ulPortSetIPL( uint32_t );
|
uint32_t ulPortSetIPL( uint32_t );
|
||||||
#define portDISABLE_INTERRUPTS() ulPortSetIPL( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() ulPortSetIPL( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned char UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portYIELD() asm volatile( "TRAPA #0" )
|
#define portYIELD() asm volatile( "TRAPA #0" )
|
||||||
#define portNOP() asm volatile( "NOP" )
|
#define portNOP() asm volatile( "NOP" )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -107,7 +107,7 @@ typedef unsigned char UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 1
|
#define portBYTE_ALIGNMENT 1
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portYIELD() __asm( "swi" );
|
#define portYIELD() __asm( "swi" );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* ------------------------ Architecture specifics ------------------------ */
|
/* ------------------------ Architecture specifics ------------------------ */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
|
|
||||||
#define portTRAP_YIELD 0 /* Trap 0 */
|
#define portTRAP_YIELD 0 /* Trap 0 */
|
||||||
|
|
|
@ -150,7 +150,7 @@ extern void vPortYield( void ) __attribute__ ( ( naked ) );
|
||||||
/* Hardwware specifics. */
|
/* Hardwware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
||||||
|
|
|
@ -144,7 +144,7 @@ void vTaskSwitchContext();
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ extern volatile uint32_t ulTaskSwitchRequested;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
#define portCRITICAL_NESTING_IN_TCB 1
|
#define portCRITICAL_NESTING_IN_TCB 1
|
||||||
|
|
|
@ -132,7 +132,7 @@ void vPortYield( void );
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
|
|
||||||
/* There are 32 * 32bit floating point regieters, plus the FPSCR to save. */
|
/* There are 32 * 32bit floating point regieters, plus the FPSCR to save. */
|
||||||
|
|
|
@ -132,7 +132,7 @@ void vPortYield( void );
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
|
|
||||||
/* There are 32 * 32bit floating point regieters, plus the FPSCR to save. */
|
/* There are 32 * 32bit floating point regieters, plus the FPSCR to save. */
|
||||||
|
|
|
@ -107,7 +107,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() __asm volatile( "NOP" )
|
#define portNOP() __asm volatile( "NOP" )
|
||||||
|
|
||||||
/* Save clobbered register, set ITU SWINR (at address 0x872E0), read the value
|
/* Save clobbered register, set ITU SWINR (at address 0x872E0), read the value
|
||||||
|
|
|
@ -107,7 +107,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() __asm volatile( "NOP" )
|
#define portNOP() __asm volatile( "NOP" )
|
||||||
|
|
||||||
/* Yield equivalent to "*portITU_SWINTR = 0x01; ( void ) *portITU_SWINTR;"
|
/* Yield equivalent to "*portITU_SWINTR = 0x01; ( void ) *portITU_SWINTR;"
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm volatile ( "SWI 0" )
|
#define portYIELD() asm volatile ( "SWI 0" )
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portNOP() __asm volatile( " nop " )
|
#define portNOP() __asm volatile( " nop " )
|
||||||
#define portCRITICAL_NESTING_IN_TCB 1
|
#define portCRITICAL_NESTING_IN_TCB 1
|
||||||
|
|
|
@ -152,7 +152,7 @@ extern void vPortStart( void );
|
||||||
/* Hardwware specifics. */
|
/* Hardwware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ extern void vPortExitCritical( void );
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 1
|
#define portBYTE_ALIGNMENT 1
|
||||||
#define portNOP() asm( "nop" )
|
#define portNOP() asm( "nop" )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -114,9 +114,9 @@ typedef long BaseType_t;
|
||||||
typedef unsigned long UBaseType_t;
|
typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
|
|
||||||
#define TASK_DELAY_MS(x) ( (x) /portTICK_RATE_MS )
|
#define TASK_DELAY_MS(x) ( (x) /portTICK_PERIOD_MS )
|
||||||
#define TASK_DELAY_S(x) ( (x)*1000 /portTICK_RATE_MS )
|
#define TASK_DELAY_S(x) ( (x)*1000 /portTICK_PERIOD_MS )
|
||||||
#define TASK_DELAY_MIN(x) ( (x)*60*1000/portTICK_RATE_MS )
|
#define TASK_DELAY_MIN(x) ( (x)*60*1000/portTICK_PERIOD_MS )
|
||||||
|
|
||||||
#define configTICK_TC_IRQ ATPASTE2(AVR32_TC_IRQ, configTICK_TC_CHANNEL)
|
#define configTICK_TC_IRQ ATPASTE2(AVR32_TC_IRQ, configTICK_TC_CHANNEL)
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portNOP() {__asm__ __volatile__ ("nop");}
|
#define portNOP() {__asm__ __volatile__ ("nop");}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
/* Constants required to setup the PIT. */
|
/* Constants required to setup the PIT. */
|
||||||
#define portPIT_CLOCK_DIVISOR ( ( uint32_t ) 16 )
|
#define portPIT_CLOCK_DIVISOR ( ( uint32_t ) 16 )
|
||||||
#define portPIT_COUNTER_VALUE ( ( ( configCPU_CLOCK_HZ / portPIT_CLOCK_DIVISOR ) / 1000UL ) * portTICK_RATE_MS )
|
#define portPIT_COUNTER_VALUE ( ( ( configCPU_CLOCK_HZ / portPIT_CLOCK_DIVISOR ) / 1000UL ) * portTICK_PERIOD_MS )
|
||||||
|
|
||||||
/* Constants required to handle critical sections. */
|
/* Constants required to handle critical sections. */
|
||||||
#define portNO_CRITICAL_NESTING ( ( uint32_t ) 0 )
|
#define portNO_CRITICAL_NESTING ( ( uint32_t ) 0 )
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm ( "SWI 0" )
|
#define portYIELD() asm ( "SWI 0" )
|
||||||
#define portNOP() asm ( "NOP" )
|
#define portNOP() asm ( "NOP" )
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm ( "SWI 0" )
|
#define portYIELD() asm ( "SWI 0" )
|
||||||
#define portNOP() asm ( "NOP" )
|
#define portNOP() asm ( "NOP" )
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
|
|
||||||
/* Constants required to setup the PIT. */
|
/* Constants required to setup the PIT. */
|
||||||
#define portPIT_CLOCK_DIVISOR ( ( uint32_t ) 16 )
|
#define portPIT_CLOCK_DIVISOR ( ( uint32_t ) 16 )
|
||||||
#define portPIT_COUNTER_VALUE ( ( ( configCPU_CLOCK_HZ / portPIT_CLOCK_DIVISOR ) / 1000UL ) * portTICK_RATE_MS )
|
#define portPIT_COUNTER_VALUE ( ( ( configCPU_CLOCK_HZ / portPIT_CLOCK_DIVISOR ) / 1000UL ) * portTICK_PERIOD_MS )
|
||||||
|
|
||||||
/* Constants required to handle interrupts. */
|
/* Constants required to handle interrupts. */
|
||||||
#define portTIMER_MATCH_ISR_BIT ( ( uint8_t ) 0x01 )
|
#define portTIMER_MATCH_ISR_BIT ( ( uint8_t ) 0x01 )
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm ( "SWI 0" )
|
#define portYIELD() asm ( "SWI 0" )
|
||||||
#define portNOP() asm ( "NOP" )
|
#define portNOP() asm ( "NOP" )
|
||||||
|
|
|
@ -151,7 +151,7 @@ extern void vPortYield( void );
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP()
|
#define portNOP()
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ extern void vPortYield( void );
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() __no_operation()
|
#define portNOP() __no_operation()
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ extern volatile uint16_t usCriticalNesting; \
|
||||||
/* Hardwware specifics. */
|
/* Hardwware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
||||||
|
|
|
@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() __no_operation()
|
#define portNOP() __no_operation()
|
||||||
|
|
||||||
#define portYIELD() \
|
#define portYIELD() \
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() __no_operation()
|
#define portNOP() __no_operation()
|
||||||
|
|
||||||
/* Yield equivalent to "*portITU_SWINTR = 0x01; ( void ) *portITU_SWINTR;"
|
/* Yield equivalent to "*portITU_SWINTR = 0x01; ( void ) *portITU_SWINTR;"
|
||||||
|
|
|
@ -109,7 +109,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm ( "SWI 0" )
|
#define portYIELD() asm ( "SWI 0" )
|
||||||
#define portNOP() asm ( "NOP" )
|
#define portNOP() asm ( "NOP" )
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm ( "SWI 0" )
|
#define portYIELD() asm ( "SWI 0" )
|
||||||
#define portNOP() asm ( "NOP" )
|
#define portNOP() asm ( "NOP" )
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portYIELD() asm ( "SWI 0" )
|
#define portYIELD() asm ( "SWI 0" )
|
||||||
#define portNOP() asm ( "NOP" )
|
#define portNOP() asm ( "NOP" )
|
||||||
|
|
|
@ -157,7 +157,7 @@ extern void vTaskSwitchContext( void );
|
||||||
/* Hardwware specifics. */
|
/* Hardwware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
||||||
|
|
|
@ -102,7 +102,7 @@ typedef unsigned char UBaseType_t;
|
||||||
#define portBYTE_ALIGNMENT 1
|
#define portBYTE_ALIGNMENT 1
|
||||||
#define portGLOBAL_INT_ENABLE_BIT 0x80
|
#define portGLOBAL_INT_ENABLE_BIT 0x80
|
||||||
#define portSTACK_GROWTH 1
|
#define portSTACK_GROWTH 1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Critical section management. */
|
/* Critical section management. */
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned short UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH 1
|
#define portSTACK_GROWTH 1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Critical section management. */
|
/* Critical section management. */
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Critical section management. */
|
/* Critical section management. */
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Critical section management. */
|
/* Critical section management. */
|
||||||
|
|
|
@ -184,13 +184,13 @@ TIMECAPS xTimeCaps;
|
||||||
time, not the time that Sleep() is called. It is done this way to
|
time, not the time that Sleep() is called. It is done this way to
|
||||||
prevent overruns in this very non real time simulated/emulated
|
prevent overruns in this very non real time simulated/emulated
|
||||||
environment. */
|
environment. */
|
||||||
if( portTICK_RATE_MS < xMinimumWindowsBlockTime )
|
if( portTICK_PERIOD_MS < xMinimumWindowsBlockTime )
|
||||||
{
|
{
|
||||||
Sleep( xMinimumWindowsBlockTime );
|
Sleep( xMinimumWindowsBlockTime );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Sleep( portTICK_RATE_MS );
|
Sleep( portTICK_PERIOD_MS );
|
||||||
}
|
}
|
||||||
|
|
||||||
configASSERT( xPortRunning );
|
configASSERT( xPortRunning );
|
||||||
|
|
|
@ -95,7 +95,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
|
|
||||||
#define portYIELD() vPortGenerateSimulatedInterrupt( portINTERRUPT_YIELD )
|
#define portYIELD() vPortGenerateSimulatedInterrupt( portINTERRUPT_YIELD )
|
||||||
|
|
|
@ -119,7 +119,7 @@ typedef unsigned short UBaseType_t;
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portSWITCH_INT_NUMBER 0x80
|
#define portSWITCH_INT_NUMBER 0x80
|
||||||
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -121,7 +121,7 @@ typedef void ( __interrupt __far *pxISR )();
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portSWITCH_INT_NUMBER 0x80
|
#define portSWITCH_INT_NUMBER 0x80
|
||||||
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() nop()
|
#define portNOP() nop()
|
||||||
|
|
||||||
#pragma inline_asm vPortYield
|
#pragma inline_asm vPortYield
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() nop()
|
#define portNOP() nop()
|
||||||
|
|
||||||
#pragma inline_asm vPortYield
|
#pragma inline_asm vPortYield
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
#define portBYTE_ALIGNMENT 8 /* Could make four, according to manual. */
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() nop()
|
#define portNOP() nop()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ typedef unsigned long UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
#define portSTACK_GROWTH -1
|
#define portSTACK_GROWTH -1
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP() nop()
|
#define portNOP() nop()
|
||||||
#define portSTART_SCHEDULER_TRAP_NO ( 32 )
|
#define portSTART_SCHEDULER_TRAP_NO ( 32 )
|
||||||
#define portYIELD_TRAP_NO ( 33 )
|
#define portYIELD_TRAP_NO ( 33 )
|
||||||
|
|
|
@ -151,7 +151,7 @@ extern void vPortYield( void );
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portNOP()
|
#define portNOP()
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ typedef unsigned char UBaseType_t;
|
||||||
/* Hardware specifics. */
|
/* Hardware specifics. */
|
||||||
#define portBYTE_ALIGNMENT 1
|
#define portBYTE_ALIGNMENT 1
|
||||||
#define portSTACK_GROWTH ( 1 )
|
#define portSTACK_GROWTH ( 1 )
|
||||||
#define portTICK_RATE_MS ( ( uint32_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( uint32_t ) 1000 / configTICK_RATE_HZ )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Task utilities. */
|
/* Task utilities. */
|
||||||
|
|
|
@ -124,7 +124,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 4
|
#define portBYTE_ALIGNMENT 4
|
||||||
#define portNOP() __asm( " nop " );
|
#define portNOP() __asm( " nop " );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -131,7 +131,7 @@ typedef unsigned short UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portNOP() __asm( " NOP " );
|
#define portNOP() __asm( " NOP " );
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef unsigned long UBaseType_t;
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 8
|
#define portBYTE_ALIGNMENT 8
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -433,7 +433,7 @@ extern uint16_t usCalcMinStackSize;
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ void portENABLE_INTERRUPTS( void );
|
||||||
#define portSTACK_GROWTH ( -1 )
|
#define portSTACK_GROWTH ( -1 )
|
||||||
#define portSWITCH_INT_NUMBER 0x80
|
#define portSWITCH_INT_NUMBER 0x80
|
||||||
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portBYTE_ALIGNMENT 2
|
#define portBYTE_ALIGNMENT 2
|
||||||
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
||||||
#define portNOP() __asm{ nop }
|
#define portNOP() __asm{ nop }
|
||||||
|
|
|
@ -125,7 +125,7 @@ void portENABLE_INTERRUPTS( void );
|
||||||
#define portSWITCH_INT_NUMBER 0x80
|
#define portSWITCH_INT_NUMBER 0x80
|
||||||
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
#define portYIELD() __asm{ int portSWITCH_INT_NUMBER }
|
||||||
#define portDOS_TICK_RATE ( 18.20648 )
|
#define portDOS_TICK_RATE ( 18.20648 )
|
||||||
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||||
#define portTICKS_PER_DOS_TICK ( ( uint16_t ) ( ( ( portDOUBLE ) configTICK_RATE_HZ / portDOS_TICK_RATE ) + 0.5 ) )
|
#define portTICKS_PER_DOS_TICK ( ( uint16_t ) ( ( ( portDOUBLE ) configTICK_RATE_HZ / portDOS_TICK_RATE ) + 0.5 ) )
|
||||||
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
#define portINITIAL_SW ( ( portSTACK_TYPE ) 0x0202 ) /* Start the tasks with interrupts enabled. */
|
||||||
#define portBYTE_ALIGNMENT ( 2 )
|
#define portBYTE_ALIGNMENT ( 2 )
|
||||||
|
|
Loading…
Reference in a new issue