summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/sync.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/sync.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/sync.c')
-rw-r--r--src/target/firmware/layer1/sync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c
index cd76c2eb..c8840ded 100644
--- a/src/target/firmware/layer1/sync.c
+++ b/src/target/firmware/layer1/sync.c
@@ -257,6 +257,9 @@ static void l1_sync(void)
* TDMA frame (including setup/cleanup steps) */
sched_flags = tdma_sched_flag_scan();
+ if (sched_flags & TDMA_IFLG_TPU)
+ l1s_win_init();
+
tdma_sched_execute();
if (dsp_api.r_page_used) {