suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

Use xPortIsInsideInterrupt() rather than original function. #148

Closed suikan4github closed 1 year ago

suikan4github commented 1 year ago

Is your feature request related to a problem? Please describe. Murasaki is using isTaskContext() function to determine the current context. This is the original implementation.

https://github.com/suikan4github/murasaki/blob/c4b05c222b701fc869cb64ff7f47f7fe59933a58/core/murasaki_defs.hpp#L310

We should you xPortIsInsideInterrupt() function which is standard in FreeRTOS.

suikan4github commented 1 year ago

Merged to develop. Ready to release.