FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cfile/l1_init.c @ 110:86b36d9f4b42
l1_init.c: passes compilation, object diffing begins
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 08 Apr 2016 05:56:05 +0000 |
parents | a038d8cd9647 |
children | ba0b349e718e |
comparison
equal
deleted
inserted
replaced
109:a038d8cd9647 | 110:86b36d9f4b42 |
---|---|
938 //++++++++++++++++++++++++++++++++++++++++++ | 938 //++++++++++++++++++++++++++++++++++++++++++ |
939 | 939 |
940 // flags for wake-up .... | 940 // flags for wake-up .... |
941 l1s.pw_mgr.Os_ticks_required = FALSE; | 941 l1s.pw_mgr.Os_ticks_required = FALSE; |
942 l1s.pw_mgr.frame_adjust = FALSE; | 942 l1s.pw_mgr.frame_adjust = FALSE; |
943 #if 0 /* not present in TCS211 */ | |
943 l1s.pw_mgr.wakeup_time = 0; | 944 l1s.pw_mgr.wakeup_time = 0; |
945 #endif | |
944 | 946 |
945 // variables for sleep .... | 947 // variables for sleep .... |
946 l1s.pw_mgr.sleep_duration = 0; | 948 l1s.pw_mgr.sleep_duration = 0; |
947 l1s.pw_mgr.sleep_performed = DO_NOT_SLEEP; | 949 l1s.pw_mgr.sleep_performed = DO_NOT_SLEEP; |
948 l1s.pw_mgr.modules_status = 0; // all clocks ON | 950 l1s.pw_mgr.modules_status = 0; // all clocks ON |
955 | 957 |
956 // 32 Khz gauging .... | 958 // 32 Khz gauging .... |
957 l1s.pw_mgr.gaug_count = 0; | 959 l1s.pw_mgr.gaug_count = 0; |
958 l1s.pw_mgr.enough_gaug = FALSE; | 960 l1s.pw_mgr.enough_gaug = FALSE; |
959 //Nina modify to save power, not forbid deep sleep, only force gauging in next paging | 961 //Nina modify to save power, not forbid deep sleep, only force gauging in next paging |
962 #if 0 /* not present in TCS211 */ | |
960 l1s.force_gauging_next_paging_due_to_CCHR = 0; | 963 l1s.force_gauging_next_paging_due_to_CCHR = 0; |
964 #endif | |
961 l1s.pw_mgr.gauging_task = INACTIVE; | 965 l1s.pw_mgr.gauging_task = INACTIVE; |
962 | 966 |
963 // GAUGING duration | 967 // GAUGING duration |
964 #if (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12) || (CHIPSET == 15) | 968 #if (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12) || (CHIPSET == 15) |
965 if (l1_config.dpll <8 ) | 969 if (l1_config.dpll <8 ) |
1075 } | 1079 } |
1076 } | 1080 } |
1077 l1s.frame_count = 0; | 1081 l1s.frame_count = 0; |
1078 l1s.forbid_meas = 0; | 1082 l1s.forbid_meas = 0; |
1079 #if L1_GPRS | 1083 #if L1_GPRS |
1084 #if 0 /* not present in TCS211 */ | |
1080 l1s.tcr_prog_done=0; | 1085 l1s.tcr_prog_done=0; |
1086 #endif | |
1081 #endif | 1087 #endif |
1082 #if (AUDIO_DEBUG == 1) | 1088 #if (AUDIO_DEBUG == 1) |
1083 audio_reg_read_status=0; | 1089 audio_reg_read_status=0; |
1084 #endif | 1090 #endif |
1085 // MFTAB management variables... | 1091 // MFTAB management variables... |
1115 l1s.toa_update = FALSE; | 1121 l1s.toa_update = FALSE; |
1116 #endif | 1122 #endif |
1117 #endif | 1123 #endif |
1118 | 1124 |
1119 #if (L1_GPRS == 1) | 1125 #if (L1_GPRS == 1) |
1126 #if 0 /* not present in TCS211 */ | |
1120 l1s.algo_change_synchro_active = FALSE; | 1127 l1s.algo_change_synchro_active = FALSE; |
1128 #endif | |
1121 #endif | 1129 #endif |
1122 | 1130 |
1123 #if (L1_RF_KBD_FIX == 1) | 1131 #if (L1_RF_KBD_FIX == 1) |
1124 l1s.total_kbd_on_time = 5000; | 1132 l1s.total_kbd_on_time = 5000; |
1125 l1s.correction_ratio = 1; | 1133 l1s.correction_ratio = 1; |
1172 l1s.actual_time.block_id = 0; | 1180 l1s.actual_time.block_id = 0; |
1173 l1s.next_time.block_id = 0; | 1181 l1s.next_time.block_id = 0; |
1174 l1s.next_plus_time = l1s.next_time; | 1182 l1s.next_plus_time = l1s.next_time; |
1175 l1s_increment_time(&(l1s.next_plus_time),1); | 1183 l1s_increment_time(&(l1s.next_plus_time),1); |
1176 l1s.ctrl_synch_before = FALSE; | 1184 l1s.ctrl_synch_before = FALSE; |
1177 l1s.next_gauging_scheduled_for_PNP= 0; | 1185 #if 0 /* not present in TCS211 */ |
1186 l1s.next_gauging_scheduled_for_PNP= 0; | |
1187 #endif | |
1178 #endif | 1188 #endif |
1179 } | 1189 } |
1180 | 1190 |
1181 // TXPWR management. | 1191 // TXPWR management. |
1182 //------------------- | 1192 //------------------- |
1211 l1s.version.dsp_patch_version = 0; | 1221 l1s.version.dsp_patch_version = 0; |
1212 l1s.version.dsp_checksum = 0; // checksum patch+code DSP | 1222 l1s.version.dsp_checksum = 0; // checksum patch+code DSP |
1213 | 1223 |
1214 l1s.version.mcu_tcs_program_release = PROGRAM_RELEASE_VERSION; | 1224 l1s.version.mcu_tcs_program_release = PROGRAM_RELEASE_VERSION; |
1215 l1s.version.mcu_tcs_internal = INTERNAL_VERSION; | 1225 l1s.version.mcu_tcs_internal = INTERNAL_VERSION; |
1216 l1s.version.mcu_tcs_official = MAINTENANCE_VERSION; | 1226 l1s.version.mcu_tcs_official = OFFICIAL_VERSION; |
1217 | 1227 |
1218 #if TESTMODE | 1228 #if TESTMODE |
1219 l1s.version.mcu_tm_version = TESTMODEVERSION; | 1229 l1s.version.mcu_tm_version = TESTMODEVERSION; |
1220 #else | 1230 #else |
1221 l1s.version.mcu_tm_version = 0; | 1231 l1s.version.mcu_tm_version = 0; |
1763 #if(L1_FF_MULTIBAND == 0) | 1773 #if(L1_FF_MULTIBAND == 0) |
1764 l1_config.std.id = mmi_l1_config->std; | 1774 l1_config.std.id = mmi_l1_config->std; |
1765 #endif | 1775 #endif |
1766 | 1776 |
1767 l1_config.tx_pwr_code = mmi_l1_config->tx_pwr_code; | 1777 l1_config.tx_pwr_code = mmi_l1_config->tx_pwr_code; |
1768 #if IDS | 1778 #if 0 /* not present in TCS211 */ |
1769 l1_config.ids_enable = mmi_l1_config->ids_enable; | 1779 #if IDS |
1770 #endif | 1780 l1_config.ids_enable = mmi_l1_config->ids_enable; |
1771 l1_config.facch_test.enable = mmi_l1_config->facch_test.enable; | 1781 #endif |
1772 l1_config.facch_test.period = mmi_l1_config->facch_test.period; | 1782 l1_config.facch_test.enable = mmi_l1_config->facch_test.enable; |
1783 l1_config.facch_test.period = mmi_l1_config->facch_test.period; | |
1784 #endif | |
1773 l1_config.dwnld = mmi_l1_config->dwnld; | 1785 l1_config.dwnld = mmi_l1_config->dwnld; |
1774 | 1786 |
1775 #if TESTMODE | 1787 #if TESTMODE |
1776 // Initialize TestMode params: must be done after Omega power-on | 1788 // Initialize TestMode params: must be done after Omega power-on |
1777 l1_config.TestMode = FALSE; | 1789 l1_config.TestMode = FALSE; |