CP_SaveContext

C Specification

#include <nitro/cp.h>
void CP_SaveContext( CPContext* context );

Description

This function stores the status (context) for the current divider and square root calculator in a specified structure.

To restore the saved context, use CP_RestoreContext. When you use a divider or square root calculator inside an interrupt, save the divider and square root calculator contexts prior to use by these functions.

During a thread switch, the context are also automatically switched. Therefore, there is no need for this function to explicitly run a save process.

Arguments

Pointer to the region where the divider, square root calculator context will be stored.

Return Values

None

See Also

CP_RestoreContext, CP_SetDiv*, CP_SetSqrt*

Revision History

05/06/2004 Initial Version