Select one of the symbols to view example projects that use it.
 
Outline
Includes
#include "app_azure_rtos.h"
Private includes
Private typedef
Private define
Private macro
Private variables
tx_byte_pool_buffer
tx_app_byte_pool
nx_byte_pool_buffer
nx_app_byte_pool
Private function prototypes
tx_application_define(void *)
Files
loading...
CodeScopeSTM32 Libraries and SamplesNx_TCP_Echo_ServerAZURE_RTOS/App/app_azure_rtos.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file app_azure_rtos.c * @author MCD Application Team * @brief azure_rtos application implementation file ****************************************************************************** * @attention * * Copyright (c) 2021 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "app_azure_rtos.h" Includes /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ Private includes /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ Private typedef /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ Private define /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ Private macro /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN TX_Pool_Buffer */ /* USER CODE END TX_Pool_Buffer */ static UCHAR tx_byte_pool_buffer[TX_APP_MEM_POOL_SIZE]; static TX_BYTE_POOL tx_app_byte_pool; /* USER CODE BEGIN NX_Pool_Buffer */ /* USER CODE END NX_Pool_Buffer */ static UCHAR nx_byte_pool_buffer[NX_APP_MEM_POOL_SIZE]; static TX_BYTE_POOL nx_app_byte_pool; /* USER CODE BEGIN PV */ /* USER CODE END PV */ Private variables /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /** * @brief Define the initial system. * @param first_unused_memory : Pointer to the first unused memory * @retval None *//* ... */ VOID tx_application_define(VOID *first_unused_memory) { /* USER CODE BEGIN tx_application_define */ /* USER CODE END tx_application_define */ 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) { /* USER CODE BEGIN TX_Byte_Pool_Error */ Error_Handler(); /* USER CODE END TX_Byte_Pool_Error */ }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 { /* USER CODE BEGIN TX_Byte_Pool_Success */ /* USER CODE END TX_Byte_Pool_Success */ memory_ptr = (VOID *)&tx_app_byte_pool; if (App_ThreadX_Init(memory_ptr) != TX_SUCCESS) { /* USER CODE BEGIN App_ThreadX_Init_Error */ Error_Handler(); /* USER CODE END App_ThreadX_Init_Error */ }if (App_ThreadX_Init(memory_ptr) != TX_SUCCESS) { ... } /* USER CODE BEGIN App_ThreadX_Init_Success */ /* USER CODE END App_ThreadX_Init_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) { /* USER CODE BEGIN NX_Byte_Pool_Error */ Error_Handler(); /* USER CODE END NX_Byte_Pool_Error */ }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 { /* USER CODE BEGIN TX_Byte_Pool_Success */ /* USER CODE END TX_Byte_Pool_Success */ memory_ptr = (VOID *)&nx_app_byte_pool; if (MX_NetXDuo_Init(memory_ptr) != NX_SUCCESS) { /* USER CODE BEGIN MX_NetXDuo_Init_Error */ Error_Handler(); /* USER CODE END MX_NetXDuo_Init_Error */ }if (MX_NetXDuo_Init(memory_ptr) != NX_SUCCESS) { ... } /* USER CODE BEGIN MX_NetXDuo_Init_Success */ /* USER CODE END MX_NetXDuo_Init_Success */ }else { ... } }{ ... } /* USER CODE BEGIN 0 */ Private function prototypes /* USER CODE END 0 */