Commit Graph

1900 Commits

Author SHA1 Message Date
Harald Welte c468741500 explicitly terminate the TDMA scheduler set with SCHED_END_SET()
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-27 21:20:42 +01:00
Holger Hans Peter Freyther 8df932a7fd [write_queue] Add a generic write queue class
The write queue can be a dropin replacement for the bsc_fd. It
is featuring two callbacks. One for ready read and one for ready
write. Whenever there is a message in the queue the write_queue
will set the BSC_FD_WRITE flag and then call the write callback.

It will make sure to delete the msgb after the write function
has been called. This class is intended to be be used in the
osmocom, layer2, bsc_msc_ip, bsc_hack and other applications.
2010-02-26 20:30:32 +01:00
Sylvain Munaut 17a5a28202 msgb.c: Style cleanup in initialization
Don't assign the same var twice & init all from the same source.
2010-02-24 22:57:46 +01:00
Sylvain Munaut f6c0bba6dd calypso: Add experimental driver for uWire
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-02-23 15:03:05 +01:00
Sylvain Munaut 6292304120 cfi_flash: Make the init message a debug output
Most likely console isn't even up so it doesn't print correctly
anyway.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-02-23 15:02:57 +01:00
Sylvain Munaut eb5248fffe calypso/dsp: Fix printf format string in dump
In commit 9a18ba40d940c9bf173504b941e10f9638032823 (old git), this
was changed to 'fix compiler warnings'.

But %ux is not a valid format specifier at all so that produces
wrong output !

%lx is the correct format AFAICT because uint32_t is typedef'd from
unsigned long in my toolchain (ARM GCC 4.3.3 - newlib 1.17.0). This
doesn't produce any warning here.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-02-23 15:02:49 +01:00
Sylvain Munaut 16aeb95d00 comm/msgb.c: Style cleanup in initialization
Don't assign the same var twice & init all from the same source.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-02-23 15:02:41 +01:00
Sylvain Munaut 2dba741e05 apps/compal_dsp_dump: Move board_init as first call
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-02-23 15:02:03 +01:00
Harald Welte cd1c9d399c add osmocon TPU debugger support
Receives TPU RAM from target and prints it to console
2010-02-23 01:44:59 +01:00
Harald Welte 1d271dea3f Calypso TPU: Introduce TPU debug mode
Using #define TPU_DEBUG, we can now send the full TPU RAM contents
to the host PC (using a sercomm DLCI) at the time of tpu_enable()
which is very helpful for TPU debugging.
2010-02-23 01:44:46 +01:00
Harald Welte 3f3a84d516 Calypso TPU: initialize TPU RAM to zero at tpu_init() time 2010-02-23 01:44:37 +01:00
Harald Welte c7224b79bd Calyspo TPU: make add_mod5000() accept signed values
Sometimes we want to 'add' a negative value but still want the
result to be correct!
2010-02-23 01:44:28 +01:00
Harald Welte 6f14e4e969 Calypso TPU: fix address of TSP TX 3 register 2010-02-23 01:44:22 +01:00
Harald Welte 9fe66fdb0c TRF6151: move PLL and AGC configuration to right sequence in time 2010-02-23 01:44:14 +01:00
Harald Welte 68817f6508 fix typo in comment 2010-02-23 01:44:09 +01:00
Harald Welte bb263dcc70 TRF6151: close the Rx (Downlink) window after ABB is closed
There is no point in keeping the receiver running after we have
told the ABB to no longer receive anything.
2010-02-23 01:44:03 +01:00
Harald Welte 2dff711bc7 TWL3025: Ensure we don't perform downlink calibration too early
If we perform the downlink calibration too early, the TRF6151 might
not yet provide a stable signal and we'll not be able to receive
anything.

From the desired "BDLENA" time, we subtract all the delays and
latencies to determine the point in time at which the calibration
process should start.
2010-02-23 01:43:52 +01:00
Harald Welte 7b2f013566 use <gsm.h> instead of "gsm.h" 2010-02-23 01:43:31 +01:00
Harald Welte c917fd4379 sercomm: busy-wait in case we cannot allocate a msgb right now 2010-02-21 18:36:22 +01:00
Harald Welte 30ed24b0a4 sercomm_cons: allocate 252 bytes net data size plus 4 bytes headroom 2010-02-21 18:33:56 +01:00
Harald Welte 8570a2ccd8 fix msgb_talroom() calculation 2010-02-21 18:33:14 +01:00
Harald Welte e943638a92 sercomm_cons: Utilize msgb's better, don't always end at \n
In the sercomm_cons layer, ee used to enqueue a msgb for sending
every time there is an end-of-line.  However, if we send a number
of very short lines, we easily run out of msgbs.

