Skip to content

Commit a9dc113

Browse files
committed
[17.12] Add addressing operator to callback function
This is required to disambiguate a function call and a function to-be called
1 parent 24f43e6 commit a9dc113

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

event_groups.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
traceENTER_xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear );
512512

513513
traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear );
514-
xReturn = xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL );
514+
xReturn = xTimerPendFunctionCallFromISR( &vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL );
515515

516516
traceRETURN_xEventGroupClearBitsFromISR( xReturn );
517517

@@ -823,7 +823,7 @@
823823
traceENTER_xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken );
824824

825825
traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet );
826-
xReturn = xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken );
826+
xReturn = xTimerPendFunctionCallFromISR( &vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken );
827827

828828
traceRETURN_xEventGroupSetBitsFromISR( xReturn );
829829

examples/cmake_example/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int main( void )
6969

7070
( void ) printf( "Example FreeRTOS Project\n" );
7171

72-
( void ) xTaskCreateStatic( exampleTask,
72+
( void ) xTaskCreateStatic( &exampleTask,
7373
"example",
7474
configMINIMAL_STACK_SIZE,
7575
NULL,

0 commit comments

Comments
 (0)