summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/apps/layer1/main.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-19 21:41:24 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-19 21:41:24 +0200
commit8978ec571efd7221098e5f6aa7cfbc3fa42fe1c3 (patch)
treeaa145ed9b5a5e197e1824f2d95f3587d65639160 /src/target/firmware/apps/layer1/main.c
parentbcf3badc5b057c5651d15d11262afa757775cf47 (diff)
layer1/l1ctl: Split L1CTL_NEW_CCCH_REQ in FBSB_REQ nad SYNC_REQ
We really want to have those two as distinct operations - and we want proper state machines in L1 to quickly return if they've managed to acquire a FB or SB or not. Otherwise scanning will take ages... This code now introduces a new l1ctl_fbsb_req that is sent via L1CTL to ask for a bitmask of FB0/FB1/SB operations. The actual FB0/FB1 detection now no longer runs for 500 TDMA interrupts but completes as soon as we either know there is no FCCH, or that our frequency error is smaller than a caller-specified threshold. FB0/FB1 are already working, SB is not yet, sorry.
Diffstat (limited to 'src/target/firmware/apps/layer1/main.c')
-rw-r--r--src/target/firmware/apps/layer1/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/firmware/apps/layer1/main.c b/src/target/firmware/apps/layer1/main.c
index bc968b42..a4081233 100644
--- a/src/target/firmware/apps/layer1/main.c
+++ b/src/target/firmware/apps/layer1/main.c
@@ -90,6 +90,7 @@ int main(void)
tpu_frame_irq_en(1, 1);
while (1) {
+ l1a_compl_execute();
update_timers();
}