fix(driver_twai): fix potential crash when node_delete from low priority task

Closes https://github.com/espressif/esp-idf/issues/18803
This commit is contained in:
wanckl
2026-07-10 16:17:24 +08:00
committed by Wan Lei
parent 82564356d0
commit eff5f2d1a2
5 changed files with 92 additions and 1 deletions

View File

@@ -210,6 +210,8 @@ TWAI 驱动支持为每个成功接收的报文创建一个 64 位的时间戳
当不再需要使用 TWAI 时,应该调用 :cpp:func:`twai_node_delete` 函数来释放软硬件资源。删除前请确保 TWAI 已经处于停止状态。
注意:由于驱动设计的原因,请不要在 FreeRTOS 定时器任务 (Timer task) 中调用删除函数。
进阶功能
========