1
10
11
12
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
...
...
#define UX_SOURCE_CODE
#include "ux_api.h"
#include "ux_device_class_dfu.h"
#include "ux_device_stack.h"
...
...
VOID _ux_device_class_dfu_state_sync(UX_SLAVE_CLASS_DFU *dfu)
{
UX_INTERRUPT_SAVE_AREA
UX_PARAMETER_NOT_USED(dfu);
UX_DISABLE
switch(_ux_system_slave -> ux_system_slave_device_dfu_state_machine)
{
case UX_SLAVE_CLASS_DFU_STATUS_STATE_DFU_DNBUSY:
_ux_system_slave -> ux_system_slave_device_dfu_state_machine =
UX_SLAVE_CLASS_DFU_STATUS_STATE_DFU_DNLOAD_SYNC;
break;case UX_SLAVE_CLASS_DFU_STATUS_STATE_DFU_DNBUSY:
case UX_SLAVE_CLASS_DFU_STATUS_STATE_DFU_MANIFEST:
_ux_system_slave -> ux_system_slave_device_dfu_state_machine =
UX_SLAVE_CLASS_DFU_STATUS_STATE_DFU_MANIFEST_SYNC;
break;case UX_SLAVE_CLASS_DFU_STATUS_STATE_DFU_MANIFEST:
default:
break;default
}switch (_ux_system_slave -> ux_system_slave_device_dfu_state_machine) { ... }
UX_RESTORE
}{ ... }