osCreateViManager
Creates VI manager
#include <ultra64.h> /* os.h */
void osCreateViManager(OSPri pri);
None.
The VI manager is a system thread that must be created and invoked at the beginning of the application. To do this, call osCreateViManager() for the VI manager to allow vertical retrace interrupt to occur at an early stage. Usually, this priority should be set to OS_PRIORITY_VIMGR. The VI manager is designed to service both the VI interrupt (OS_EVENT_VI) and CPU counter interrupt(OS_EVENT_COUNTER) in the most efficient manner. Each interrupting event can be performed using osViSetEvent or osSetTimer.
// Launch VI Manager & black out
osCreateViManager(OS_PRIORITY_VIMGR);
#if (SCREEN_WD==320)&&(SCREEN_HT==240) // Settings for low-resolution
osViSetMode(&osViModeNtscLan1);
#elif (SCREEN_WD==640)&&(SCREEN_HT==480) // Settings for high-resolution
osViSetMode(&osViModeNtscHaf1);
#else
#error "Illegal Screen size"
#endif
osViBlack(TRUE);