summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/prim_rx_nb.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-09-14 21:16:58 +0200
committerSylvain Munaut <tnt@246tNt.com>2010-09-17 20:52:40 +0200
commit78fc76cc8ff362f9e48caeb43261d953c3bae1f7 (patch)
tree2e36fe8aa3d7f3cd7f61d301a78ce4efe4c8c2df /src/target/firmware/layer1/prim_rx_nb.c
parent68c40addf7f8382655f8a32af44e628527049cc0 (diff)
fw/layer1: Add common TPU win setup/cleanup code
Instead of each primitive doing it independently, if there is a TPU scenario in one of the item, we do a common setup with the base tn returned by rfch_get_params. Then each rx / tx window setup is relative to that 'base tn'. For TX window, you have to explicitely request an offset of 3. (this would allow for some test code to TX on ts=0 for eg.) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/layer1/prim_rx_nb.c')
-rw-r--r--src/target/firmware/layer1/prim_rx_nb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/firmware/layer1/prim_rx_nb.c b/src/target/firmware/layer1/prim_rx_nb.c
index 6c765457..868800e5 100644
--- a/src/target/firmware/layer1/prim_rx_nb.c
+++ b/src/target/firmware/layer1/prim_rx_nb.c
@@ -165,7 +165,7 @@ static int l1s_nb_cmd(__unused uint8_t p1, uint8_t burst_id,
__unused uint16_t p3)
{
uint16_t arfcn;
- uint8_t tsc, tn;
+ uint8_t tsc;
putchart('N');
@@ -183,11 +183,11 @@ static int l1s_nb_cmd(__unused uint8_t p1, uint8_t burst_id,
rxnb.di = (struct l1ctl_data_ind *) msgb_put(rxnb.msg, sizeof(*rxnb.di));
}
- rfch_get_params(&l1s.next_time, &arfcn, &tsc, &tn);
+ rfch_get_params(&l1s.next_time, &arfcn, &tsc, NULL);
dsp_load_rx_task(ALLC_DSP_TASK, burst_id, tsc);
- l1s_rx_win_ctrl(arfcn, L1_RXWIN_NB, tn);
+ l1s_rx_win_ctrl(arfcn, L1_RXWIN_NB, 0);
return 0;
}