summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/afc.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/layer1/afc.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/layer1/afc.c')
-rw-r--r--src/target/firmware/layer1/afc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/firmware/layer1/afc.c b/src/target/firmware/layer1/afc.c
index 909e306a..8e72f74d 100644
--- a/src/target/firmware/layer1/afc.c
+++ b/src/target/firmware/layer1/afc.c
@@ -51,6 +51,7 @@ static struct afc_state afc_state = {
.period = AFC_PERIOD,
.min_valid = AFC_MIN_MUN_VALID,
},
+ .dac_value = 500,
};
/* The AFC DAC in the ABB has to be configured as follows: