FreeCalypso > hg > fc-magnetite
comparison src/cs/layer1/tpu_drivers/source0/tpudrv10.c @ 413:780fa76e9c9b
tpudrv10.c: all magic1 tables reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 19 Jan 2018 21:07:28 +0000 |
parents | 2b038b43e31b |
children | cbc25978be5a |
comparison
equal
deleted
inserted
replaced
412:2b038b43e31b | 413:780fa76e9c9b |
---|---|
169 UWORD8 rx_down; | 169 UWORD8 rx_down; |
170 UWORD8 tx_up; | 170 UWORD8 tx_up; |
171 UWORD8 tx_down; | 171 UWORD8 tx_down; |
172 UWORD8 tx_up_rev; | 172 UWORD8 tx_up_rev; |
173 struct synth_s *synth; | 173 struct synth_s *synth; |
174 struct magic1_s *magic1; | |
174 }; | 175 }; |
175 | 176 |
176 static const struct synth_s synth_900[] = | 177 static const struct synth_s synth_900[] = |
177 { | 178 { |
178 { 0, 124, {{ 890, 1}, { 935, 4}}},// gsm 0 - 124 | 179 { 0, 124, {{ 890, 1}, { 935, 4}}},// gsm 0 - 124 |
194 { 117, 0x082D}, | 195 { 117, 0x082D}, |
195 { 124, 0x0847}, | 196 { 124, 0x0847}, |
196 { 988, 0x0820}, | 197 { 988, 0x0820}, |
197 {1014, 0x083A}, | 198 {1014, 0x083A}, |
198 {1023, 0x0820}, | 199 {1023, 0x0820}, |
199 {1023, 0x0820}, | |
200 }; | 200 }; |
201 | 201 |
202 static const struct synth_s synth_1800[] = | 202 static const struct synth_s synth_1800[] = |
203 { | 203 { |
204 {511, 885, {{1710, -1}, {1805, 1}}}, // dcs 512 - 885 | 204 {511, 885, {{1710, -1}, {1805, 1}}}, // dcs 512 - 885 |
205 }; | 205 }; |
206 | 206 |
207 static const struct magic1_s magic1_1800[] = | |
208 { | |
209 {571, 0x0820}, | |
210 {610, 0x0847}, | |
211 {671, 0x083A}, | |
212 {688, 0x082D}, | |
213 {719, 0x083A}, | |
214 {730, 0x0861}, | |
215 {755, 0x083A}, | |
216 {794, 0x0847}, | |
217 {845, 0x0820}, | |
218 {885, 0x082D}, | |
219 }; | |
220 | |
207 static const struct synth_s synth_1900[] = | 221 static const struct synth_s synth_1900[] = |
208 { | 222 { |
209 {511, 810, {{1850, -1}, {1930, 1}}}, // pcs 512 - 810; | 223 {511, 810, {{1850, -1}, {1930, 1}}}, // pcs 512 - 810; |
210 }; | 224 }; |
211 | 225 |
226 static const struct magic1_s magic1_1900[] = | |
227 { | |
228 {550, 0x0847}, | |
229 {615, 0x082D}, | |
230 {642, 0x083A}, | |
231 {702, 0x0820}, | |
232 {777, 0x0854}, | |
233 {810, 0x0861}, | |
234 }; | |
235 | |
212 static const struct synth_s synth_850[] = | 236 static const struct synth_s synth_850[] = |
213 { | 237 { |
214 {127, 251, {{ 824, 1}, { 869, 4}}}, // gsm850 high | 238 {127, 251, {{ 824, 1}, { 869, 4}}}, // gsm850 high |
239 }; | |
240 | |
241 static const struct magic1_s magic1_850[] = | |
242 { | |
243 {251, 0x0924}, | |
215 }; | 244 }; |
216 | 245 |
217 struct rf_path_s rf_path[] = { //same index used as for band_config[] - 1 | 246 struct rf_path_s rf_path[] = { //same index used as for band_config[] - 1 |
218 /* EGSM */ | 247 /* EGSM */ |
219 { BAND_SELECT_GSM, RU_900, RD_900, TU_900, TD_900, TU_REV_900, | 248 { BAND_SELECT_GSM, RU_900, RD_900, TU_900, TD_900, TU_REV_900, |
220 (struct synth_s *)synth_900 }, | 249 (struct synth_s *)synth_900, (struct magic1_s *)magic1_900}, |
221 /* DCS */ | 250 /* DCS */ |
222 { BAND_SELECT_DCS, RU_1800, RD_1800, TU_1800, TD_1800, TU_REV_1800, | 251 { BAND_SELECT_DCS, RU_1800, RD_1800, TU_1800, TD_1800, TU_REV_1800, |
223 (struct synth_s *)synth_1800}, | 252 (struct synth_s *)synth_1800, (struct magic1_s *)magic1_1800}, |
224 /* PCS */ | 253 /* PCS */ |
225 { BAND_SELECT_PCS, RU_1900, RD_1900, TU_1900, TD_1900, TU_REV_1900, | 254 { BAND_SELECT_PCS, RU_1900, RD_1900, TU_1900, TD_1900, TU_REV_1900, |
226 (struct synth_s *)synth_1900}, | 255 (struct synth_s *)synth_1900, (struct magic1_s *)magic1_1900}, |
227 /* GSM850 */ | 256 /* GSM850 */ |
228 { BAND_SELECT_850, RU_850, RD_850, TU_850, TD_850, TU_REV_850, | 257 { BAND_SELECT_850, RU_850, RD_850, TU_850, TD_850, TU_REV_850, |
229 (struct synth_s *)synth_850 }, | 258 (struct synth_s *)synth_850, (struct magic1_s *)magic1_850}, |
230 /* PCS in dual-us */ | 259 /* PCS in dual-us */ |
231 { BAND_SELECT_PCS, RU_1900, RD_1900, TU_1900, TD_1900, TU_REV_1900, | 260 { BAND_SELECT_PCS, RU_1900, RD_1900, TU_1900, TD_1900, TU_REV_1900, |
232 (struct synth_s *)synth_1900}, | 261 (struct synth_s *)synth_1900, (struct magic1_s *)magic1_1900}, |
233 /* non-E GSM */ | 262 /* non-E GSM */ |
234 { BAND_SELECT_GSM, RU_900, RD_900, TU_900, TD_900, TU_REV_900, | 263 { BAND_SELECT_GSM, RU_900, RD_900, TU_900, TD_900, TU_REV_900, |
235 (struct synth_s *)synth_900 }, | 264 (struct synth_s *)synth_900, (struct magic1_s *)magic1_900}, |
236 }; | 265 }; |
237 | 266 |
238 /* | 267 /* |
239 * Leonardo tpudrv12.obj contains a function named calc_a_b(); there is | 268 * Leonardo tpudrv12.obj contains a function named calc_a_b(); there is |
240 * no such function in the LoCosto version, but there is a similar-looking | 269 * no such function in the LoCosto version, but there is a similar-looking |