📄 overhead.lst
字号:
656 5 return_value = 0;
657 5 }
658 4 else return_value = 2;
659 4 }
660 3 else return_value = 2;
661 3 break;
662 3 case 0x4B33: if (boardid == 4 & start_flg[0] == 0){ //K1字节光分支盘OTB
663 4 if (portid == 1){ //光分支7860A口
664 5 f2rc7860_wr(F2PohK3_tx_a,set_value);
665 5 return_value = 0;
666 5 }
667 4 else if (portid == 2){ //光分支7860B口
668 5 f2rc7860_wr(F2PohK3_tx_b,set_value);
669 5 return_value = 0;
670 5 }
671 4 else return_value = 2;
672 4 }
673 3 else if (boardid == 5){ //主光盘MCB
674 4 if (portid == 1){
675 5 PohK3_tx_a = set_value;
C51 COMPILER V7.50 OVERHEAD 03/10/2006 16:35:47 PAGE 12
676 5 return_value = 0;
677 5 }
678 4 else if (portid == 2){
679 5 PohK3_tx_b = set_value;
680 5 return_value = 0;
681 5 }
682 4 else return_value = 2;
683 4 }
684 3 else return_value = 2;
685 3 break;
686 3 case 0x4E31: if (boardid == 4 & start_flg[0] == 0){ //N1字节光分支盘OTB
687 4 if (portid == 1){ //光分支7860A口
688 5 f2rc7860_wr(F2PohN1_tx_a,set_value);
689 5 return_value = 0;
690 5 }
691 4 else if (portid == 2){ //光分支7860B口
692 5 f2rc7860_wr(F2PohN1_tx_b,set_value);
693 5 return_value = 0;
694 5 }
695 4 else return_value = 2;
696 4 }
697 3 else if (boardid == 5){ //主光盘MCB
698 4 if (portid == 1){
699 5 PohN1_tx_a = set_value;
700 5 return_value = 0;
701 5 }
702 4 else if (portid == 2){
703 5 PohN1_tx_b = set_value;
704 5 return_value = 0;
705 5 }
706 4 else return_value = 2;
707 4 }
708 3 else return_value = 2;
709 3 break;
710 3 case 0x4B34: switch (portid){ //K4字节 得出Mapper中的支路号
711 4 case 1: outporth=0;
712 4 outportl=0x58;
713 4 break;
714 4 case 2: outporth=0;
715 4 outportl=0x88;
716 4 break;
717 4 case 3: outporth=0;
718 4 outportl=0xB8;
719 4 break;
720 4 case 4: outporth=0;
721 4 outportl=0xE8;
722 4 break;
723 4 case 5: outporth=0x08;
724 4 outportl=0x58;
725 4 break;
726 4 case 6: outporth=0x08;
727 4 outportl=0x88;
728 4 break;
729 4 case 7: outporth=0x08;
730 4 outportl=0xB8;
731 4 break;
732 4 case 8: outporth=0x08;
733 4 outportl=0xE8;
734 4 break;
735 4 case 9: outporth=0x10;
736 4 outportl=0x58;
737 4 break;
C51 COMPILER V7.50 OVERHEAD 03/10/2006 16:35:47 PAGE 13
738 4 case 10: outporth=0x10;
739 4 outportl=0x88;
740 4 break;
741 4 case 11: outporth=0x10;
742 4 outportl=0xB8;
743 4 break;
744 4 case 12: outporth=0x10;
745 4 outportl=0xE8;
746 4 break;
747 4 case 13: outporth=0x18;
748 4 outportl=0x58;
749 4 break;
750 4 case 14: outporth=0x18;
751 4 outportl=0x88;
752 4 break;
753 4 case 15: outporth=0x18;
754 4 outportl=0xB8;
755 4 break;
756 4 case 16: outporth=0x18;
757 4 outportl=0xE8;
758 4 break;
759 4 case 17: outporth=0x20;
760 4 outportl=0x58;
761 4 break;
762 4 case 18: outporth=0x20;
763 4 outportl=0x88;
764 4 break;
765 4 case 19: outporth=0x20;
766 4 outportl=0xB8;
767 4 break;
768 4 case 20: outporth=0x20;
769 4 outportl=0xE8;
770 4 break;
771 4 case 21: outporth=0x28;
772 4 outportl=0x58;
773 4 break;
774 4 default: break;
775 4 }
776 3 set_value = (set_value << 4) &0xF0;
777 3 switch (boardid){
778 4 case 1: if (start_flg[1] == 0){
779 5 se0111_reg_wr(outporth,outportl,set_value,1); //2M盘1
780 5 return_value = 0;
781 5 }
782 4 else return_value = 2;
783 4 break;
784 4 case 2: if (start_flg[2] == 0){
785 5 se0111_reg_wr(outporth,outportl,set_value,2); //2M盘2
786 5 return_value = 0;
787 5 }
788 4 else return_value = 2;
789 4 break;
790 4 case 3: if (start_flg[3] == 0){
791 5 se0111_reg_wr(outporth,outportl,set_value,3); //2M盘3
792 5 return_value = 0;
793 5 }
794 4 else return_value = 2;
795 4 break;
796 4 default:return_value = 2;
797 4 break;
798 4 }
799 3 break;
C51 COMPILER V7.50 OVERHEAD 03/10/2006 16:35:47 PAGE 14
800 3 case 0x5635:switch (portid){ //V5字节 得出Mapper中的支路号
801 4 case 1: outporth=0;
802 4 outportl=0x55;
803 4 break;
804 4 case 2: outporth=0;
805 4 outportl=0x85;
806 4 break;
807 4 case 3: outporth=0;
808 4 outportl=0xB5;
809 4 break;
810 4 case 4: outporth=0;
811 4 outportl=0xE5;
812 4 break;
813 4 case 5: outporth=0x08;
814 4 outportl=0x55;
815 4 break;
816 4 case 6: outporth=0x08;
817 4 outportl=0x85;
818 4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -