F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Cpu.cpp
Go to the documentation of this file.
1// ======================================================================
2// \title Os/Stub/Cpu.cpp
3// \brief stub implementation for Os::Cpu
4// ======================================================================
5#include <Os/Stub/Cpu.hpp>
6
7namespace Os {
8namespace Stub {
9namespace Cpu {
10
12 cpu_count = 0;
13 return Status::ERROR;
14}
15
17 ticks.total = 1;
18 ticks.used = 1;
19 return Status::ERROR;
20}
21
23 return &this->m_handle;
24}
25
26} // namespace Cpu
27} // namespace Stub
28} // namespace Os
PlatformSizeType FwSizeType
Definition FpConfig.h:35
Cpu variable handle parent.
Definition Cpu.hpp:13
cpu implementation
Definition Cpu.hpp:60
Status _getCount(FwSizeType &cpu_count) override
Request the count of the CPUs detected by the system.
Definition Cpu.cpp:11
Status _getTicks(Ticks &ticks, FwSizeType cpu_index) override
Get the CPU tick information for a given CPU.
Definition Cpu.cpp:16
CpuHandle * getHandle() override
returns the raw console handle
Definition Cpu.cpp:22
Status
Generic OK/ERROR status.
Definition Os.hpp:25
Generic used/total struct.
Definition Os.hpp:31
FwSizeType total
Total amount.
Definition Os.hpp:33
FwSizeType used
Used amount.
Definition Os.hpp:32