Hello,
while reading through the API of HwiP.h in mcu_plus_sdk_am243x_08_05_00_24 I found a discrepancy between the documentation of HwiP_inISR() and the actual implementation on R5F.
The documentation states that it is checked if the caller is inside IRQ or not - which is logical when the function is called inISR. However when looking at the implementation the function actually checks for mode != ARMV7R_SYSTEM_MODE which is not what you would expect from the documentation in the header file.
What is the reasoning to exclude all modes (which also includes unprivileged USER_MODE) except for SYSTEM_MODE from performing certain function calls?
Greetings
Simon