Commit Graph

  • fc9632f19d Add code to control MAX2837 B1 through B7 from Jellybean. Another feeble attempt to control DC bias. Jared Boone 2012-10-17 22:28:10 -07:00
  • 143d845b05 Add code to control RXHP pin on MAX2837 (Jellybean only). I was hoping this would control the baseband DC offset problem, but no, it doesn't seem to help at all. Jared Boone 2012-10-17 21:48:41 -07:00
  • 2d79f6d69f Added support for hackrf_max2837 utility to accept registers and values as "0x" (base-16) or "0b" (base-2). Jared Boone 2012-10-17 20:55:48 -07:00
  • 2a58528782 Made explicit a few libhackrf result tests -- comparing against HACKRF_SUCCESS instead of checking for non-zero. Jared Boone 2012-10-17 17:02:44 -07:00
  • 93c1175362 Add a quick, dirty, and marginally-useful text configuration option to hackrf_si5351c example. Jared Boone 2012-10-17 17:01:56 -07:00
  • 549c943979 Add USB control of LPF baseband filter. Add max2837_set_lpf_bandwidth() function to choose available LPF filter bandwidth based on bandwidth in Hz. Change configuration of MAX2837 to set LPF_EN and FT at max2837_setup(), not in max2837_rx() or max2837_tx() (which was overriding prior filter configuration). Jared Boone 2012-10-17 17:00:36 -07:00
  • 9c4a0e94b0 Factor out sample_rate_set() from cpu_clock_init(). Implement switching between several supported sampling rates for Jellybean and Jawbreaker. Commit bits of the Si5351C USB request support that I apparently missed in a prior commit. Jared Boone 2012-10-17 16:57:26 -07:00
  • d4da08a3d7 Oops! Forgot to change MAX2837 mode from RX to TX when transceiver mode is changed. Initialize MAX5864 earlier, in "transceiver" mode (where both ADC and DAC are active), and then shift SSP1 into MAX2837 mode and leave it there, for faster tuning and RX/TX switching. Jared Boone 2012-10-17 15:59:47 -07:00
  • 6babcbe579 Add USB vendor requests to read/write Si5351C registers. Jared Boone 2012-10-17 11:57:44 -07:00
  • 7fdfde9314 Make use of i2c0_init() argument to control duty cycle, when APB1 clock shifts from IRC (~12MHz) to PLL1 (204MHz). Jared Boone 2012-10-17 11:48:35 -07:00
  • 63b1a25979 Consolidate a few clock setup tasks that repeat among many projects into cpu_clock_init(). Jared Boone 2012-10-17 11:45:30 -07:00
  • 34b4729cfe Whacked the usb_test project, which was transformed into libhackrf. Moved the Python utilities (such as they are) into a host/python directory. Jared Boone 2012-10-16 20:46:41 -07:00
  • 0ad2ad3c9a Merge branch 'master' of https://github.com/mossmann/hackrf Jared Boone 2012-10-16 20:33:50 -07:00
  • 91a9bf5ca3 Initial commit of libhackrf. Jared Boone 2012-10-16 20:33:41 -07:00
  • 27b4bab680 updated PCB specs to match sunstone Michael Ossmann 2012-10-16 20:00:23 -06:00
  • 0e420db0c8 plot options, zone updates jawbreaker-20121016 Michael Ossmann 2012-10-16 18:05:17 -06:00
  • 38b6382c5a Add a guard for stream data file read/write, to ensure fd is valid. Jared Boone 2012-10-16 16:58:36 -07:00
  • 6cd8da6930 Return of the hand-optimized assembly for SGPIO read and write interrupt. Reset only the one SGPIO slice flag that is actually causing the interrupt. Jared Boone 2012-10-16 16:57:35 -07:00
  • 1391bfc61e Flip endian-ness on USB MAX2837 register read request. Jared Boone 2012-10-16 16:56:25 -07:00
  • f249898f8b fixed missing GND on U18 Michael Ossmann 2012-10-16 14:02:00 -06:00
  • c1005740ba silkscreen zone for writing Michael Ossmann 2012-10-16 13:41:48 -06:00
  • 356dbe2132 updated date on silkscreen Michael Ossmann 2012-10-16 13:40:21 -06:00
  • 4cc865de54 Swapped constant names for HackRF VID and PID. Fortunately, I also had them backward in my call to libusb... Now the names are right! Jared Boone 2012-10-15 15:55:44 -07:00
  • 34420d3911 Merge branch 'master' of git://github.com/mossmann/hackrf TitanMKD 2012-10-14 22:13:37 +02:00
  • 537b7da06a Merge pull request #23 from jboone/master Michael Ossmann 2012-10-14 13:00:33 -07:00
  • 14e90781be Merge branch 'master' of https://github.com/mossmann/hackrf Jared Boone 2012-10-14 12:37:28 -07:00
  • bd2fab0a12 Move USB SET_CONFIGURATION-time initialization of SGPIO and bulk endpoints into a separate function. Initialize transceiver mode at SET_CONFIGURATION time. Provide switching of transceiver mode via vendor request. Provide read/write access to MAX2837 registers via vendor requests. Python utility to dump MAX2837 registers. Python utility to switch transceiver RX/TX mode. Jared Boone 2012-10-14 12:37:16 -07:00
  • a25d48f5d5 Switch default transceiver mode back to RX. Jared Boone 2012-10-14 12:25:22 -07:00
  • 52cb84959b Merge branch 'master' of git://github.com/mossmann/hackrf TitanMKD 2012-10-14 18:44:38 +02:00
  • 020d15dcc1 Merge pull request #22 from willcode/master Will Code 2012-10-14 05:37:04 -07:00
  • 334366aac3 Merge remote-tracking branch 'upstream/master' Will Code 2012-10-14 08:15:23 -04:00
  • fd2173348f Merge branch 'master' of git://github.com/mossmann/hackrf TitanMKD 2012-10-14 10:56:02 +02:00
  • 3334a38d24 readme fix Michael Ossmann 2012-10-13 21:17:36 -06:00
  • f64e42dbee updated readme photo from lemondrop/jellybean to jawbreaker Michael Ossmann 2012-10-13 21:13:56 -06:00
  • 31a31872a5 Merge pull request #21 from jboone/master Michael Ossmann 2012-10-13 19:59:10 -07:00
  • 283715df0c Update files that got out of sync somehow. Will Code 2012-10-13 20:51:26 -04:00
  • f32c6b34ca Create unions in usb_setup_t so that value, index, and length can be read as words, not just high/low bytes. Jared Boone 2012-10-13 17:06:24 -07:00
  • 3c17bad743 Stall USB endpoint if control request is not handled. Jared Boone 2012-10-13 17:03:28 -07:00
  • 048feb1316 Miscellaneous USB notes and naming clean-up. Jared Boone 2012-10-13 17:02:55 -07:00
  • 7e34950b24 Relocate compiler #defines for PACKED, ALIGNED, SECTION. Jared Boone 2012-10-13 17:01:42 -07:00
  • d398cfcc1d Use new ssp_transfer() function instead of ssp_write(). Implement max2837_spi_read(). Jared Boone 2012-10-13 16:58:22 -07:00
  • 5a428a460f Merge branch 'master' of https://github.com/mossmann/hackrf Jared Boone 2012-10-13 13:48:21 -07:00
  • 4c9df75d84 max2837: fix a couple math errors in the def file Will Code 2012-10-13 16:27:02 -04:00
  • e6593c0f3c Merge remote-tracking branch 'upstream/master' Will Code 2012-10-13 16:02:51 -04:00
  • 0d53da8593 fixed MAX2837 zero length register fields Michael Ossmann 2012-10-13 13:59:37 -06:00
  • e982854f12 Merge remote-tracking branch 'upstream/master' Will Code 2012-10-13 15:56:05 -04:00
  • 4cf0ba236d Extended common Makefile to include targets for DFU file generation and programming. Jared Boone 2012-10-13 12:29:03 -07:00
  • 57866227bf Remove weird LDSCRIPT that isn't necessary now. Change .bin generation to include only ROM-able sections. TODO: Is there a better way to do the objcopy? It'd be great to put everything in the "rom" region into the .bin, instead of having to list out -j section for each of the sections that go to ROM. Jared Boone 2012-10-13 11:37:54 -07:00
  • 168c92a3d0 Now that RxVGA gain control is working correctly, gain needs to be backed WAAAY off to get a usable capture in a fairly noisy 2.4GHz environment. Jared Boone 2012-10-13 11:07:17 -07:00
  • f4b6f08500 Fixed incorrect field with for MAX2837 VGAgain_SPI_EN field. For boards that have no B7:B1 connections, this could prove extra problematic...and for boards that do, but aren't driving those pins from the LPC. Jared Boone 2012-10-13 11:06:39 -07:00
  • 5b6b3d0c4e Merge branch 'master' of git://github.com/jboone/hackrf TitanMKD 2012-10-13 13:40:46 +02:00
  • 939cd7b9bf Merge branch 'master' of git://github.com/mossmann/hackrf TitanMKD 2012-10-13 13:12:20 +02:00
  • 8d14de21ce Fixed prior commit, where I lost the switch between endpoints based on RX or TX mode. Jared Boone 2012-10-12 09:46:49 -07:00
  • 9824a723b7 Moved invariant in sgpio_configure() loop out of loop. Originally, so I could use the value to calculate another invariant. Jared Boone 2012-10-12 09:45:18 -07:00
  • a1af4356b6 Reworked sgpio.c to make use of #defines for fields, instead of hard-coding shifts. Proper. Jared Boone 2012-10-11 20:46:21 -07:00
  • 9b579232a7 Consolidated single-slice SGPIO configuration functions into single sgpio_configure() function. Jared Boone 2012-10-11 15:45:28 -07:00
  • 1b5574d2b9 RX and TX sample buffer loops turned out to be the same, so they're consolidated. Jared Boone 2012-10-11 15:19:01 -07:00
  • 1bad2d8536 Consolidated two "deep" SGPIO configuration functions into one, qualified by transceiver mode (RX or TX). 95-ish % of the code was common. Jared Boone 2012-10-11 15:18:16 -07:00
  • 6f0fda0bee Moved transceiver_mode_t to hackrf_core.h. Changed transceiver_mode to volatile, since it's liable to be accessed at interrupt time. Jared Boone 2012-10-11 15:12:25 -07:00
  • c0cb64f316 Add support for TX mode. Add getopt control of RX or TX mode. Jared Boone 2012-10-11 13:07:25 -07:00
  • fb9ce63f7f Add (manual) switch for TX and RX mode. Add code for configuring TX mode. TODO: Consolidate lots of repetitive code. Jared Boone 2012-10-11 13:06:27 -07:00
  • 8291d7fac0 Add SGPIO configuration function for "deep" (8-slice) TX mode. Jared Boone 2012-10-11 13:04:30 -07:00
  • 0f81d361c7 Added code to support transmit from usb_test host program. Reorganization of code to support making usb_test a useful utility... Jared Boone 2012-10-10 22:11:44 -07:00
  • 04160f49cc increased MAX2837 RX output common-mode voltage to maximum Michael Ossmann 2012-10-10 21:37:45 -06:00
  • ecfaef57bd Merge pull request #19 from jboone/master Michael Ossmann 2012-10-10 17:14:06 -07:00
  • 3a9d7432c3 Changed compile optimization flag to -Os from -O2. TitanMKD demonstrated conclusively that it's a good thing. Jared Boone 2012-10-10 16:27:05 -07:00
  • d5db378647 Put RFFC5071 code back in place. Jared Boone 2012-10-10 16:17:57 -07:00
  • 788140f79a Cast USB buffer address to eliminate compiler warning. Jared Boone 2012-10-10 16:17:23 -07:00
  • 693e61b31c Removed block of assembly in favor of C code. TODO: Look at assembly and compiler -O options to avoid assembly. Jared Boone 2012-10-10 16:17:02 -07:00
  • 0253642b2e Added extern for usb_set_configuration() to eliminate compiler warning. TODO: Eventually, this should be just a callback, not the complete SET_CONFIGURATION implementation. Jared Boone 2012-10-10 16:15:12 -07:00
  • 5dbbae6d9c Removed unused functions to silence warnings. Jared Boone 2012-10-10 16:14:22 -07:00
  • 8a54e09e15 Elimination of unused argument warnings. Jared Boone 2012-10-10 16:13:37 -07:00
  • c02bf358d1 Added license/copyright to several Makefiles. Jared Boone 2012-10-10 15:50:31 -07:00
  • 092c5b7b0f Removed removing of .usbram section from .bin file output. Because there's no more .usbram section! Jared Boone 2012-10-10 15:42:30 -07:00
  • 09b768631e Tragic, but simple and effective libusb test program for reading data from the HackRF bulk IN endpoint, and dumping it to a file. Jared Boone 2012-10-10 15:22:41 -07:00
  • 155d81da4e Reworked USB code to pump SGPIO with an interrupt. Relocated USB buffers to be split across two AHB memory regions, so that USB endpoint priming doesn't choke SGPIO transfers. Added code to configure 2.4GHz front-end. Changed USB and SGPIO priority levels (probably unnecessary because sample corruption was due to USB priming bursts). Jared Boone 2012-10-10 14:39:41 -07:00
  • 165997d09b Changed USB queue head and transfer descriptor attributes to be explicitly aligned, instead of targeting a section. Added miscellaneous internal USB functions. Improved disabling of endpoints -- now clearing pending interrupts and flushing as well. Jared Boone 2012-10-10 14:39:03 -07:00
  • 5989465eb9 Add SGPIO configuration API and code, extracted from existing SGPIO projects. Jared Boone 2012-10-10 14:30:28 -07:00
  • 39eb2682f9 Split ram_ahb memory region into two, with a 32K hole where the USB buffers live. Split ram region into two, representing the two local RAM buses. Remove reference to usbram.ld, since it's no longer necessary. Jared Boone 2012-10-10 14:27:21 -07:00
  • f34e30510d Added fault handler header file, where I've defined the Cortex-M3/M4 SCB using a struct instead of a slew of #defines. This deviates from the libopencm3 method, but is superior in other ways. So, there you go. It's not in libopencm3, it's here. Added example (er, "reminder") code comment about registers to look at when debugging a Hard Fault. Jared Boone 2012-10-10 13:36:10 -07:00
  • 685f5cdd6e More detail in comments about Jellybean/Lemondrop clock destinations. Jared Boone 2012-10-10 11:51:06 -07:00
  • 4f9a5a1ba4 Fix-ups to copyrights -- missing e-mail address and inconsistent formatting. Jared Boone 2012-10-06 19:14:55 -07:00
  • aff5cc0c69 Oops, forgot license header on new files... Jared Boone 2012-10-06 19:11:19 -07:00
  • 749671029a New version of the usb_performance test firmware, with the new (and functional) USB "stack". Jared Boone 2012-10-06 18:58:59 -07:00
  • 3451a3c3d8 Tons of new USB code. It should eventually migrate into common, or even libopencm3, once it's not a steaming pile of crap... Jared Boone 2012-10-06 18:58:18 -07:00
  • 900463ee5c Added fault handler code which can be optionally compiled/linked for debugging. Jared Boone 2012-10-06 17:35:11 -07:00
  • f68fdaba7a Add .usbram section handling to linker scripts and makefile. Jared Boone 2012-10-06 17:33:17 -07:00
  • 182157a19c Add ram_ahb memory region to linker scripts. Jared Boone 2012-10-06 17:30:26 -07:00
  • 46f24d6f47 Remove ROM memory region from "ram_only" linker script. Jared Boone 2012-10-06 17:29:56 -07:00
  • 96e06de5e8 Merge branch 'master' of git://github.com/mossmann/hackrf TitanMKD 2012-10-06 08:32:31 +02:00
  • 417072b4f0 Merge remote-tracking branch 'upstream/master' Will Code 2012-10-03 19:47:38 -04:00
  • cf32fb96fe Merge branch 'master' of https://github.com/mossmann/hackrf Jared Boone 2012-10-03 09:26:30 -07:00
  • d1aac9860a fixed jawbreaker MIX_BYPASS bug Michael Ossmann 2012-10-02 23:10:13 -06:00
  • d6005d1cc5 fixed jawbreaker bug: different pin for SGPIO8 Michael Ossmann 2012-10-02 17:51:05 -06:00
  • 11ade349d1 fixed jawbreaker bug: activate correct pin function for MIXER_SCLK Michael Ossmann 2012-10-02 16:21:17 -06:00
  • c70d410394 reverted "rom" address to shadow area (allows same binary to be booted from SPIFI or USB/DFU) Michael Ossmann 2012-10-02 15:15:29 -06:00
  • 25f6e8f684 USB DFU boot by default Michael Ossmann 2012-10-02 15:09:06 -06:00
  • fbe206cae9 fixed LPC VBUS input so USB DFU boot works Michael Ossmann 2012-10-02 15:05:04 -06:00
  • e550a963ff Merge branch 'master' of git://github.com/mossmann/hackrf TitanMKD 2012-10-01 21:29:54 +02:00
  • d52b827233 copyright/license on frontend page Michael Ossmann 2012-09-30 11:41:16 -06:00