EmbeddedRPC / erpc

Embedded RPC
https://github.com/EmbeddedRPC/erpc/wiki
BSD 3-Clause "New" or "Revised" License
776 stars 213 forks source link

Fix linking error on FreeRTOS when using portYIELD_FROM_ISR #413

Open Thom747 opened 8 months ago

Thom747 commented 8 months ago

Pull request

Choose Correct

Describe the pull request

The portYIELD_FROM_ISR() macro declares a variable called ulPortYieldRequired. FreeRTOS assumes ulPortYieldRequired is in the global namespace. To prevent linking errors, this PR introduces a function in the global namespace called ErpcPortYieldFromISR that then calls portYIELD_FROM_ISR().

To Reproduce

Build eRPC with FreeRTOS.

Expected behavior

eRPC builds as normal.

Desktop (please complete the following information):

Steps you didn't forgot to do