mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-13 09:39:41 +00:00
freertos: Add changes to FreeRTOS SMP sources
This commit adds the necessary changes to the FreeRTOS SMP source and and header files so that it can be compatible with ESP-IDF.
This commit is contained in:
@@ -117,4 +117,16 @@ typedef void (* TaskFunction_t)( void * );
|
||||
#define pdBIG_ENDIAN pdFREERTOS_BIG_ENDIAN
|
||||
|
||||
|
||||
/* ------------------------------------------------ IDF Compatibility --------------------------------------------------
|
||||
*
|
||||
* ------------------------------------------------------------------------------------------------------------------ */
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
|
||||
#ifndef pdTICKS_TO_MS
|
||||
#define pdTICKS_TO_MS( xTicks ) ( ( TickType_t ) ( ( uint64_t ) ( xTicks ) * 1000 / configTICK_RATE_HZ ) )
|
||||
#endif
|
||||
|
||||
#endif // ESP_PLATFORM
|
||||
|
||||
#endif /* PROJDEFS_H */
|
||||
|
Reference in New Issue
Block a user