Any function to know whether the code run from interrupt or not

Hi Expert,

For BIOS system, there have a function that called TSK_isTSK that know whether the code run from interrupt code or other non-interrupt task code, any API function for FreeRTOS have the same function?

Which FreeRTOS port are you using? Many FreeRTOS ports have the function xPortIsInsideInterrupt.