layer1/l1ctl: Split L1CTL_NEW_CCCH_REQ in FBSB_REQ nad SYNC_REQ
authorHarald Welte <laforge@gnumonks.org>
Wed, 19 May 2010 19:41:24 +0000 (21:41 +0200)
committerHarald Welte <laforge@gnumonks.org>
Wed, 19 May 2010 19:41:24 +0000 (21:41 +0200)
commit8978ec571efd7221098e5f6aa7cfbc3fa42fe1c3
treeaa145ed9b5a5e197e1824f2d95f3587d65639160
parentbcf3badc5b057c5651d15d11262afa757775cf47
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.
12 files changed:
include/l1a_l23_interface.h
src/host/layer23/include/osmocom/l1ctl.h
src/host/layer23/include/osmocom/osmocom_data.h
src/host/layer23/src/app_phone.c
src/host/layer23/src/bcch_scan.c
src/host/layer23/src/gsm322.c [changed mode: 0755->0644]
src/host/layer23/src/gsm48_rr.c
src/host/layer23/src/l1ctl.c
src/target/firmware/apps/layer1/main.c
src/target/firmware/layer1/afc.c
src/target/firmware/layer1/l23_api.c
src/target/firmware/layer1/prim_fbsb.c