Skip to content

Commit 086f219

Browse files
committed
RTOS1 identifier (#24) and osPoolDef compiler error (#25) fixed.
1 parent 03831c5 commit 086f219

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

CMSIS/RTOS2/FreeRTOS/Include1/cmsis_os.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017 ARM Limited. All rights reserved.
2+
* Copyright (c) 2013-2019 ARM Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -122,12 +122,18 @@
122122

123123
#ifndef CMSIS_OS_H_
124124
#define CMSIS_OS_H_
125+
126+
#include "FreeRTOS.h"
127+
#include "task.h"
128+
129+
#define RTOS_ID_n ((tskKERNEL_VERSION_MAJOR << 16) | (tskKERNEL_VERSION_MINOR))
130+
#define RTOS_ID_s ("FreeRTOS " tskKERNEL_VERSION_NUMBER)
131+
132+
#define osCMSIS 0x20001U ///< API version (main[31:16].sub[15:0])
133+
134+
#define osCMSIS_FreeRTOS RTOS_ID_n ///< RTOS identification and version (main[31:16].sub[15:0])
125135

126-
#define osCMSIS 0x20001U ///< API version (main[31:16].sub[15:0])
127-
128-
#define osCMSIS_FreeRTOS 0x90000U ///< RTOS identification and version (main[31:16].sub[15:0])
129-
130-
#define osKernelSystemId "FreeRTOS V9.0.0" ///< RTOS identification string
136+
#define osKernelSystemId RTOS_ID_s ///< RTOS identification string
131137

132138
#define osFeature_MainThread 0 ///< main thread 1=main can be thread, 0=not available
133139
#define osFeature_Signals 24U ///< maximum number of Signal Flags available per thread
@@ -147,7 +153,6 @@
147153
#endif
148154

149155
#include "cmsis_os2.h"
150-
#include "FreeRTOS.h"
151156

152157
#ifdef __cplusplus
153158
extern "C"

0 commit comments

Comments
 (0)