mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 00:57:44 -04:00
Defer/Remove kernel source changes
This commit is contained in:
parent
36d613a8ec
commit
757fed2ff4
4 changed files with 5 additions and 21 deletions
|
@ -654,7 +654,7 @@ const List_t *pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
||||||
|
|
||||||
/* For internal use only - execute a 'set bits' command that was pended from
|
/* For internal use only - execute a 'set bits' command that was pended from
|
||||||
an interrupt. */
|
an interrupt. */
|
||||||
portTIMER_CALLBACK_ATTRIBUTE void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet )
|
void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet )
|
||||||
{
|
{
|
||||||
( void ) xEventGroupSetBits( pvEventGroup, ( EventBits_t ) ulBitsToSet ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */
|
( void ) xEventGroupSetBits( pvEventGroup, ( EventBits_t ) ulBitsToSet ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */
|
||||||
}
|
}
|
||||||
|
@ -662,7 +662,7 @@ portTIMER_CALLBACK_ATTRIBUTE void vEventGroupSetBitsCallback( void *pvEventGroup
|
||||||
|
|
||||||
/* For internal use only - execute a 'clear bits' command that was pended from
|
/* For internal use only - execute a 'clear bits' command that was pended from
|
||||||
an interrupt. */
|
an interrupt. */
|
||||||
portTIMER_CALLBACK_ATTRIBUTE void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear )
|
void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear )
|
||||||
{
|
{
|
||||||
( void ) xEventGroupClearBits( pvEventGroup, ( EventBits_t ) ulBitsToClear ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */
|
( void ) xEventGroupClearBits( pvEventGroup, ( EventBits_t ) ulBitsToClear ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,10 +276,6 @@ hold explicit before calling the code. */
|
||||||
#error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
|
#error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
|
||||||
#endif /* configTIMER_TASK_STACK_DEPTH */
|
#endif /* configTIMER_TASK_STACK_DEPTH */
|
||||||
|
|
||||||
#ifndef portTIMER_CALLBACK_ATTRIBUTE
|
|
||||||
#define portTIMER_CALLBACK_ATTRIBUTE
|
|
||||||
#endif /* portTIMER_CALLBACK_ATTRIBUTE */
|
|
||||||
|
|
||||||
#endif /* configUSE_TIMERS */
|
#endif /* configUSE_TIMERS */
|
||||||
|
|
||||||
#ifndef portSET_INTERRUPT_MASK_FROM_ISR
|
#ifndef portSET_INTERRUPT_MASK_FROM_ISR
|
||||||
|
|
|
@ -167,15 +167,6 @@ int xscope_gettime( void );
|
||||||
#define snprintf(...) rtos_snprintf(__VA_ARGS__)
|
#define snprintf(...) rtos_snprintf(__VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Attribute for the pxCallbackFunction member of the Timer_t struct.
|
|
||||||
Required by xcc to calculate stack usage. */
|
|
||||||
#define portTIMER_CALLBACK_ATTRIBUTE __attribute__((fptrgroup("timerCallbackGroup")))
|
|
||||||
|
|
||||||
/* Timer callback function macros. For xcc this ensures they get added to the timer callback
|
|
||||||
group so that stack usage for certain functions in timers.c can be calculated. */
|
|
||||||
#define portTIMER_CALLBACK_FUNCTION_PROTO( vFunction, xTimer ) void vFunction( TimerHandle_t xTimer )
|
|
||||||
#define portTIMER_CALLBACK_FUNCTION( vFunction, xTimer ) portTIMER_CALLBACK_ATTRIBUTE void vFunction( TimerHandle_t xTimer )
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Task function macros as described on the FreeRTOS.org WEB site. These are
|
/* Task function macros as described on the FreeRTOS.org WEB site. These are
|
||||||
|
|
9
timers.c
9
timers.c
|
@ -69,17 +69,14 @@ defining trmTIMER_SERVICE_TASK_NAME in FreeRTOSConfig.h. */
|
||||||
#define tmrSTATUS_IS_STATICALLY_ALLOCATED ( ( uint8_t ) 0x02 )
|
#define tmrSTATUS_IS_STATICALLY_ALLOCATED ( ( uint8_t ) 0x02 )
|
||||||
#define tmrSTATUS_IS_AUTORELOAD ( ( uint8_t ) 0x04 )
|
#define tmrSTATUS_IS_AUTORELOAD ( ( uint8_t ) 0x04 )
|
||||||
|
|
||||||
/* The definition of the timers themselves.
|
/* The definition of the timers themselves. */
|
||||||
portTIMER_CALLBACK_ATTRIBUTE can be used to apply an __attribute__ to timer callbacks and timer
|
|
||||||
callback function pointers. In some ports, this attribute enables the compiler to resolve function pointers in static analysis.
|
|
||||||
portTIMER_CALLBACK_ATTRIBUTE defaults as white space unless it is defined by the user. */
|
|
||||||
typedef struct tmrTimerControl /* The old naming convention is used to prevent breaking kernel aware debuggers. */
|
typedef struct tmrTimerControl /* The old naming convention is used to prevent breaking kernel aware debuggers. */
|
||||||
{
|
{
|
||||||
const char *pcTimerName; /*<< Text name. This is not used by the kernel, it is included simply to make debugging easier. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
const char *pcTimerName; /*<< Text name. This is not used by the kernel, it is included simply to make debugging easier. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||||
ListItem_t xTimerListItem; /*<< Standard linked list item as used by all kernel features for event management. */
|
ListItem_t xTimerListItem; /*<< Standard linked list item as used by all kernel features for event management. */
|
||||||
TickType_t xTimerPeriodInTicks;/*<< How quickly and often the timer expires. */
|
TickType_t xTimerPeriodInTicks;/*<< How quickly and often the timer expires. */
|
||||||
void *pvTimerID; /*<< An ID to identify the timer. This allows the timer to be identified when the same callback is used for multiple timers. */
|
void *pvTimerID; /*<< An ID to identify the timer. This allows the timer to be identified when the same callback is used for multiple timers. */
|
||||||
portTIMER_CALLBACK_ATTRIBUTE TimerCallbackFunction_t pxCallbackFunction; /*<< The function that will be called when the timer expires. */
|
TimerCallbackFunction_t pxCallbackFunction; /*<< The function that will be called when the timer expires. */
|
||||||
#if( configUSE_TRACE_FACILITY == 1 )
|
#if( configUSE_TRACE_FACILITY == 1 )
|
||||||
UBaseType_t uxTimerNumber; /*<< An ID assigned by trace tools such as FreeRTOS+Trace */
|
UBaseType_t uxTimerNumber; /*<< An ID assigned by trace tools such as FreeRTOS+Trace */
|
||||||
#endif
|
#endif
|
||||||
|
@ -104,7 +101,7 @@ typedef struct tmrTimerParameters
|
||||||
|
|
||||||
typedef struct tmrCallbackParameters
|
typedef struct tmrCallbackParameters
|
||||||
{
|
{
|
||||||
portTIMER_CALLBACK_ATTRIBUTE PendedFunction_t pxCallbackFunction; /* << The callback function to execute. */
|
PendedFunction_t pxCallbackFunction; /* << The callback function to execute. */
|
||||||
void *pvParameter1; /* << The value that will be used as the callback functions first parameter. */
|
void *pvParameter1; /* << The value that will be used as the callback functions first parameter. */
|
||||||
uint32_t ulParameter2; /* << The value that will be used as the callback functions second parameter. */
|
uint32_t ulParameter2; /* << The value that will be used as the callback functions second parameter. */
|
||||||
} CallbackParameters_t;
|
} CallbackParameters_t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue