Commit Graph

2706 Commits

Author SHA1 Message Date
Harald Welte 9b7afc615e twl3025: fix typo 2010-03-01 23:48:44 +01:00
Harald Welte cc02fa61b5 TWL3025: add default APC ramp 2010-03-01 23:48:44 +01:00
Harald Welte 81cd75e38c move macros to where they belong 2010-03-01 23:48:44 +01:00
Harald Welte d520c7e4cf layer1/tpu_window.c support for Uplink/Tx
* introduce l1s_tx_win_ctrl() function

This only controls the ABB window, and not the TRF and RFFE window yet
2010-03-01 23:48:44 +01:00
Harald Welte 59265bcae1 Prepare DSP functions needed for Uplink (Tx)
* Tell DSP to properly initialize ABB(TWL3025) registers at first DSP interrupt
* Initialize the entire API RAM to zero on dsp_power_on()
* Tell DSP to initialize the APCRAM to all-zero to preven accidential Tx
* Set number of GUARD bits to 8
* Add function to configure TCH parameters: dsp_load_tch_param()
2010-03-01 23:48:43 +01:00
Harald Welte dea01c5393 Compal RFFE suport for Upplink (PA enable) 2010-03-01 23:48:43 +01:00
Harald Welte 1327bbd6fd TRF6151: add Uplink support 2010-03-01 23:48:43 +01:00
Harald Welte 32da71ef5c TWL3025: Add uplink enable/disable function 2010-03-01 23:48:43 +01:00
Harald Welte cc2ae91e48 Import value_string utilities and some RSL stuff from OpenBSC 2010-03-01 23:48:43 +01:00
Harald Welte 649793bf04 add msgb_l1() and msgb_l1len() inline functions 2010-03-01 23:44:23 +01:00
Harald Welte 5a1ef43618 Import value_string utilities and some RSL stuff from OpenBSC 2010-03-01 23:44:23 +01:00
Harald Welte fdd0a70093 add msgb_l1() and msgb_l1len() inline functions 2010-03-01 22:30:51 +01:00
Erik Ekman 61e34acf89 Fix three more warnings 2010-03-01 22:20:36 +01:00
Erik Ekman a9d6fb6518 Fix some warnings in osmocon 2010-03-01 22:20:28 +01:00
Harald Welte d284cd9f43 Import value_string utilities and some RSL stuff from OpenBSC 2010-03-01 21:58:31 +01:00
Holger Hans Peter Freyther 45f7a9aba2 [layer2] Remove symlink... it is now provided by libosmocore 2010-03-01 19:22:13 +01:00
Harald Welte 3108c7c408 add small script with command that can be used to update libosmocore
This uses git-subtree from http://github.com/apenwarr/git-subtree
2010-03-01 13:12:01 +01:00
Harald Welte 8c353991ed Merge commit '00096acb8fbbf76b4fd8a223a2684df6c370d9f9' 2010-03-01 12:59:34 +01:00
Harald Welte 00096acb8f msgb: add msgb->l1h member 2010-03-01 12:55:47 +01:00
Harald Welte e03b8de3d4 ensure osmocom-bb builds with older gcc-3.x based toolchains 2010-02-28 20:01:47 +01:00
Harald Welte 60298c9141 ensure we always have 256bytes net data size, excluding 4 bytes headroom 2010-02-28 17:53:43 +01:00
Harald Welte ca9f6eea61 Use new multiframe scheduler for scheduling of normal bursts 2010-02-28 10:15:35 +01:00
Harald Welte b909a3b8a6 Add multiframe-level scheduler (mframe_sched.[ch])
This scheduler enables us to schedule repeating events that occur
every multiframe.  It e.g. includes definitions for BCCH and CCCH
reading.

The mframe_sched is layered on top of the tdma_sched.
2010-02-28 10:12:14 +01:00
Harald Welte 89e05fd346 tdma_sched: Explicitly advance the bucket at end of l1_sync() 2010-02-28 10:06:19 +01:00
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
Holger Hans Peter Freyther edc37630da Merge remote branch 'origin/on-waves/sccp' 2010-02-26 20:21:21 +01:00
Holger Hans Peter Freyther a358b48311 Merge remote branch 'origin/on-waves/mgcp' 2010-02-26 20:20:17 +01:00
Holger Hans Peter Freyther 8716bb6ebd Merge remote branch 'origin/master' into on-waves/sccp 2010-02-26 20:18:24 +01:00
Holger Hans Peter Freyther 3af86269a9 Merge remote branch 'origin/master' into on-waves/mgcp
Conflicts:
	openbsc/include/openbsc/Makefile.am
	openbsc/src/Makefile.am
2010-02-26 20:16:45 +01:00
Holger Hans Peter Freyther d60c7a895e [timer] Fix compile warning of the timer test 2010-02-26 20:03:13 +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
Harald Welte ac778fb85d fix msgb_talroom() calculation 2010-02-24 22:54:11 +01:00
Harald Welte 2b6322cde1 Merge remote branch 'origin/master' 2010-02-24 22:52:58 +01:00
Harald Welte f7d797424a Merge remote branch 'origin/master' 2010-02-24 22:52:58 +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