mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 04:59:55 +00:00 
			
		
		
		
	freertos: remove portmacro_deprtecated.h file
This commit removes the portmacro_deprecated.h file and the deprecated APIs contained in it. Alternate APIs to use are noted in the migration guide.
This commit is contained in:
		| @@ -18,3 +18,14 @@ The header ``task_snapshot.h`` has been removed from ``freertos/task.h``. ESP-ID | ||||
| FreeRTOS Asserts | ||||
| ---------------- | ||||
| Previously FreeRTOS asserts were configured separately from the rest of the system using the `FREERTOS_ASSERT` kconfig option. This option has now been removed and the configuration is now done through `COMPILER_OPTIMIZATION_ASSERTION_LEVEL`. | ||||
|  | ||||
| Port Macro APIs | ||||
| --------------- | ||||
| The file ``portmacro_deprecated.h`` which was added to maintain backward compatibility for deprecated APIs is removed. Users are advised to use the alternate functions for the deprecated APIs as listed below: | ||||
|  | ||||
| - ``portENTER_CRITICAL_NESTED()`` is removed. Users should use the ``portSET_INTERRUPT_MASK_FROM_ISR()`` macro instead. | ||||
| - ``portEXIT_CRITICAL_NESTED()`` is removed. Users should use the ``portCLEAR_INTERRUPT_MASK_FROM_ISR()`` macro instead. | ||||
| - ``vPortCPUInitializeMutex()`` is removed. Users should use the ``spinlock_initialize()`` function instead. | ||||
| - ``vPortCPUAcquireMutex()`` is removed. Users should use the ``spinlock_acquire()`` function instead. | ||||
| - ``vPortCPUAcquireMutexTimeout()`` is removed. Users should use the ``spinlock_acquire()`` function instead. | ||||
| - ``vPortCPUReleaseMutex()`` is removed. Users should use the ``spinlock_release()`` function instead. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sudeep Mohanty
					Sudeep Mohanty