Hi
I would like to use the FreeRTOS TaskNotify functions and find that those wrappers are missing from the HalCoGen generated code. Is it possible to add user code sections in the files?
It would be really nice to include something like this in the os_mpu_wrappers.c:
/* USER CODE BEGIN */
BaseType_t MPU_ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = ulTaskNotifyTake(xClearCountOnExit, xTicksToWait);
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/* USER CODE END */
The section above will be wiped when generating new code.
Even better would be if the HalCoGen team took the time to add all wrappers or add User Code sections like in the non FreeRTOS generated code.
Please also remove the "xReturn =" found in os_mpu_wrappers.c line 609.
Best Regards
Henrik