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