File tree Expand file tree Collapse file tree
CMSIS/RTOS2/FreeRTOS/Include1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 *
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
147153#endif
148154
149155#include "cmsis_os2.h"
150- #include "FreeRTOS.h"
151156
152157#ifdef __cplusplus
153158extern "C"
You can’t perform that action at this time.
0 commit comments