summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorSylvain Munaut2010-09-14 21:16:58 +0200
committerSylvain Munaut2010-09-17 20:52:40 +0200
commit78fc76cc8ff362f9e48caeb43261d953c3bae1f7 (patch)
tree2e36fe8aa3d7f3cd7f61d301a78ce4efe4c8c2df /src/target/firmware/include
parentfw/layer1: Convert primitives to use common DSP/TPU scenario ending (diff)
downloadosmocom-78fc76cc8ff362f9e48caeb43261d953c3bae1f7.tar.gz
osmocom-78fc76cc8ff362f9e48caeb43261d953c3bae1f7.tar.xz
osmocom-78fc76cc8ff362f9e48caeb43261d953c3bae1f7.zip
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/include')
-rw-r--r--src/target/firmware/include/layer1/tpu_window.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/target/firmware/include/layer1/tpu_window.h b/src/target/firmware/include/layer1/tpu_window.h
index 09856c7..7b146f1 100644
--- a/src/target/firmware/include/layer1/tpu_window.h
+++ b/src/target/firmware/include/layer1/tpu_window.h
@@ -15,8 +15,9 @@ enum l1_txwin_type {
_NUM_L1_TXWIN
};
-void l1s_rx_win_ctrl(uint16_t arfcn, enum l1_rxwin_type wtype, uint8_t tn);
-void l1s_tx_win_ctrl(uint16_t arfcn, enum l1_txwin_type wtype, uint8_t pwr, uint8_t tn);
+void l1s_win_init(void);
+void l1s_rx_win_ctrl(uint16_t arfcn, enum l1_rxwin_type wtype, uint8_t tn_ofs);
+void l1s_tx_win_ctrl(uint16_t arfcn, enum l1_txwin_type wtype, uint8_t pwr, uint8_t tn_ofs);
void tpu_end_scenario(void);