FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cfile/l1_cmplx.c @ 69:7f883b707182
l1_cmplx.c: l1s_ctrl_sb26() reconstructed
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 28 Mar 2016 04:01:33 +0000 |
parents | 455ae8f1e825 |
children | f5bb8ea497cb |
comparison
equal
deleted
inserted
replaced
68:455ae8f1e825 | 69:7f883b707182 |
---|---|
1838 // 1 whenever L1A makes some changes to the task parameters. | 1838 // 1 whenever L1A makes some changes to the task parameters. |
1839 { | 1839 { |
1840 UWORD16 radio_freq = 0; | 1840 UWORD16 radio_freq = 0; |
1841 UWORD32 time_alignmt = 0; | 1841 UWORD32 time_alignmt = 0; |
1842 #if (L1_12NEIGH ==1) | 1842 #if (L1_12NEIGH ==1) |
1843 T_NCELL_SINGLE *cell_info_ptr = NULL; | 1843 T_NCELL_SINGLE *cell_info_ptr; |
1844 | 1844 |
1845 if (task == SB26) | 1845 if (task == SB26) |
1846 cell_info_ptr = &l1a_l1s_com.nsync.list[l1a_l1s_com.nsync.active_sb_id]; | 1846 cell_info_ptr = &l1a_l1s_com.nsync.list[l1a_l1s_com.nsync.active_sb_id]; |
1847 if (task == SBCNF26) | 1847 if (task == SBCNF26) |
1848 { | 1848 { |
1865 #endif | 1865 #endif |
1866 | 1866 |
1867 cell_info_ptr = &l1a_l1s_com.nsync.list[l1a_l1s_com.nsync.active_sbconf_id]; | 1867 cell_info_ptr = &l1a_l1s_com.nsync.list[l1a_l1s_com.nsync.active_sbconf_id]; |
1868 | 1868 |
1869 } | 1869 } |
1870 if(cell_info_ptr != NULL)//OMAPS00090550 | |
1871 { | |
1872 radio_freq = cell_info_ptr->radio_freq; | 1870 radio_freq = cell_info_ptr->radio_freq; |
1873 time_alignmt = cell_info_ptr->time_alignmt; | 1871 time_alignmt = cell_info_ptr->time_alignmt; |
1874 } | |
1875 | 1872 |
1876 #else | 1873 #else |
1877 // Get the cell information. | 1874 // Get the cell information. |
1878 // ************************** | 1875 // ************************** |
1879 radio_freq = l1a_l1s_com.nsync.list[0].radio_freq; | 1876 radio_freq = l1a_l1s_com.nsync.list[0].radio_freq; |
1903 | 1900 |
1904 // Programs TPU for required task. | 1901 // Programs TPU for required task. |
1905 // ******************************** | 1902 // ******************************** |
1906 temp = (UWORD32)(l1_config.params.fb26_anchoring_time - EPSILON_SYNC); | 1903 temp = (UWORD32)(l1_config.params.fb26_anchoring_time - EPSILON_SYNC); |
1907 #if (L1_12NEIGH ==1) | 1904 #if (L1_12NEIGH ==1) |
1908 if(cell_info_ptr != NULL)//OMAPS00090550 | |
1909 { | |
1910 if((cell_info_ptr->sb26_offset == 1) && | 1905 if((cell_info_ptr->sb26_offset == 1) && |
1911 (time_alignmt >= temp)) //omaps00090550 | 1906 (time_alignmt >= temp)) //omaps00090550 |
1912 #else | 1907 #else |
1913 if((l1a_l1s_com.nsync.list[0].sb26_offset == 1) && | 1908 if((l1a_l1s_com.nsync.list[0].sb26_offset == 1) && |
1914 (time_alignmt >= temp)) //omaps00090550 | 1909 (time_alignmt >= temp)) //omaps00090550 |
1918 // We insert a nop in the tpu scenario to | 1913 // We insert a nop in the tpu scenario to |
1919 // be able to jump the 1st frame. | 1914 // be able to jump the 1st frame. |
1920 { | 1915 { |
1921 nb_nop = 1; | 1916 nb_nop = 1; |
1922 } | 1917 } |
1923 #if (L1_12NEIGH ==1) | |
1924 } | |
1925 #endif | |
1926 | 1918 |
1927 #if (L1_FF_MULTIBAND == 0) | 1919 #if (L1_FF_MULTIBAND == 0) |
1928 | 1920 |
1929 // agc is just computed from last stored IL | 1921 // agc is just computed from last stored IL |
1930 input_level = l1a_l1s_com.last_input_level[radio_freq - l1_config.std.radio_freq_index_offset].input_level; | 1922 input_level = l1a_l1s_com.last_input_level[radio_freq - l1_config.std.radio_freq_index_offset].input_level; |