/**
 * \file
 * \brief StackFrame struct header
 *
 * \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
 *
 * \par 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/.
 */

#ifndef SOURCE_ARCHITECTURE_ARM_ARMV6_M_ARMV7_M_ARMV6_M_ARMV7_M_STACKFRAME_HPP_
#define SOURCE_ARCHITECTURE_ARM_ARMV6_M_ARMV7_M_ARMV6_M_ARMV7_M_STACKFRAME_HPP_

#include "ARMv6-M-ARMv7-M-ExceptionStackFrame.hpp"
#include "ARMv6-M-ARMv7-M-SoftwareStackFrame.hpp"

namespace distortos
{

namespace architecture
{

/// complete stack frame of thread for ARMv6-M and ARMv7-M
struct StackFrame
{
	/// stack frame created by software during context switch
	SoftwareStackFrame softwareStackFrame;
	/// stack frame created by hardware on exception entry
	ExceptionStackFrame exceptionStackFrame;
};

}	// namespace architecture

}	// namespace distortos

#endif	// SOURCE_ARCHITECTURE_ARM_ARMV6_M_ARMV7_M_ARMV6_M_ARMV7_M_STACKFRAME_HPP_
