F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Os.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Os.hpp
3 // \brief common definitions for the OSAL layer
4 // ======================================================================
5 #ifndef OS_OS_HPP_
6 #define OS_OS_HPP_
7 #include "FpConfig.h"
8 
21 
22 namespace Os {
23 namespace Generic {
25 enum Status {
28 };
29 
31 struct UsedTotal {
34 };
35 
36 }
37 
41 void init();
42 
43 } // namespace Os
44 #endif
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:30
C-compatible configuration header for fprime configuration.
#define FW_FILE_HANDLE_MAX_SIZE
Maximum size of a handle for OS queues.
Definition: FpConfig.h:400
#define FW_CONSOLE_HANDLE_MAX_SIZE
Maximum size of a handle for OS queues.
Definition: FpConfig.h:392
#define FW_QUEUE_HANDLE_MAX_SIZE
Maximum size of a handle for OS queues.
Definition: FpConfig.h:408
PlatformSizeType FwSizeType
Definition: FpConfig.h:35
#define FW_CPU_HANDLE_MAX_SIZE
Maximum size of a handle for OS cpu.
Definition: FpConfig.h:432
#define FW_MEMORY_HANDLE_MAX_SIZE
Maximum size of a handle for OS memory.
Definition: FpConfig.h:436
#define FW_TASK_HANDLE_MAX_SIZE
Maximum size of a handle for OS queues.
Definition: FpConfig.h:396
#define FW_RAW_TIME_HANDLE_MAX_SIZE
Maximum size of a handle for OS::RawTime objects.
Definition: FpConfig.h:420
#define FW_DIRECTORY_HANDLE_MAX_SIZE
Maximum size of a handle for OS resources (files, queues, locks, etc.)
Definition: FpConfig.h:412
#define FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE
Maximum size of a handle for OS condition variables.
Definition: FpConfig.h:428
#define FW_MUTEX_HANDLE_MAX_SIZE
Maximum size of a handle for OS queues.
Definition: FpConfig.h:404
#define FW_FILESYSTEM_HANDLE_MAX_SIZE
Maximum size of a handle for OS resources (files, queues, locks, etc.)
Definition: FpConfig.h:416
U8 RawTimeHandleStorage[FW_RAW_TIME_HANDLE_MAX_SIZE]
Definition: Os.hpp:20
U8 DirectoryHandleStorage[FW_DIRECTORY_HANDLE_MAX_SIZE]
Definition: Os.hpp:15
U8 ConsoleHandleStorage[FW_CONSOLE_HANDLE_MAX_SIZE]
Definition: Os.hpp:11
U8 TaskHandleStorage[FW_TASK_HANDLE_MAX_SIZE]
Definition: Os.hpp:14
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Definition: Os.hpp:17
U8 FileSystemHandleStorage[FW_FILESYSTEM_HANDLE_MAX_SIZE]
Definition: Os.hpp:16
U8 MutexHandleStorage[FW_MUTEX_HANDLE_MAX_SIZE]
Definition: Os.hpp:12
U8 FileHandleStorage[FW_FILE_HANDLE_MAX_SIZE]
Definition: Os.hpp:13
U8 QueueHandleStorage[FW_QUEUE_HANDLE_MAX_SIZE]
Storage type for OSAL handles.
Definition: Os.hpp:10
U8 MemoryHandleStorage[FW_MEMORY_HANDLE_MAX_SIZE]
Definition: Os.hpp:19
U8 CpuHandleStorage[FW_CPU_HANDLE_MAX_SIZE]
Definition: Os.hpp:18
Status
Generic OK/ERROR status.
Definition: Os.hpp:25
@ OP_OK
Operation succeeded.
Definition: Os.hpp:26
@ ERROR
Operation failed.
Definition: Os.hpp:27
void init()
Initialize the OS Abstraction Layer (OSAL)
Definition: Os.cpp:15
Generic used/total struct.
Definition: Os.hpp:31
FwSizeType total
Total amount.
Definition: Os.hpp:33
FwSizeType used
Used amount.
Definition: Os.hpp:32