summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/prim_rach.c
diff options
context:
space:
mode:
authorSylvain Munaut2010-09-14 20:48:58 +0200
committerSylvain Munaut2010-09-17 20:52:40 +0200
commitf06d54ed6fec78ec9c6dd106e5634b3a8c6a5220 (patch)
tree3ae047a5c2e23e9354e41372295ad067833f2655 /src/target/firmware/layer1/prim_rach.c
parent[layer23] Added XOR and COMP128 encryption to test SIM (diff)
downloadosmocom-f06d54ed6fec78ec9c6dd106e5634b3a8c6a5220.tar.gz
osmocom-f06d54ed6fec78ec9c6dd106e5634b3a8c6a5220.tar.xz
osmocom-f06d54ed6fec78ec9c6dd106e5634b3a8c6a5220.zip
fw/layer1: Add a priority field for sched_item
Each item has a priority associated to it. The standard is : -4 -> Responses processing -3 -> L1S parameters changes -2 -> [Reserved for TPU window setup] -1 -> (anything) 0..7 -> Commands relative to time slot n (relative to current l1s main timeslot) 8 -> (anything) 9 -> [Reserved for TPU window cleanup] 10 -> (anthing) Note that with this modification, an item scheduled for the current frame from within a call back won't have its priority respected ! Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/layer1/prim_rach.c')
-rw-r--r--src/target/firmware/layer1/prim_rach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/firmware/layer1/prim_rach.c b/src/target/firmware/layer1/prim_rach.c
index 02671af..11c9a7e 100644
--- a/src/target/firmware/layer1/prim_rach.c
+++ b/src/target/firmware/layer1/prim_rach.c
@@ -99,9 +99,9 @@ static int l1s_tx_rach_resp(__unused uint8_t p1, __unused uint8_t burst_id,
/* sched sets for uplink */
const struct tdma_sched_item rach_sched_set_ul[] = {
- SCHED_ITEM(l1s_tx_rach_cmd, 1, 0), SCHED_END_FRAME(),
+ SCHED_ITEM(l1s_tx_rach_cmd, 3, 1, 0), SCHED_END_FRAME(),
SCHED_END_FRAME(),
- SCHED_ITEM(l1s_tx_rach_resp, 1, 0), SCHED_END_FRAME(),
+ SCHED_ITEM(l1s_tx_rach_resp, -4, 1, 0), SCHED_END_FRAME(),
SCHED_END_SET()
};