mirror of
https://github.com/azure-rtos/usbx.git
synced 2025-02-04 07:13:12 +08:00
21 lines
451 B
C
21 lines
451 B
C
#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 |