distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
ARMv7-M-FpuSignalTestCase.cpp File Reference

FpuSignalTestCase class implementation for ARMv7-M. More...

Include dependency graph for ARMv7-M-FpuSignalTestCase.cpp:

Classes

struct  distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::Stage
 values used in single test stage More...
 
struct  distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::Phase
 description of single test phase More...
 

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::test
 Functional tests of distortos project.
 

Macros

#define ARMV7_M_FPU_SIGNAL_TEST_CASE_ENABLED
 configuration required by FpuSignalTestCase More...
 

Functions

void distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::disableFpuContext ()
 Disables FPU context for current thread by clearing FPCA bit in CONTROL register. More...
 
void distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::handler (const SignalInformation &signalInformation)
 Signal handler. More...
 
bool distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::isFpuContextActive ()
 Tests whether FPU context is active for current thread. More...
 
void distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::queueSignalWrapper (Thread &thread, const Stage &stage, const bool full, int &sharedRet)
 Test wrapper for Thread::queueSignal() that also modifies FPU registers. More...
 
int distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::queueSignalFromInterrupt (Thread &thread, const Stage &stage)
 Queues signal from interrupt (via software timer) to current thread. More...
 
int distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::queueSignalFromThread (Thread &thread, const Stage &stage)
 Queues signal from thread to non-current thread. More...
 

Variables

constexpr uint8_t distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::testSignalNumber {16}
 tested signal number More...
 
constexpr size_t distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::testThreadStackSize {512}
 size of stack for test thread, bytes More...
 
const Phase distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::phases []
 test phasese More...
 
const Stage distortos::test::anonymous_namespace{ARMv7-M-FpuSignalTestCase.cpp}::stages []
 test stages More...
 

Detailed Description

FpuSignalTestCase class implementation for ARMv7-M.

Author
Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Macro Definition Documentation

◆ ARMV7_M_FPU_SIGNAL_TEST_CASE_ENABLED

#define ARMV7_M_FPU_SIGNAL_TEST_CASE_ENABLED
Value:
__FPU_PRESENT == 1 && __FPU_USED == 1 && CONFIG_SIGNALS_ENABLE == 1 && \
CONFIG_MAIN_THREAD_SIGNAL_ACTIONS > 0 && CONFIG_MAIN_THREAD_QUEUED_SIGNALS > 0

configuration required by FpuSignalTestCase