usbx/test/regression/ux_test_actions.h
CQ Xiao 6ed7092b77
Add regression tests. (#126)
Add regression tests (auto triggered on PR, manually triggered in forked branch).
2023-11-28 15:50:39 +08:00

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