added FreeRTOS taskENTER_CRITICAL() and taskEXIT_CRITICAL() as option