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
40
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
70
71
72
73
74
75
76
77
78
84
85
86
87
88
89
90
91
92
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
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 fx_byte_pool_buffer[FX_APP_MEM_POOL_SIZE];
static TX_BYTE_POOL fx_app_byte_pool;
Private variables
void Error_Handler(void);
/* ... */
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 { ... }
}{ ... }
Private function prototypes