mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 17:17:44 -04:00
Merge branch 'main' into patch-1
This commit is contained in:
commit
6374066414
5 changed files with 1329 additions and 1335 deletions
|
@ -1059,6 +1059,11 @@
|
||||||
#define configRUN_FREERTOS_SECURE_ONLY 0
|
#define configRUN_FREERTOS_SECURE_ONLY 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef configRUN_ADDITIONAL_TESTS
|
||||||
|
#define configRUN_ADDITIONAL_TESTS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
|
/* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
|
||||||
* dynamically allocated RAM, in which case when any task is deleted it is known
|
* dynamically allocated RAM, in which case when any task is deleted it is known
|
||||||
* that both the task's stack and TCB need to be freed. Sometimes the
|
* that both the task's stack and TCB need to be freed. Sometimes the
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
/* This file redefines API functions to be called through a wrapper macro, but
|
/* This file redefines API functions to be called through a wrapper macro, but
|
||||||
* only for ports that are using the MPU. */
|
* only for ports that are using the MPU. */
|
||||||
#ifdef portUSING_MPU_WRAPPERS
|
#if ( portUSING_MPU_WRAPPERS == 1 )
|
||||||
|
|
||||||
/* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
|
/* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
|
||||||
* included from queue.c or task.c to prevent it from having an effect within
|
* included from queue.c or task.c to prevent it from having an effect within
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
* https://www.FreeRTOS.org
|
* https://www.FreeRTOS.org
|
||||||
* https://github.com/FreeRTOS
|
* https://github.com/FreeRTOS
|
||||||
*
|
*
|
||||||
* 1 tab == 4 spaces!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -58,6 +57,8 @@ extern "C" {
|
||||||
#define portSTACK_TYPE uint8_t
|
#define portSTACK_TYPE uint8_t
|
||||||
#define portBASE_TYPE char
|
#define portBASE_TYPE char
|
||||||
|
|
||||||
|
#define portPOINTER_SIZE_TYPE uint16_t
|
||||||
|
|
||||||
typedef portSTACK_TYPE StackType_t;
|
typedef portSTACK_TYPE StackType_t;
|
||||||
typedef signed char BaseType_t;
|
typedef signed char BaseType_t;
|
||||||
typedef unsigned char UBaseType_t;
|
typedef unsigned char UBaseType_t;
|
||||||
|
|
2619
stream_buffer.c
2619
stream_buffer.c
File diff suppressed because it is too large
Load diff
35
timers.c
35
timers.c
|
@ -350,27 +350,24 @@
|
||||||
/* 0 is not a valid value for xTimerPeriodInTicks. */
|
/* 0 is not a valid value for xTimerPeriodInTicks. */
|
||||||
configASSERT( ( xTimerPeriodInTicks > 0 ) );
|
configASSERT( ( xTimerPeriodInTicks > 0 ) );
|
||||||
|
|
||||||
if( pxNewTimer != NULL )
|
/* Ensure the infrastructure used by the timer service task has been
|
||||||
|
* created/initialised. */
|
||||||
|
prvCheckForValidListAndQueue();
|
||||||
|
|
||||||
|
/* Initialise the timer structure members using the function
|
||||||
|
* parameters. */
|
||||||
|
pxNewTimer->pcTimerName = pcTimerName;
|
||||||
|
pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
|
||||||
|
pxNewTimer->pvTimerID = pvTimerID;
|
||||||
|
pxNewTimer->pxCallbackFunction = pxCallbackFunction;
|
||||||
|
vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
|
||||||
|
|
||||||
|
if( uxAutoReload != pdFALSE )
|
||||||
{
|
{
|
||||||
/* Ensure the infrastructure used by the timer service task has been
|
pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
|
||||||
* created/initialised. */
|
|
||||||
prvCheckForValidListAndQueue();
|
|
||||||
|
|
||||||
/* Initialise the timer structure members using the function
|
|
||||||
* parameters. */
|
|
||||||
pxNewTimer->pcTimerName = pcTimerName;
|
|
||||||
pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
|
|
||||||
pxNewTimer->pvTimerID = pvTimerID;
|
|
||||||
pxNewTimer->pxCallbackFunction = pxCallbackFunction;
|
|
||||||
vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
|
|
||||||
|
|
||||||
if( uxAutoReload != pdFALSE )
|
|
||||||
{
|
|
||||||
pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
|
|
||||||
}
|
|
||||||
|
|
||||||
traceTIMER_CREATE( pxNewTimer );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
traceTIMER_CREATE( pxNewTimer );
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue