Commit Graph

162 Commits

Author SHA1 Message Date
Harald Welte c4c7c6add5 e4k: add dc offset calibration code 2012-03-05 18:25:11 +01:00
Harald Welte 5a23c52120 fast_source: We switch the LED based on the streaming IN interface, not OUT 2012-03-05 17:03:09 +01:00
Harald Welte b6697b17fc fast_source: implement get/set of mute feature
this avoids unneccessary stalls on EP0
2012-02-29 11:52:21 +01:00
Harald Welte cc42e4df36 e4k: initialize tuner with smalles filters possible 2012-02-29 02:45:06 +01:00
Harald Welte be7d17091d uart_cmd: make sure 'set' type commands are visible on the console 2012-02-29 02:31:02 +01:00
Harald Welte 8c63475355 fix erroneous printing of command failure 2012-02-29 02:30:34 +01:00
Harald Welte f49513d482 tuner gain is not gettable 2012-02-29 02:15:40 +01:00
Harald Welte 67877f1692 improve commandline readability (prompt) and more tuner commands 2012-02-29 02:11:06 +01:00
Harald Welte c8ac848695 increase command buffers from 16 to 32 bytes 2012-02-29 02:10:36 +01:00
Harald Welte 00123abb2d move SSC commands to osdr_ssc.c 2012-02-29 01:57:39 +01:00
Harald Welte 2a2c03a7b9 fpga related register/field dumping code (abstract) 2012-02-29 01:49:20 +01:00
Harald Welte 0297414977 sdr-test: make sure to automatically start SSC+DMA when USB ISO EP opens
this automatically starts to send samples at the time the usb audio
source on the host PC is opened.
2012-02-29 00:31:17 +01:00
Harald Welte d7cc695022 fast_source: export the currently selected interface altsettings 2012-02-29 00:30:01 +01:00
Harald Welte 66a2e2bbe3 SSC: add ssc_active() function to determine if SSC is active 2012-02-29 00:29:37 +01:00
Harald Welte 8f2ba81efa dead code removal 2012-02-29 00:05:19 +01:00
Harald Welte 8930b8a3ab fix tuner.init, add tuner.gain 2012-02-28 22:33:58 +01:00
Harald Welte 5a389db1c1 uart_cmd: introduce argument array parsing 2012-02-28 22:21:09 +01:00
Harald Welte 5bf0e748d8 add explicit comnand to get ssc stats 2012-02-28 22:02:16 +01:00
Harald Welte c4166bf874 introduce new uart command layer for controlling the firmware
You can now issue commands like

execute a command:
	fpga.dump!
set a value:
	tuner.freq=100000000
get a value:
	tuner.freq?
2012-02-28 21:33:07 +01:00
Harald Welte 741335fe32 logging: fix CR at end of log line 2012-02-28 21:32:53 +01:00
Harald Welte 41f8d83364 add simple command parser to be used from the UART 2012-02-28 21:29:08 +01:00
Harald Welte e81bf0ed6f add code for SSC DMA and USB fast audio source
This version is able to acutually DMA data from SSC via USB audio into
the PC.
2012-02-28 03:11:29 +01:00
Harald Welte 20656119c0 Fix SSC bit-ordering and sync polarity, DMAC IRQ and remove MEM2MEM 2012-02-26 23:15:52 +01:00
Harald Welte 45f0e31e20 sdr-test-project: Add (non-functional) DMA code experiments
I've been unable to get the DMAC to pull data out of the SSC RHR so far.
2012-02-21 10:42:09 +01:00
Harald Welte 07cc0443b7 FPGA SPI: Complete rewrite, don't use much of at91lib
The problem is that the SPI routines of at91lib will cause CS to go
high between the individual bytes of a transfer, causing the state
machine in the FPGA to re-start (during write).

CSAAT doesn't seem to work in the hardware, as we seem to loose TDRE
events after transmit in this configuration.

The current code is fast enough to make sure CS doesn't get inactive
during the transfer of 5 octets.
2012-02-18 23:37:44 +01:00
Harald Welte 5fb405d45e Add support for read/write of FPGA registers via SPI
osdr_fpga_reg_read() and osdr_fpga_reg_write() can be used to access the
register interface exposed by the FPGA via SPI.  The "p" command on the
serial console can be used to read the FPGA ID register (0xdeadbeef).
2012-02-15 00:43:09 +01:00
Christian Daniel 0b739924a4 Merge branch 'master' of git.osmocom.org:osmo-sdr 2012-01-30 22:28:33 +01:00
Christian Daniel 4cd82c2369 add FPGA flash mechanism, support for Windows 2012-01-30 22:25:16 +01:00
Harald Welte 87fd3c1ff2 dos2unix conversion of si570.[ch] 2012-01-24 10:26:53 +01:00
Harald Welte d5c4d1edc7 Add GPLv3 license header to all our code 2012-01-24 10:25:31 +01:00
Harald Welte c2c221703d add .gitignore for firmare .elf / .bin 2012-01-15 21:18:21 +01:00
Harald Welte fe8242652a add usb-fast-audio-source as example DFU application 2012-01-15 21:17:54 +01:00
Harald Welte 55cfbf9d12 add utility program for generating USB strings 2012-01-15 21:17:37 +01:00
Harald Welte ffcfa58724 add README for DFU 2012-01-15 21:17:27 +01:00
Harald Welte d33031df67 import DFU loader for at91sam3u-ek / osmo-sdr 2012-01-15 20:57:36 +01:00
Dimitri Stolnikov 6e1fdc647f first draft of OsmoSDR block functionality 2012-01-11 23:30:16 +01:00
Dimitri Stolnikov 67562ee258 add cmake module for gnuradio audio library 2012-01-11 22:03:03 +01:00
Dimitri Stolnikov 74655fc98b rename square blocks to source and sink blocks 2012-01-11 22:01:48 +01:00
Dimitri Stolnikov bb31e6bc85 rename howto to osmosdr 2012-01-11 21:20:04 +01:00
Dimitri Stolnikov 087932334c import gr-howto files to work on 2012-01-11 20:35:06 +01:00
Harald Welte a4d26bb5cd remove bogus dos line endings 2011-12-31 23:23:52 +01:00
Harald Welte 820a6436cc add minimal README 2011-12-31 18:02:06 +01:00
Harald Welte 4642dffb5d import 'sdr-test-project' for hardware verification 2011-12-31 17:58:39 +01:00
Harald Welte 41c7d85cf0 rename 'block schematic' to 'block diagram' 2011-12-31 15:32:50 +01:00
Harald Welte de8a823ede add block diagram 2011-12-31 15:31:22 +01:00
Harald Welte 6cd41e8e2b e4k: document functions, invert logic of STBY 2011-12-29 23:31:11 +01:00
Harald Welte dd77bb2e0a add function to power-up/power-down FPGA 2011-12-29 22:30:41 +01:00
Harald Welte 13a54079b1 e4k: add functions to power up/down the E4K RF tuner 2011-12-29 16:53:41 +01:00
Harald Welte edac8a6555 make the non-calibrated udelay() a bit more realistic 2011-12-29 00:51:02 +01:00
Harald Welte 5eb8121cef si570: lots of debug code to find out what's happening 2011-12-28 02:34:40 +01:00