distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::anonymous_namespace{ARMv7-M-FpuThreadTestCase.cpp} Namespace Reference

Functions

void thread (uint32_t value, bool &sharedResult)
 Test thread. More...
 
DynamicThread makeAndStartTestThread (const uint32_t value, bool &sharedResult)
 Makes and starts test thread. More...
 

Variables

constexpr uint32_t sequenceIterations {8}
 number of iterations of sequence in test thread More...
 
constexpr size_t testThreadStackSize {512}
 size of stack for test thread, bytes More...
 
constexpr size_t totalThreads {8}
 number of test threads More...
 

Function Documentation

◆ makeAndStartTestThread()

DynamicThread distortos::test::anonymous_namespace{ARMv7-M-FpuThreadTestCase.cpp}::makeAndStartTestThread ( const uint32_t  value,
bool &  sharedResult 
)

Makes and starts test thread.

Parameters
[in]valueis the first test value
[out]sharedResultis a reference to variable with shared result of the test
Returns
constructed and started DynamicThread object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread()

void distortos::test::anonymous_namespace{ARMv7-M-FpuThreadTestCase.cpp}::thread ( uint32_t  value,
bool &  sharedResult 
)

Test thread.

Saves test value to all FPU registers (including fpscr), causes context switch to next test thread and - after return - checks whether all modified registers still have the same value. This sequence is repeated sequenceIterations times with increasing test value (or until first failure).

In case of failure sharedResult is set to "false", otherwise it is not modified.

Parameters
[in]valueis the first test value
[out]sharedResultis a reference to variable with shared result of the test
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sequenceIterations

constexpr uint32_t distortos::test::anonymous_namespace{ARMv7-M-FpuThreadTestCase.cpp}::sequenceIterations {8}

number of iterations of sequence in test thread

◆ testThreadStackSize

constexpr size_t distortos::test::anonymous_namespace{ARMv7-M-FpuThreadTestCase.cpp}::testThreadStackSize {512}

size of stack for test thread, bytes

◆ totalThreads

constexpr size_t distortos::test::anonymous_namespace{ARMv7-M-FpuThreadTestCase.cpp}::totalThreads {8}

number of test threads