There isn't any difference. portENTER_CRITICAL() is part of the port layer and is not intended for application use. taskENTER_CRITICAL() is part of the API and is intended for application use, although one just calls the other so in reality it makes no difference.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.