void run(int argc, char *argv[]) { MathlibInit(); gVars->HRrefNum = SonyHRInit(8); if (gVars->HRrefNum == sysInvalidRefNum) PalmHRInit(8); gVars->slkRefNum= SilkInit(&(gVars->slkVersion)); gVars->screenPitch = StuffsGetPitch(gVars->screenFullWidth); // create file for printf, warnings, etc... StdioInit(gVars->VFS.volRefNum, "/PALM/Programs/ScummVM/scumm.log"); if (gVars->indicator.showLED) StdioSetLedProc(DrawStatus); StdioSetCacheSize(gVars->VFS.cacheSize); gUnistdCWD = SCUMMVM_SAVEPATH; // init hardware if (HWR_INIT(INIT_GOLCD)) GoLCDInit(&gGoLcdH); if (HWR_INIT(INIT_PA1LIB)) Pa1libInit(gVars->palmVolume); if (HWR_INIT(INIT_VIBRATOR)) gVars->vibrator = RumbleInit(); PalmInit(HWR_GET()); if (!gVars->vibrator) HWR_RST(INIT_VIBRATOR); GlbOpen(); // be sure to have a VG void *__ptr = StuffsForceVG(); DO_EXIT( palm_main(argc, argv); )
void PlatformInit() { StdioInit(); ERRORassert(); TimerInit(); ERRORassert(); FileInit(); if (IsError) { ERRORprint(); fprintf(stderr, "Error during FileInit, no File I/O\n"); } }
// Sets up a simple console through UART0 void InitializeUART(void) { // Enable GPIO port A which is used for UART0 pins. SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); // Configure the pin muxing for UART0 functions on port A0 and A1. GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); // Select the alternate (UART) function for these pins. GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); // Initialize the UART for console I/O. StdioInit(0); }