comparison src/cs/system/main/create_RVtasks.c @ 237:8d5373b24f5f

create_RVtasks.c: white space fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 May 2021 04:34:12 +0000
parents 4e78acac3d88
children 8f16e0663737
comparison
equal deleted inserted replaced
236:3c790d29748e 237:8d5373b24f5f
351 /* initialize TRACE SWE */ 351 /* initialize TRACE SWE */
352 rv_start_swe_and_check (RVT_USE_ID, "RVT"); 352 rv_start_swe_and_check (RVT_USE_ID, "RVT");
353 #endif 353 #endif
354 354
355 #ifdef RVM_I2C_SWE 355 #ifdef RVM_I2C_SWE
356 rv_start_swe_and_check (I2C_USE_ID, "I2C"); 356 rv_start_swe_and_check (I2C_USE_ID, "I2C");
357 #endif 357 #endif
358 358
359 #ifdef RVM_DMA_SWE 359 #ifdef RVM_DMA_SWE
360 rv_start_swe_and_check (DMA_USE_ID, "DMA"); 360 rv_start_swe_and_check (DMA_USE_ID, "DMA");
361 #endif 361 #endif
362 362
363 #ifdef RVM_DMG_SWE 363 #ifdef RVM_DMG_SWE
364 rv_start_swe_and_check (DMG_USE_ID, "DMG"); 364 rv_start_swe_and_check (DMG_USE_ID, "DMG");
365 #endif 365 #endif
366 366
367 #ifdef RVM_NAN_SWE 367 #ifdef RVM_NAN_SWE
368 rv_start_swe_and_check (NAN_USE_ID, "NAN"); 368 rv_start_swe_and_check (NAN_USE_ID, "NAN");
369 #endif 369 #endif
370 370
371 #ifdef RVM_MC_SWE 371 #ifdef RVM_MC_SWE
372 rv_start_swe_and_check (MC_USE_ID, "MC"); 372 rv_start_swe_and_check (MC_USE_ID, "MC");
373 #endif 373 #endif
374 374
375 #ifdef RVM_FFS_SWE 375 #ifdef RVM_FFS_SWE
376 /* initialize FFS SWE */ 376 /* initialize FFS SWE */
377 rv_start_swe_and_check (FFS_USE_ID, "FFS"); 377 rv_start_swe_and_check (FFS_USE_ID, "FFS");
415 #ifdef RVM_LCD_SWE 415 #ifdef RVM_LCD_SWE
416 /* initialize LCD SWE */ 416 /* initialize LCD SWE */
417 rv_start_swe_and_check (LCD_USE_ID, "LCD"); 417 rv_start_swe_and_check (LCD_USE_ID, "LCD");
418 #endif 418 #endif
419 419
420
421 #ifdef RVM_ETM_SWE 420 #ifdef RVM_ETM_SWE
422 /* initialize ETM SWE */ 421 /* initialize ETM SWE */
423 rv_start_swe_and_check (ETM_USE_ID, "ETM"); 422 rv_start_swe_and_check (ETM_USE_ID, "ETM");
424 #endif 423 #endif
425 424
426 #ifdef RVM_TTY_SWE 425 #ifdef RVM_TTY_SWE
427 /* initialize TTY SWE */ 426 /* initialize TTY SWE */
428 rv_start_swe_and_check (TTY_USE_ID, "TTY"); 427 rv_start_swe_and_check (TTY_USE_ID, "TTY");
429 #endif 428 #endif
430
431 429
432 #ifdef RVM_AUDIO_MAIN_SWE 430 #ifdef RVM_AUDIO_MAIN_SWE
433 /* initialize AUDIO SWE */ 431 /* initialize AUDIO SWE */
434 rv_start_swe_and_check (AUDIO_USE_ID, "AUDIO"); 432 rv_start_swe_and_check (AUDIO_USE_ID, "AUDIO");
435 #endif 433 #endif
471 rv_start_swe_and_check (LLS_USE_ID, "LLS"); 469 rv_start_swe_and_check (LLS_USE_ID, "LLS");
472 #endif 470 #endif
473 471
474 #ifdef RVM_TUT_SWE 472 #ifdef RVM_TUT_SWE
475 /* initialize TUT SWE */ 473 /* initialize TUT SWE */
476 // rv_start_swe_and_check (TUT_USE_ID, "TUT"); 474 // rv_start_swe_and_check (TUT_USE_ID, "TUT");
477 #endif 475 #endif
478 476
479 #ifdef RVM_RGUI_SWE 477 #ifdef RVM_RGUI_SWE
480 /* initialize RGUI SWE */ 478 /* initialize RGUI SWE */
481 rv_start_swe_and_check (RGUI_USE_ID, "RGUI"); 479 rv_start_swe_and_check (RGUI_USE_ID, "RGUI");
482 #endif 480 #endif
483 481
484 #ifdef RVM_ATP_SWE 482 #ifdef RVM_ATP_SWE
485 /* initialize ATP SWE */ 483 /* initialize ATP SWE */
486 rv_start_swe_and_check (ATP_USE_ID, "ATP"); 484 rv_start_swe_and_check (ATP_USE_ID, "ATP");
487 #endif 485 #endif
488 486
489 /* 487 /*
490 * FreeCalypso: the main.lib:Create_RVtasks.obj binary blob we got with our 488 * FreeCalypso: the main.lib:Create_RVtasks.obj binary blob we got with our
491 * TCS211 semi-src does not start MKS, even though the SWE itself is enabled 489 * TCS211 semi-src does not start MKS, even though the SWE itself is enabled
492 * in the build system and pulled into the link. 490 * in the build system and pulled into the link.
493 */ 491 */
494 #if 0 492 #if 0
495 #ifdef RVM_MKS_SWE 493 #ifdef RVM_MKS_SWE
496 rv_start_swe_and_check (MKS_USE_ID, "MKS"); 494 rv_start_swe_and_check (MKS_USE_ID, "MKS");
497 #endif 495 #endif
498 #endif 496 #endif
499 497
500 #ifdef RVM_IMG_SWE 498 #ifdef RVM_IMG_SWE
501 rv_start_swe_and_check (IMG_USE_ID, "IMG"); 499 rv_start_swe_and_check (IMG_USE_ID, "IMG");
502 #endif 500 #endif
503 501
504 #ifdef RVM_GBI_SWE 502 #ifdef RVM_GBI_SWE
505 rv_start_swe_and_check (GBI_USE_ID, "GBI"); 503 rv_start_swe_and_check (GBI_USE_ID, "GBI");
506 #endif 504 #endif
507 505
508 #ifdef RVM_CAMD_SWE 506 #ifdef RVM_CAMD_SWE
509 rv_start_swe_and_check (CAMD_USE_ID, "CAMD"); 507 rv_start_swe_and_check (CAMD_USE_ID, "CAMD");
510 #endif 508 #endif
511 509
512 #ifdef RVM_USB_SWE 510 #ifdef RVM_USB_SWE
513 /* initialize USB SWE */ 511 /* initialize USB SWE */
514 rv_start_swe_and_check (USB_USE_ID, "USB"); 512 rv_start_swe_and_check (USB_USE_ID, "USB");
515 #endif 513 #endif
516 514
517 #ifdef RVM_CAMA_SWE 515 #ifdef RVM_CAMA_SWE
518 rv_start_swe_and_check (CAMA_USE_ID, "CAMA"); 516 rv_start_swe_and_check (CAMA_USE_ID, "CAMA");
519 #endif 517 #endif
520 518
521 #ifdef RVM_MFW_SWE 519 #ifdef RVM_MFW_SWE
522 /* initialize MFW SWE */ 520 /* initialize MFW SWE */
523 rv_start_swe_and_check (MFW_USE_ID, "MFW"); 521 rv_start_swe_and_check (MFW_USE_ID, "MFW");
528 rv_start_swe_and_check (SMBS_USE_ID, "SMBS"); 526 rv_start_swe_and_check (SMBS_USE_ID, "SMBS");
529 #endif 527 #endif
530 528
531 #ifdef RVM_USBFAX_SWE 529 #ifdef RVM_USBFAX_SWE
532 /* initialize USB SWE */ 530 /* initialize USB SWE */
533 rv_start_swe_and_check (USBFAX_USE_ID, "USBFAX"); 531 rv_start_swe_and_check (USBFAX_USE_ID, "USBFAX");
534 #endif 532 #endif
535 533
536 #ifdef RVM_USBTRC_SWE 534 #ifdef RVM_USBTRC_SWE
537 /* initialize USBTRC SWE */ 535 /* initialize USBTRC SWE */
538 rv_start_swe_and_check (USBTRC_USE_ID, "USBTRC"); 536 rv_start_swe_and_check (USBTRC_USE_ID, "USBTRC");
539 #endif 537 #endif
540 538
541 #ifdef RVM_USBMS_SWE 539 #ifdef RVM_USBMS_SWE
542 /* initialize USBMS SWE */ 540 /* initialize USBMS SWE */
543 rv_start_swe_and_check (USBMS_USE_ID, "USBMS"); 541 rv_start_swe_and_check (USBMS_USE_ID, "USBMS");
544 #endif 542 #endif
545 543
546 #ifdef RVM_RFS_SWE 544 #ifdef RVM_RFS_SWE
547 /* initialize RFS SWE */ 545 /* initialize RFS SWE */
548 rv_start_swe_and_check (RFS_USE_ID, "RFS"); 546 rv_start_swe_and_check (RFS_USE_ID, "RFS");
549 #endif 547 #endif
550
551 548
552 #ifdef RVM_CCI_SWE 549 #ifdef RVM_CCI_SWE
553 /* initialize CCI SWE */ 550 /* initialize CCI SWE */
554 rv_start_swe_and_check (CCI_USE_ID, "CCI"); 551 rv_start_swe_and_check (CCI_USE_ID, "CCI");
555 #endif 552 #endif
559 rv_start_swe_and_check (BTUI_USE_ID, "BTUI"); 556 rv_start_swe_and_check (BTUI_USE_ID, "BTUI");
560 #endif 557 #endif
561 #ifdef RVM_JPEG_SWE 558 #ifdef RVM_JPEG_SWE
562 /* initialize sample JPEG SWE */ 559 /* initialize sample JPEG SWE */
563 rv_start_swe_and_check (JPEG_USE_ID, "JPEG"); 560 rv_start_swe_and_check (JPEG_USE_ID, "JPEG");
564 #endif 561 #endif
565 #ifdef RVM_JPEG_SWE 562 #ifdef RVM_JPEG_SWE
566 /* initialize sample JPEG SWE */ 563 /* initialize sample JPEG SWE */
567 rv_start_swe_and_check (JPEG_USE_ID, "JPEG"); 564 rv_start_swe_and_check (JPEG_USE_ID, "JPEG");
568 #endif 565 #endif
569 #endif 566 #endif
570 // WARNING WARNING ---------------------------------------------------- 567 // WARNING WARNING ----------------------------------------------------
571 // Do not perform any SWE initialization after this line ! 568 // Do not perform any SWE initialization after this line !
572 // WARNING WARNING ---------------------------------------------------- 569 // WARNING WARNING ----------------------------------------------------
573 570
574 #if (REMU==0) /* moved this to kpd start function. rv_start function for REMU. rv_start is called from Application Initialize 571 #if (REMU==0) /* moved this to kpd start function. rv_start function for REMU. rv_start is called from Application Initialize
575 context. Since this is a blocking call, we cannot afford to block in Application_Initialization. */ 572 context. Since this is a blocking call, we cannot afford to block in Application_Initialization. */
576 #ifndef _WINDOWS 573 #ifndef _WINDOWS
577 // Perform switch ON processing. 574 // Perform switch ON processing.
578 Switch_ON(); 575 Switch_ON();
579 #endif 576 #endif
584 581
585 #endif 582 #endif
586 #if (CHIPSET!=15) || (REMU==0) 583 #if (CHIPSET!=15) || (REMU==0)
587 /* dump the Riviera memory state */ 584 /* dump the Riviera memory state */
588 rvf_delay (RVF_MS_TO_TICKS (300)) ; 585 rvf_delay (RVF_MS_TO_TICKS (300)) ;
589 rvf_dump_mem (); 586 rvf_dump_mem ();
590 rvf_dump_pool(); 587 rvf_dump_pool();
591 rvf_dump_tasks(); 588 rvf_dump_tasks();
592 #endif 589 #endif
593 #if (TEST==1) 590 #if (TEST==1)
594 #if (PSP_STANDALONE == 1) 591 #if (PSP_STANDALONE == 1)
595 /* Just For Testing Reset of UICC */ 592 /* Just For Testing Reset of UICC */
596 // bspUicc_reset(1,0); 593 // bspUicc_reset(1,0);
597 594
598 /* Just For Testing GEA */ 595 /* Just For Testing GEA */
599 // bspTest_Gea3_ciph_req(1); 596 // bspTest_Gea3_ciph_req(1);
600 597
601 #endif 598 #endif
602 #if (CHIPSET!=15) || (REMU==0) 599 #if (CHIPSET!=15) || (REMU==0)
603 // create a Memory Bank for the 'Test Selection Menu'. 600 // create a Memory Bank for the 'Test Selection Menu'.
610 { 607 {
611 // error case. 608 // error case.
612 result++; 609 result++;
613 } 610 }
614 611
615 #if (PSP_STANDALONE == 1) 612 #if (PSP_STANDALONE == 1)
616 /* Just For Testing Reset of UICC */ 613 /* Just For Testing Reset of UICC */
617 bspUicc_reset(1,0); /* Just For Testing GEA */ 614 bspUicc_reset(1,0); /* Just For Testing GEA */
618 bspTest_Gea3_ciph_req(1); 615 bspTest_Gea3_ciph_req(1);
619 #endif 616 #endif
620 617
621 // Go to the 'Test Selection Menu' (using rv_test ()). 618 // Go to the 'Test Selection Menu' (using rv_test ()).
622 rv_test (0); 619 rv_test (0);
623 #endif 620 #endif
624 #endif // (TEST==1) 621 #endif // (TEST==1)
625 622
626 #if (CHIPSET!=15) || (REMU==0) 623 #if (CHIPSET!=15) || (REMU==0)
627 // infinite wait 624 // infinite wait
628 rvf_evt_wait (START_TASK_ID, 625 rvf_evt_wait (START_TASK_ID,
629 0xFFFF, 626 0xFFFF,
630 0xFFFFFFFFL); 627 0xFFFFFFFFL);
631 #endif 628 #endif
632 } 629 }
633 630
634 #if (TEST==1) 631 #if (TEST==1)
635 #define RV_START_TASK_STACK (4096) 632 #define RV_START_TASK_STACK (4096)
636 #else 633 #else
637 #define RV_START_TASK_STACK (1024) 634 #define RV_START_TASK_STACK (1024)
638 #endif 635 #endif
639 #if (CHIPSET!=15) || (REMU==0) 636 #if (CHIPSET!=15) || (REMU==0)
658 "RV_START", stack_start, 655 "RV_START", stack_start,
659 RV_START_TASK_STACK, RV_START_TASK_PRIO, 0, RUNNING); 656 RV_START_TASK_STACK, RV_START_TASK_PRIO, 0, RUNNING);
660 657
661 } 658 }
662 #endif 659 #endif
663
664
665