diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-09-14 21:16:58 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-09-17 20:52:40 +0200 |
commit | 78fc76cc8ff362f9e48caeb43261d953c3bae1f7 (patch) | |
tree | 2e36fe8aa3d7f3cd7f61d301a78ce4efe4c8c2df /src/target/firmware/include/layer1/tpu_window.h | |
parent | 68c40addf7f8382655f8a32af44e628527049cc0 (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/include/layer1/tpu_window.h')
-rw-r--r-- | src/target/firmware/include/layer1/tpu_window.h | 5 |
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 09856c7e..7b146f12 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); |