Select one of the symbols to view example projects that use it.
 
Outline
#define __APP_THREADX_H__
Private includes
#include "main.h"
#include "cmsis_os2.h"
Exported types
Exported constants
Exported macro
Exported functions prototypes
App_TX_CmsisRTOS_Init();
#define USE_TX_MUTEX
#define APP_SYNC_TYPE
#define APP_SYNC_GET
#define APP_SYNC_PUT
#define APP_SYNC_CREATE
#define APP_SYNC_TYPE
#define APP_SYNC_GET
#define APP_SYNC_PUT
#define APP_SYNC_CREATE
#define DEFAULT_WAIT_TIME
#define APP_THREAD_STACK_SIZE
Files
loading...
CodeScopeSTM32 Libraries and SamplesTx_CMSIS_WrapperInc/app_tx_cmsisrtos.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file ThreadX/Tx_CMSIS_Wrapper/CM4/Inc/app_tx_cmsisrtos.h * @author MCD Application Team * @brief ThreadX CMSIS RTOS Wrapper 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 ------------------------------------------------------------------*/ /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "main.h" #include "cmsis_os2.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 ---------------------------------------------*/ uint32_t App_TX_CmsisRTOS_Init(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ Exported functions prototypes /* Private defines -----------------------------------------------------------*/ /* USER CODE BEGIN Private defines */ #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 osMutexId_t as sync object */ #define APP_SYNC_TYPE osMutexId_t #define APP_SYNC_GET osMutexAcquire #define APP_SYNC_PUT osMutexRelease #define APP_SYNC_CREATE() osMutexNew(NULL) /* ... */ #else /* define osSemaphoreId_t as sync object*/ #define APP_SYNC_TYPE osSemaphoreId_t #define APP_SYNC_GET osSemaphoreAcquire #define APP_SYNC_PUT osSemaphoreRelease #define APP_SYNC_CREATE() osSemaphoreNew(0, 1, NULL) /* ... */#endif #define DEFAULT_WAIT_TIME 5 #define APP_THREAD_STACK_SIZE 512 /* USER CODE END Private defines */ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ #ifdef __cplusplus }extern "C" { ... } #endif/* ... */ #endif /* __APP_THREADX_H__ */