RTI Connext DDS Micro
Version 2.4.11
Main Page
Related Pages
Manuals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
osapi_os.h
Go to the documentation of this file.
1
/*
2
* FILE: osapi_config.h - OS configuration common for all OSs
3
*
4
* (c) Copyright, Real-Time Innovations, 2012-2016
5
*
6
* All rights reserved.
7
*
8
* No duplications, whole or partial, manual or electronic, may be made
9
* without express written permission. Any such copies, or
10
* revisions thereof, must display this notice unaltered.
11
* This code contains trade secrets of Real-Time Innovations, Inc.
12
*
13
* Modification History
14
* --------------------
15
* 28jul2016,tk Refactored from osapi_config.h
16
*/
17
/*ce \file
18
* \brief OS API Configuration
19
*/
20
#ifndef OSAPI_OS_H
21
#define OSAPI_OS_H
22
23
#ifndef OSAPI_OS_DEF_H
24
/* If the platform has not been specified, attempt to determine it.
25
*/
26
#if defined(__APPLE__) && defined(__MACH__)
27
#define OSAPI_OS_DEF_H "osapi_os_posix.h"
28
#elif defined(__linux__)
29
#define OSAPI_OS_DEF_H "osapi_os_posix.h"
30
#elif defined(__VOS__)
31
#define OSAPI_OS_DEF_H "osapi_os_posix.h"
32
#elif defined(_MSC_VER) || defined(WIN32)
33
#define OSAPI_OS_DEF_H "osapi_os_windows.h"
34
#elif defined(__vxworks)
35
#define OSAPI_OS_DEF_H "osapi_os_vxworks.h"
36
#elif defined(__QNXNTO__)
37
#define OSAPI_OS_DEF_H "osapi_os_posix.h"
38
#else
39
#error "Unable to detect OS. Please define OSAPI_OS_DEF_H."
40
#endif
41
#endif
42
43
#include OSAPI_OS_DEF_H
44
45
#if !defined(OSAPI_ThreadId) && !defined(OSAPI_ThreadHandle)
46
#error "OSAPI_ThreadId and/or OSAPI_ThreadHandle not defined in "##OSAPI_OS_DEF_H
47
#endif
48
49
/* Linker section definitions:
50
* -Any data in bss_sdram will be initially zeroed.
51
* -Any data in data_sdram will be initialized if an initializer is provided.
52
*/
53
#ifndef LINK_SECTION_DATA_SDRAM
54
#define LINK_SECTION_DATA_SDRAM
55
#endif
56
#ifndef LINK_SECTION_BSS_SDRAM
57
#define LINK_SECTION_BSS_SDRAM
58
#endif
59
60
/* This is to maintain backwards compatability with Micro <= 2.4.8 */
61
#ifndef OSAPI_ProcessId
62
#define OSAPI_ProcessId RTI_UINT32
63
#endif
64
65
#endif
/* osapi_os_h */
RTI Connext DDS Micro Version 2.4.11
Copyright © Mon Jul 23 2018
Real-Time Innovations, Inc