comparison chipsetsw/layer1/cust0/l1_cust.c @ 204:2d691e51d678

l1_cust.c: passes compilation
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 08 Jun 2016 05:59:55 +0000
parents 47ac87c0bc1b
children 1f1b89a59cf6
comparison
equal deleted inserted replaced
203:5dbf46894dab 204:2d691e51d678
22 #include "l1_trace.h" 22 #include "l1_trace.h"
23 #include "sys_types.h" 23 #include "sys_types.h"
24 #include "sim.h" 24 #include "sim.h"
25 #include "buzzer.h" 25 #include "buzzer.h"
26 #include "serialswitch.h" 26 #include "serialswitch.h"
27
28 #include "abb.h"
27 29
28 #if TESTMODE 30 #if TESTMODE
29 #include "l1tm_defty.h" 31 #include "l1tm_defty.h"
30 #endif 32 #endif
31 33
639 l1_config.params.dco_enabled = FALSE; 641 l1_config.params.dco_enabled = FALSE;
640 #endif 642 #endif
641 #endif 643 #endif
642 644
643 #if (ANLG_FAM == 1) 645 #if (ANLG_FAM == 1)
644 l1_config.params.debug1 = C_DEBUG1; // Enable f_tx delay of 400000 cyc DEBUG 646 l1_config.params.debug1 = C_DEBUG1; // Enable f_tx delay of 400000 cyc DEBUG
645 l1_config.params.afcctladd = abb[ABB_AFCCTLADD]; // Value at reset 647 l1_config.params.afcctladd = abb[ABB_AFCCTLADD]; // Value at reset
646 l1_config.params.vbur = abb[ABB_VBUR]; // Uplink gain amp 0dB, Sidetone gain to mute 648 l1_config.params.vbuctrl = abb[ABB_VBUCTRL]; // Uplink gain amp 0dB, Sidetone gain to mute
647 l1_config.params.vbdr = abb[ABB_VBDR]; // Downlink gain amp 0dB, Volume control 0 dB 649 l1_config.params.vbdctrl = abb[ABB_VBDCTRL]; // Downlink gain amp 0dB, Volume control 0 dB
648 l1_config.params.bbctl = abb[ABB_BBCTL]; // value at reset 650 l1_config.params.bbctrl = abb[ABB_BBCTRL]; // value at reset
649 l1_config.params.apcoff = abb[ABB_APCOFF]; // value at reset 651 l1_config.params.apcoff = abb[ABB_APCOFF]; // value at reset
650 l1_config.params.bulioff = abb[ABB_BULIOFF]; // value at reset 652 l1_config.params.bulioff = abb[ABB_BULIOFF]; // value at reset
651 l1_config.params.bulqoff = abb[ABB_BULQOFF]; // value at reset 653 l1_config.params.bulqoff = abb[ABB_BULQOFF]; // value at reset
652 l1_config.params.dai_onoff = abb[ABB_DAI_ON_OFF]; // value at reset 654 l1_config.params.dai_onoff = abb[ABB_DAI_ON_OFF]; // value at reset
653 l1_config.params.auxdac = abb[ABB_AUXDAC]; // value at reset 655 l1_config.params.auxdac = abb[ABB_AUXDAC]; // value at reset
654 l1_config.params.vbcr = abb[ABB_VBCR]; // VULSWITCH=0, VDLAUX=1, VDLEAR=1 656 l1_config.params.vbctrl = abb[ABB_VBCTRL]; // VULSWITCH=0, VDLAUX=1, VDLEAR=1
655 l1_config.params.apcdel = abb[ABB_APCDEL]; // value at reset 657 l1_config.params.apcdel1 = abb[ABB_APCDEL1]; // value at reset
656 #endif 658 #endif
657 #if (ANLG_FAM == 2) 659 #if (ANLG_FAM == 2)
658 l1_config.params.debug1 = C_DEBUG1; // Enable f_tx delay of 400000 cyc DEBUG 660 l1_config.params.debug1 = C_DEBUG1; // Enable f_tx delay of 400000 cyc DEBUG
659 l1_config.params.afcctladd = abb[ABB_AFCCTLADD]; // Value at reset 661 l1_config.params.afcctladd = abb[ABB_AFCCTLADD]; // Value at reset
660 l1_config.params.vbur = abb[ABB_VBUR]; // Uplink gain amp 0dB, Sidetone gain to mute 662 l1_config.params.vbuctrl = abb[ABB_VBUCTRL]; // Uplink gain amp 0dB, Sidetone gain to mute
661 l1_config.params.vbdr = abb[ABB_VBDR]; // Downlink gain amp 0dB, Volume control 0 dB 663 l1_config.params.vbdctrl = abb[ABB_VBDCTRL]; // Downlink gain amp 0dB, Volume control 0 dB
662 l1_config.params.bbctl = abb[ABB_BBCTL]; // value at reset 664 l1_config.params.bbctrl = abb[ABB_BBCTRL]; // value at reset
663 l1_config.params.bulgcal = abb[ABB_BULGCAL]; // value at reset 665 l1_config.params.bulgcal = abb[ABB_BULGCAL]; // value at reset
664 l1_config.params.apcoff = abb[ABB_APCOFF]; // value at reset 666 l1_config.params.apcoff = abb[ABB_APCOFF]; // value at reset
665 l1_config.params.bulioff = abb[ABB_BULIOFF]; // value at reset 667 l1_config.params.bulioff = abb[ABB_BULIOFF]; // value at reset
666 l1_config.params.bulqoff = abb[ABB_BULQOFF]; // value at reset 668 l1_config.params.bulqoff = abb[ABB_BULQOFF]; // value at reset
667 l1_config.params.dai_onoff = abb[ABB_DAI_ON_OFF]; // value at reset 669 l1_config.params.dai_onoff = abb[ABB_DAI_ON_OFF]; // value at reset
668 l1_config.params.auxdac = abb[ABB_AUXDAC]; // value at reset 670 l1_config.params.auxdac = abb[ABB_AUXDAC]; // value at reset
669 l1_config.params.vbcr = abb[ABB_VBCR]; // VULSWITCH=0, VDLAUX=1, VDLEAR=1 671 l1_config.params.vbctrl1 = abb[ABB_VBCTRL1]; // VULSWITCH=0, VDLAUX=1, VDLEAR=1
670 l1_config.params.vbcr2 = abb[ABB_VBCR2]; // MICBIASEL=0, VDLHSO=0, MICAUX=0 672 l1_config.params.vbctrl2 = abb[ABB_VBCTRL2]; // MICBIASEL=0, VDLHSO=0, MICAUX=0
671 l1_config.params.apcdel = abb[ABB_APCDEL]; // value at reset 673 l1_config.params.apcdel1 = abb[ABB_APCDEL1]; // value at reset
672 l1_config.params.apcdel2 = abb[ABB_APCDEL2]; // value at reset 674 l1_config.params.apcdel2 = abb[ABB_APCDEL2]; // value at reset
673 #endif 675 #endif
674 #if (ANLG_FAM == 3) 676 #if (ANLG_FAM == 3)
675 l1_config.params.debug1 = C_DEBUG1; // Enable f_tx delay of 400000 cyc DEBUG 677 l1_config.params.debug1 = C_DEBUG1; // Enable f_tx delay of 400000 cyc DEBUG
676 l1_config.params.afcctladd = abb[ABB_AFCCTLADD]; // Value at reset 678 l1_config.params.afcctladd = abb[ABB_AFCCTLADD]; // Value at reset
677 l1_config.params.vbur = abb[ABB_VBUR]; // Uplink gain amp 0dB, Sidetone gain to mute 679 l1_config.params.vbuctrl = abb[ABB_VBUCTRL]; // Uplink gain amp 0dB, Sidetone gain to mute
678 l1_config.params.vbdr = abb[ABB_VBDR]; // Downlink gain amp 0dB, Volume control 0 dB 680 l1_config.params.vbdctrl = abb[ABB_VBDCTRL]; // Downlink gain amp 0dB, Volume control 0 dB
679 l1_config.params.bbctl = abb[ABB_BBCTL]; // value at reset 681 l1_config.params.bbctrl = abb[ABB_BBCTRL]; // value at reset
680 l1_config.params.bulgcal = abb[ABB_BULGCAL]; // value at reset 682 l1_config.params.bulgcal = abb[ABB_BULGCAL]; // value at reset
681 l1_config.params.apcoff = abb[ABB_APCOFF]; // X2 Slope 128 and APCSWP disabled 683 l1_config.params.apcoff = abb[ABB_APCOFF]; // X2 Slope 128 and APCSWP disabled
682 l1_config.params.bulioff = abb[ABB_BULIOFF]; // value at reset 684 l1_config.params.bulioff = abb[ABB_BULIOFF]; // value at reset
683 l1_config.params.bulqoff = abb[ABB_BULQOFF]; // value at reset 685 l1_config.params.bulqoff = abb[ABB_BULQOFF]; // value at reset
684 l1_config.params.dai_onoff = abb[ABB_DAI_ON_OFF]; // value at reset 686 l1_config.params.dai_onoff = abb[ABB_DAI_ON_OFF]; // value at reset
685 l1_config.params.auxdac = abb[ABB_AUXDAC]; // value at reset 687 l1_config.params.auxdac = abb[ABB_AUXDAC]; // value at reset
686 l1_config.params.vbcr = abb[ABB_VBCR]; // VULSWITCH=0 688 l1_config.params.vbctrl1 = abb[ABB_VBCTRL1]; // VULSWITCH=0
687 l1_config.params.vbcr2 = abb[ABB_VBCR2]; // MICBIASEL=0, VDLHSO=0, MICAUX=0 689 l1_config.params.vbctrl2 = abb[ABB_VBCTRL2]; // MICBIASEL=0, VDLHSO=0, MICAUX=0
688 l1_config.params.apcdel = abb[ABB_APCDEL]; // value at reset 690 l1_config.params.apcdel1 = abb[ABB_APCDEL1]; // value at reset
689 l1_config.params.apcdel2 = abb[ABB_APCDEL2]; // value at reset 691 l1_config.params.apcdel2 = abb[ABB_APCDEL2]; // value at reset
690 l1_config.params.vbpop = abb[ABB_VBPOP]; // HSOAUTO enabled 692 l1_config.params.vbpop = abb[ABB_VBPOP]; // HSOAUTO enabled
691 l1_config.params.vau_delay_init = abb[ABB_VAUDINITD]; // 2 TDMA Frames between VDL "ON" and VDLHSO "ON" 693 l1_config.params.vau_delay_init = abb[ABB_VAUDINITD]; // 2 TDMA Frames between VDL "ON" and VDLHSO "ON"
692 l1_config.params.vaud_cfg = abb[ABB_VAUDCR]; // value at reset 694 l1_config.params.vaud_cfg = abb[ABB_VAUDCTRL]; // value at reset
693 l1_config.params.vauo_onoff = abb[ABB_VAUOCR]; // speech on AUX and EAR 695 l1_config.params.vauo_onoff = abb[ABB_VAUOCTRL]; // speech on AUX and EAR
694 l1_config.params.vaus_vol = abb[ABB_VAUSCR]; // value at reset 696 l1_config.params.vaus_vol = abb[ABB_VAUSCTRL]; // value at reset
695 l1_config.params.vaud_pll = abb[ABB_VAUDPLL]; // value at reset 697 l1_config.params.vaud_pll = abb[ABB_VAUDPLL]; // value at reset
696 #endif 698 #endif
697 699
698 // global variable for access to deep sleep time 700 #if 0 /* present in MV100 version, but not in TCS211 */
699 l1_config.params.sleep_time = 0; 701 // global variable for access to deep sleep time
702 l1_config.params.sleep_time = 0;
703 #endif
700 } 704 }
701 705
702 706
703 /************************************/ 707 /************************************/
704 /* Automatic Gain Control */ 708 /* Automatic Gain Control */