µOS++ IIIe Reference
7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os-types.h
Go to the documentation of this file.
1
/*
2
* This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3
* Copyright (c) 2016-2025 Liviu Ionescu. All rights reserved.
4
*
5
* Permission to use, copy, modify, and/or distribute this software
6
* for any purpose is hereby granted, under the terms of the MIT license.
7
*
8
* If a copy of the license was not distributed with this file, it can
9
* be obtained from https://opensource.org/licenses/mit.
10
*/
11
12
#ifndef CMSIS_PLUS_RTOS_OS_TYPES_H_
13
#define CMSIS_PLUS_RTOS_OS_TYPES_H_
14
15
// ----------------------------------------------------------------------------
16
17
#if defined(__cplusplus)
18
19
// This file is included at the end of os-decls.h.
20
21
// Include the application specific definitions.
22
#if defined(OS_USE_OS_APP_CONFIG_H)
23
#include <cmsis-plus/os-app-config.h>
24
#endif
25
26
#include <memory>
27
28
// ----------------------------------------------------------------------------
29
30
#pragma GCC diagnostic push
31
#if defined(__clang__)
32
#pragma clang diagnostic ignored "-Wc++98-compat"
33
#endif
34
35
// ----------------------------------------------------------------------------
36
37
namespace
os
38
{
39
namespace
rtos
40
{
41
namespace
memory
42
{
43
44
#if !defined(OS_INCLUDE_RTOS_CUSTOM_ALLOCATOR) || defined(__DOXYGEN__)
45
52
template
<
typename
T>
53
using
allocator
=
allocator_stateless_default_resource<T>
;
54
55
#endif
56
57
}
/* namespace memory */
58
}
/* namespace rtos */
59
}
/* namespace os */
60
61
#pragma GCC diagnostic pop
62
63
// ----------------------------------------------------------------------------
64
65
#if defined(OS_INCLUDE_RTOS_CUSTOM_TYPES)
66
#include <cmsis-plus/rtos/os-app-types.h>
67
#endif
68
69
// ----------------------------------------------------------------------------
70
71
#endif
/* __cplusplus */
72
73
// ----------------------------------------------------------------------------
74
75
#endif
/* CMSIS_PLUS_RTOS_OS_TYPES_H_ */
os::rtos::memory::allocator_stateless_default_resource
Standard allocator based on the RTOS system default memory manager.
Definition
os-memory.h:538
os
System namespace.
include
cmsis-plus
rtos
os-types.h
Generated by
1.9.7