blob: beed7c613b07efa1fc7b903462d61e0c2cd80602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation */
/* Copyright (c) 2026 Eclipse ThreadX contributors */
/* */
/* This program and the accompanying materials are made available under */
/* the terms of the MIT License which is available at */
/* https://opensource.org/licenses/MIT. */
/* */
/* SPDX-License-Identifier: MIT */
/***************************************************************************/
#ifndef UX_TEST_ACTIONS_H
#define UX_TEST_ACTIONS_H
#include "ux_test.h"
static UX_TEST_ACTION create_error_match_action(UINT system_level, UINT system_context, UINT error_code)
{
UX_TEST_ACTION action = { 0 };
action.usbx_function = UX_TEST_OVERRIDE_ERROR_CALLBACK;
action.system_level = system_level;
action.system_context = system_context;
action.error_code = error_code;
action.no_return = 1;
return action;
}
#endif
|