distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
initializeStack.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_ARCHITECTURE_INITIALIZESTACK_HPP_
13 #define INCLUDE_DISTORTOS_ARCHITECTURE_INITIALIZESTACK_HPP_
14 
15 #include <utility>
16 
17 #include <cstddef>
18 
19 namespace distortos
20 {
21 
22 class Thread;
23 
24 namespace architecture
25 {
26 
47 std::pair<int, void*> initializeStack(void* buffer, size_t size, Thread& thread, void (& run)(Thread&),
48  void (* preTerminationHook)(Thread&), void (& terminationHook)(Thread&));
49 
50 } // namespace architecture
51 
52 } // namespace distortos
53 
54 #endif // INCLUDE_DISTORTOS_ARCHITECTURE_INITIALIZESTACK_HPP_
std::pair< int, void * > initializeStack(void *buffer, size_t size, Thread &thread, void(&run)(Thread &), void(*preTerminationHook)(Thread &), void(&terminationHook)(Thread &))
Architecture-specific stack initialization.
Definition: ARMv6-M-ARMv7-M-initializeStack.cpp:30
Top-level namespace of distortos project.
void thread(uint32_t value, bool &sharedResult)
Test thread.
Definition: ARMv7-M-FpuThreadTestCase.cpp:68