1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
26
31
36
41
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
76
77
78
79
80
81
82
83
84
90
91
92
93
94
95
96
97
98
104
105
106
107
108
109
110
111
117
118
119
120
121
122
123
124
125
131
132
133
134
135
136
137
143
144
145
146
147
148
149
150
151
157
158
159
160
161
162
163
164
165
166
167
/* ... */
#include "app_azure_rtos.h"
Includes
Private includes
Private typedef
Private define
Private macro
static UCHAR tx_byte_pool_buffer[TX_APP_MEM_POOL_SIZE];
static TX_BYTE_POOL tx_app_byte_pool;
static UCHAR fx_byte_pool_buffer[FX_APP_MEM_POOL_SIZE];
static TX_BYTE_POOL fx_app_byte_pool;
static UCHAR ux_host_byte_pool_buffer[UX_HOST_APP_MEM_POOL_SIZE];
static TX_BYTE_POOL ux_host_app_byte_pool;
Private variables
/* ... */
VOID tx_application_define(VOID *first_unused_memory)
{
VOID *memory_ptr;
if (tx_byte_pool_create(&tx_app_byte_pool, "Tx App memory pool", tx_byte_pool_buffer, TX_APP_MEM_POOL_SIZE) != TX_SUCCESS)
{
Error_Handler();
}if (tx_byte_pool_create(&tx_app_byte_pool, "Tx App memory pool", tx_byte_pool_buffer, TX_APP_MEM_POOL_SIZE) != TX_SUCCESS) { ... }
else
{
memory_ptr = (VOID *)&tx_app_byte_pool;
if (App_ThreadX_Init(memory_ptr) != TX_SUCCESS)
{
Error_Handler();
}if (App_ThreadX_Init(memory_ptr) != TX_SUCCESS) { ... }
}else { ... }
if (tx_byte_pool_create(&fx_app_byte_pool, "Fx App memory pool", fx_byte_pool_buffer, FX_APP_MEM_POOL_SIZE) != TX_SUCCESS)
{
Error_Handler();
}if (tx_byte_pool_create(&fx_app_byte_pool, "Fx App memory pool", fx_byte_pool_buffer, FX_APP_MEM_POOL_SIZE) != TX_SUCCESS) { ... }
else
{
memory_ptr = (VOID *)&fx_app_byte_pool;
if (MX_FileX_Init(memory_ptr) != FX_SUCCESS)
{
Error_Handler();
}if (MX_FileX_Init(memory_ptr) != FX_SUCCESS) { ... }
}else { ... }
if (tx_byte_pool_create(&ux_host_app_byte_pool, "Ux App memory pool", ux_host_byte_pool_buffer, UX_HOST_APP_MEM_POOL_SIZE) != TX_SUCCESS)
{
Error_Handler();
}if (tx_byte_pool_create(&ux_host_app_byte_pool, "Ux App memory pool", ux_host_byte_pool_buffer, UX_HOST_APP_MEM_POOL_SIZE) != TX_SUCCESS) { ... }
else
{
memory_ptr = (VOID *)&ux_host_app_byte_pool;
if (MX_USBX_Host_Init(memory_ptr) != UX_SUCCESS)
{
Error_Handler();
}if (MX_USBX_Host_Init(memory_ptr) != UX_SUCCESS) { ... }
}else { ... }
}{ ... }
Private function prototypes