summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/tdma_sched.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso1-1/+1
This patch changes include paths to get osmocom-bb working with the current libosmocore tree. Among all these renames, you can notice several tweaks that I added on purpose, and that require some explanation, they are: * hexdump() in osmocon.c and osmoload.c has been renamed to avoid clashing with hexdump() defined in libosmocore. * gsmmap now depends on libosmogsm. Actually I had to cleanup Makefile.am because I was experiencing weird linking problems, probably due to a bug in the autotools. With the change included in this patch, I got it compiled and linked here correctly. This patch has been tested with the phone Motorola C123 and the following images files: * firmware/board/compal_e88/hello_world.compalram.bin * firmware/board/compal_e88/layer1.compalram.bin Using the osmocon, bcch_scan and mobile tools. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2010-09-17fw/layer1: Add a 'flags' field to sched_items and the infra to use itSylvain Munaut1-0/+20
This is only preparation Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-17fw/layer1: Add a priority field for sched_itemSylvain Munaut1-3/+42
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>
2010-04-28fw/layer1: Change the tdma_schedule_set return value to # frames spannedSylvain Munaut1-3/+4
Previously, it returned the number of item + number of frames spanned by the set. But that value isn't that useful and wasn't used by anyone. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-03-07start to use libosmocore within the firmwareHarald Welte1-1/+2
* remove linuxlist.h copy and use osmocore * don't put 'struct gsm_time' into l1ctl packets * include rx_level and snr for each burst in l1ctl * properly build libosmocore.a for target * move gsmtime functions into libosmocore * move ctype.h to standard location
2010-03-07fix even more compiler warningsHarald Welte1-1/+2
2010-03-02fix merge artefacts, make firmware build againHarald Welte1-2/+2
2010-03-01extend TDMA scheduler functions to use third parameter (p3)Harald Welte1-5/+8
The idea of the third parameter is that it can be specified on a tdma_schedule_set() level. The multi-frame scheduler can thus use it to pass some context information into the l1s_{cmd,resp}_*() functions, such as the MF TASK and whether or not it is SDCCH or SACCH.
2010-02-28tdma_sched: Explicitly advance the bucket at end of l1_sync()Harald Welte1-6/+12
2010-02-27explicitly terminate the TDMA scheduler set with SCHED_END_SET()Harald Welte1-5/+15
This has the advantage that any caller or other reference does not need to know the size of the set, which makes it simpler to use the sched_set as a constant initializer in some other const/static data structure.
2010-02-18Initial import of OsmocomBB into git repositoryHarald Welte1-0/+163