Select one of the symbols to view example projects that use it.
 
Outline
#define __APP_THREADX_H__
Includes
#include "tx_api.h"
Private includes
#include "main.h"
Exported types
Exported constants
Exported macro
Exported functions prototypes
App_ThreadX_Init(void *);
MX_ThreadX_Init();
#define USE_TX_MUTEX
#define APP_SYNC_TYPE
#define TX_SYNC_ERROR
#define APP_SYNC_GET
#define APP_SYNC_PUT
#define APP_SYNC_CREATE
#define APP_SYNC_TYPE
#define TX_SYNC_ERROR
#define APP_SYNC_GET
#define APP_SYNC_PUT
#define APP_SYNC_CREATE
#define APP_STACK_SIZE
#define APP_BYTE_POOL_SIZE
#define THREAD_ONE_PRIO
#define THREAD_ONE_PREEMPTION_THRESHOLD
#define THREAD_TWO_PRIO
#define THREAD_TWO_PREEMPTION_THRESHOLD
#define DEFAULT_TIME_SLICE
Files
loading...
SourceVuSTM32 Libraries and SamplesTx_Thread_SyncInc/app_threadx.h
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file app_threadx.h * @author MCD Application Team * @brief ThreadX applicative header 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 */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __APP_THREADX_H__ #define __APP_THREADX_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "tx_api.h" Includes /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "main.h" /* USER CODE END Includes */ Private includes /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ Exported types /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ Exported constants /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ Exported macro /* Exported functions prototypes ---------------------------------------------*/ UINT App_ThreadX_Init(VOID *memory_ptr); void MX_ThreadX_Init(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ Exported functions prototypes /* Private defines -----------------------------------------------------------*/ /* USER CODE BEGIN PD */ #define USE_TX_MUTEX /*#define USE_TX_SEMAPHORE*/ #if defined(USE_TX_MUTEX) && defined(USE_TX_SEMAPHORE) #error "Only one synchronization API must be enabled" #endif #ifdef USE_TX_MUTEX /* Use TX_MUTEX as sync object */ #define APP_SYNC_TYPE TX_MUTEX #define TX_SYNC_ERROR TX_MUTEX_ERROR #define APP_SYNC_GET tx_mutex_get #define APP_SYNC_PUT tx_mutex_put #define APP_SYNC_CREATE(a) tx_mutex_create((a),"App Mutex", TX_NO_INHERIT) 5 defines /* ... */#else /* define TX_SEMAPHORE as sync object*/ #define APP_SYNC_TYPE TX_SEMAPHORE #define TX_SYNC_ERROR TX_SEMAPHORE_ERROR #define APP_SYNC_GET tx_semaphore_get #define APP_SYNC_PUT(a) tx_semaphore_ceiling_put((a), 1) #define APP_SYNC_CREATE(a) tx_semaphore_create((a),"App Binary Semaphore", 1) 5 defines#endif/* ... */ #define APP_STACK_SIZE 512 #define APP_BYTE_POOL_SIZE (2 * 1024) #define THREAD_ONE_PRIO 10 #define THREAD_ONE_PREEMPTION_THRESHOLD THREAD_ONE_PRIO #define THREAD_TWO_PRIO 10 #define THREAD_TWO_PREEMPTION_THRESHOLD THREAD_TWO_PRIO #define DEFAULT_TIME_SLICE 5 7 defines/* USER CODE END PD */ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ #ifdef __cplusplus }extern "C" { ... } #endif/* ... */ #endif /* __APP_THREADX_H__ */
Details