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
71
72
73
74
75
76
77
78
79
85
86
87
88
89
90
91
92
93
99
100
101
102
103
104
105
106
112
113
114
115
116
117
118
119
120
126
127
128
129
130
131
132
133
134
135
136
137
/* ... */
#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 nx_byte_pool_buffer[NX_APP_MEM_POOL_SIZE];
static TX_BYTE_POOL nx_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(&nx_app_byte_pool, "Nx App memory pool", nx_byte_pool_buffer, NX_APP_MEM_POOL_SIZE) != TX_SUCCESS)
{
Error_Handler();
}if (tx_byte_pool_create(&nx_app_byte_pool, "Nx App memory pool", nx_byte_pool_buffer, NX_APP_MEM_POOL_SIZE) != TX_SUCCESS) { ... }
else
{
memory_ptr = (VOID *)&nx_app_byte_pool;
if (MX_NetXDuo_Init(memory_ptr) != NX_SUCCESS)
{
Error_Handler();
}if (MX_NetXDuo_Init(memory_ptr) != NX_SUCCESS) { ... }
}else { ... }
}{ ... }
Private function prototypes