freertos: fix compilation errors with portMUX debugging enabled

Fixes https://github.com/espressif/esp-idf/issues/1057

Ref TW15702.
This commit is contained in:
Ivan Grokhotkov
2017-10-13 08:33:57 +08:00
parent 8e47c355fa
commit 715d081341
4 changed files with 11 additions and 3 deletions

View File

@@ -2841,7 +2841,7 @@ void vTaskSwitchContext( void )
//Exit critical region manually as well: release the mux now, interrupts will be re-enabled when we
//exit the function.
#ifdef CONFIG_FREERTOS_PORTMUX_DEBUG
vPortCPUReleaseMutex( &xTaskQueueMutex, function, line );
vPortCPUReleaseMutex( &xTaskQueueMutex, __FUNCTION__, __LINE__ );
#else
vPortCPUReleaseMutex( &xTaskQueueMutex );
#endif