PCDOSSave Retum

void PC_DOSSaveReturn (void);

PC_DOSSaveRetum () allows your application to save the processor's important registers in order to properly return to DOS before you actually start multitasking with (iC/OS-II. You would normally call this function from main () as shown in the example code provided below.

Arguments

None

Return Value

None

Notes/Warnings

You must call this function prior to setting jiC/OS-II's context switch vector (as shown below).

Example void main (void)

OSInitO ;

/* Initialize uC/OS-II

PC_DOSSaveReturn();

/* Save DOS's environment

PC_VectSet(uCOS, OSCtxSw); /* uC/OS-II's context switch vector */ OSTaskCreate(-);

OSStart();

/* Start multitasking

Was this article helpful?

0 0

Post a comment