Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fce4b3

Browse files
committed
Merge branch 'feature/add_some_esp_idf_api_for_code_reuse' into 'master'
API compatible with esp-idf See merge request sdk/ESP8266_RTOS_SDK!545
2 parents ac17884 + 486da34 commit 8fce4b3

File tree

1 file changed

+4
-0
lines changed
  • components/freertos/port/esp8266/include/freertos

1 file changed

+4
-0
lines changed

components/freertos/port/esp8266/include/freertos/portmacro.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ uint32_t xPortGetTickRateHz(void);
238238

239239
void _xt_enter_first_task(void);
240240

241+
/* API compatible with esp-idf */
242+
#define xTaskCreatePinnedToCore(pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask, tskNO_AFFINITY) \
243+
xTaskCreate(pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask)
244+
241245
#ifdef __cplusplus
242246
}
243247
#endif

0 commit comments

Comments
 (0)