distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
stackGuardSize.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_STACKGUARDSIZE_HPP_
13 #define INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_STACKGUARDSIZE_HPP_
14 
16 
17 #include <cstddef>
18 
19 namespace distortos
20 {
21 
22 namespace internal
23 {
24 
26 constexpr size_t stackGuardSize {(DISTORTOS_STACK_GUARD_SIZE + DISTORTOS_ARCHITECTURE_STACK_ALIGNMENT - 1) /
27  DISTORTOS_ARCHITECTURE_STACK_ALIGNMENT * DISTORTOS_ARCHITECTURE_STACK_ALIGNMENT};
28 
29 } // namespace internal
30 
31 } // namespace distortos
32 
33 #endif // INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_STACKGUARDSIZE_HPP_
distortos configuration
Top-level namespace of distortos project.
Definition: buttons.hpp:33
constexpr size_t stackGuardSize
size of "stack guard", bytes
Definition: stackGuardSize.hpp:26