Now we check how much msgb backlog there is in the transmit queue,
and decide to skip the end-of-line flushing if needed.

This still doesn't solve all our problems, but its still a useful
mechanism.
2010-02-21 15:16:40 +01:00
Harald Welte 0c1881a417 update build instructions 2010-02-20 23:16:23 +01:00
Harald Welte 95de639664 remove bogus autotools-generated makefile 2010-02-20 23:16:05 +01:00
Harald Welte e61df0c60e add new master Makefile
using the Makefile in the 'src' directory, we nwo build everything
2010-02-20 23:13:25 +01:00
Harald Welte 50b5545d6e convert osmocon to autotools
this needs to temporarily disable the version magic, as I don't
know how to integrate that into automake...
2010-02-20 23:12:29 +01:00
Harald Welte 41eddcb466 Merge commit '54844802115a1666496649cc43d3a01abd707bc0' into subtree-test1 2010-02-20 22:24:00 +01:00
Harald Welte 5484480211 fix select.c build (config.h) 2010-02-20 22:23:08 +01:00
Harald Welte 2afd5aa843 build of osmocon using libosmocore 2010-02-20 22:16:21 +01:00
Harald Welte a036cc2b2a add master 'build script' to build everything in one go 2010-02-20 22:16:04 +01:00
Harald Welte fb29236bf4 Merge commit 'e94ad58e8e9515c4e5bddbb64f7333cacb26353e' into subtree-test1 2010-02-20 22:08:33 +01:00
Harald Welte 4eacd8cedb Add 'src/shared/libosmocore/' from commit '3cae0398eaef6045de883849a236c38d1767cb41'
git-subtree-dir: src/shared/libosmocore
git-subtree-mainline: e54eb7c17c
git-subtree-split: 3cae0398ea
2010-02-20 21:09:43 +01:00
Harald Welte 3cae0398ea add missing automake / autoconf files 2010-02-20 21:09:24 +01:00
Harald Welte e54eb7c17c start using libosmocore instead of local osmocom copy 2010-02-20 20:39:52 +01:00
Harald Welte ec8b4501c7 intial checkin of the libosmocore project 2010-02-20 20:34:29 +01:00
Harald Welte 3e1ebe4190 migrate most osmocom code to new libosmocore
libosmocore is a new library that has been created out of OpenBSC,
and it provides almost everything we've tried here with libosmocom.

The only remaining part is the 'debug' part
2010-02-20 18:58:12 +01:00
Harald Welte 055318a33d fix typo in README (Timo Juhani Lindfors) 2010-02-20 17:33:24 +01:00
Harald Welte 89b1c361e3 Use ARFCN as specified from Layer2
with this commit, Layer2 can tell Layer1 to sync to a new CCCH on
a specified ARFCN.
2010-02-20 00:57:16 +01:00
Harald Welte d5cbd0fe79 gsmtap patch cleanup
* remove commented-out code
* explain what GSMTAP is and reference projects that can generate it
* update copyright notice

I will submit this to wireshark mainline now.
2010-02-19 23:01:57 +01:00
Harald Welte 6aeab7beb2 add symlink for gsmtap header 2010-02-19 22:50:33 +01:00
Harald Welte 8428d7c531 add UDP PORT definition to gsmtap.h 2010-02-19 22:50:18 +01:00
Harald Welte 4625209bb9 finish GSMTAP output support (and enable it)
Layer2 now sends GSMTAP packets to a UDP port on localhost, where
wireshark can pick them up in realtime and display them.
2010-02-19 22:43:51 +01:00
Harald Welte 3a6ed97a23 import wireshark GSMTAP patch 2010-02-19 20:22:34 +01:00
Harald Welte 36c9d36cf6 add (incomplete) gsmtap integration for feeding frames in wireshark 2010-02-19 20:21:04 +01:00
Harald Welte 2df0b01363 frequency error is actually twice of what we thought.
The cause is really not clear.  The formual using 2*Pi to convert
from radians to frequency is perfectly correct.

However, measurements with various test equipment (including Racal 6103)
have shown our frequency error estimate is always off by a power of two...
2010-02-18 19:32:07 +01:00
Harald Welte 18ab2998bb add README on how to build the system 2010-02-18 19:28:49 +01:00
Harald Welte 15594a7c0e add COPYING files to osmocon, firmware and layer2 2010-02-18 19:23:46 +01:00
Harald Welte 45a65c6fdd add *.map files to .gitignore 2010-02-18 17:01:25 +01:00
Harald Welte 9cad18079c Fix path names due to rename from hello_world to firmware 2010-02-18 16:52:10 +01:00
Harald Welte fbe7b94c9c Initial import of OsmocomBB into git repository 2010-02-18 16:46:36 +01:00