70 Commits

Author SHA1 Message Date
Michael Ossmann
413409760a Set version to 2024.02.1+ 2024-02-23 13:09:46 -05:00
Michael Ossmann
109d7c025c Set version to 2024.02.1 2024-02-22 14:11:01 -05:00
Jonathan Suite
dab548bf29 Firmware updates to allow fine-grained control of biast from command line (#1314)
* Initial commit of hackrf_biast

* Cleaned up hackrf_biast

* Cleaned up usage info

* Include getopt.h for non-GNU systems

* Add support for overriding HackRF's default antenna power behavior in firmware.  Add support for specifying antenna power behavior in libhackrf.

* Moved bias tee config routines into user_config.c, cleaned up operation of hackrf_biast

* hackrf_biast now calls usage() and exits when invoked with no arguments

* Fixed minor documentation error in usage()

* minor syntax cleanup

* Add some documentation to the host API call

* Add proper declaration magic in hackrf.h to hackrf_set_user_bias_t_opts() to appease Visual Studio

* Documentation changes suggested by @martinling

* Moved bias t setting above switch statement, removed line that explicit turned bias t off when entering OFF mode

* Change hackrf_set_user_bias_t_opts() to use a friendly struct() instead of a bitmask.  User friendliness fixes to hackrf_biast options.  More clang-format appeasement.

* Removed support for integer mode args from hackrf_biast

* clang-format error fixes

* Tweaked position of comment for clang-format v14

* Reformat files with clang-format v14 instead of 16

* Remove internal numeric modes for bias T settings

Co-authored-by: Martin Ling <martin-github@earth.li>

* Fix documentation error in hackrf_biast.c

---------

Co-authored-by: Martin Ling <martin-github@earth.li>
2023-09-13 11:15:30 -04:00
Michael Ossmann
00253b02e1 set version to 2023.01.1+ 2023-02-08 14:03:06 -05:00
Michael Ossmann
d9ebb089a5 set version to 2023.01.1 2023-02-01 00:22:29 -05:00
Mike Walters
bfe882a2fa h1r9: add MAX283x abstraction layer 2023-01-06 14:33:53 +00:00
Michael Ossmann
3738270e4f h1r9: use MAX2839 2023-01-06 14:33:53 +00:00
Michael Ossmann
8aa79e9fe5 h1r9: use timer to detect external clock frequency 2023-01-06 12:45:46 +00:00
Mike Walters
060d9cbd8a Add firmware_info structure 2023-01-05 15:13:06 +00:00
Michael Ossmann
5acd0cb99e set version to 2022.09.1+ 2022-10-24 15:14:00 -04:00
Michael Ossmann
b6acd66cfe set version to 2022.09.1
Starting with this release we will no longer use "unknown" as the
default software version string used in cases where the version cannot
be determined from context. Instead we commit the release version string
to git so that any software built from the tagged commit will have the
appropriate release version string. After the release we will commit a
post-release version string as the new default.

We will continue to use the commit hash as version string when the
software is built inside a git repository.
2022-09-29 05:20:39 -04:00
Michael Ossmann
1f9f597ea8 firmware: use python3 interpreter, not python 2022-09-26 16:46:04 -04:00
Michael Ossmann
9329c5e44e Detect hardware platform at run-time.
Firmware now detects the hardware it is running on at startup and
refuses to run if it is compiled for the wrong platform. The board ID
returned by firmware to the host is now derived from run-time detection
rather than a compile-time value. A separate method to retrieve
compile-time supported platform is added.

On HackRF One, pin straps are checked to determine hardware revision.
This is informational to aid troubleshooting and does not affect any
function.
2022-09-14 07:08:47 -04:00
Mike Walters
6d56217762 Fix automatic rebuilding of M0 code
This uses `add_custom_command` to run a cmake script instead of using
`configure_file` directly, which allows for adding dependencies and
creates an ouput that can be depended on.

It also uses `add_custom_command` instead of `add_custom_target` to
create the M0 binary, since custom targets have no output file to depend
on.

Unfortunately, multiple targets cannot depend on the same generated file
or cmake tries to run the generation multiple times in parallel. So, the
.bin/.s generation is now duplicated for each target so they don't
conflict.

fixes #693
2021-11-10 11:31:42 +00:00
Mike Walters
05b1650a6a Rename hackrf-ui.[ch]
Every other source file uses underscores! :(
2020-01-22 14:20:23 +00:00
Mike Walters
4d23acd2fd Add sgpio_debug tools 2020-01-20 23:33:44 +00:00
Michael Ossmann
208fae7538 Merge pull request #645 from jboone/master
Sync up PortaPack UI changes.
2020-01-06 16:31:28 -07:00
Michael Ossmann
1569737109 Merge pull request #607 from dominicgs/portapack_ui_opera_cake_coexistence
Allow portapack and opera cake to coexist and still enable the PP UI
2020-01-06 16:28:58 -07:00
Jared Boone
53e8d698c7 CMake: Extracted custom binary targets into a macro.
Less error-prone, making changes across the (now three) different binaries for each project.
2019-03-27 11:18:24 -07:00
Jared Boone
cb821e4602 CMake: Separate run-from-RAM and DFU binaries.
PortaPack uses the run-from-RAM build for HackRF mode, but doesn't want the serial number to show up as "RunningFromRAM".
2019-03-27 10:44:26 -07:00
Dominic Spill
509c8f4c91 Allow building from both firmware/build/ and firmware/hackrf_usb/build 2019-03-07 15:07:56 -07:00
Jared Boone
4fefd829ba CMake: Fix blinky and rad1o dependencies and PortaPack-related breakage. 2019-03-02 14:23:06 -08:00
Jared Boone
8bc8bc13f0 PortaPack: Remove conditional PortaPack code.
TODO: DFU mode returns. I fear HackRF mode in PortaPack/HAVOC will not work.
2019-03-02 14:23:06 -08:00
Jared Boone
c32d57158a PortaPack: Remove weak UI functions, detect and return UI function table.
TODO: Side effect was that now blinky has a lot of unreasonable dependencies.
TODO: rad1o breakage is likely...
2019-03-02 14:23:06 -08:00
Dominic Spill
b701579906 Allow portapack and opera cake to coexist and still enable the PP UI
The side effect of this is to disable GPIO mode for OC, but I2C still
works
Using both addons together is super unlikely
2019-02-01 12:04:40 -07:00
Dominic Spill
4507130608 Merge pull request #584 from jboone/cpld_checksum
Cpld checksum
2019-01-31 15:16:05 -07:00
Jared Boone
499ac3ad4a PortaPack: Move UI code to hackrf_usb project.
Was in common/ and in the common CMake file, which meant it was being included in the blinky project, which was unnecessary.
2019-01-31 09:37:48 +00:00
Dominic Spill
31079258e9 Workaround for avoiding conflicting libopencm3 targets 2019-01-30 15:29:17 -07:00
Jared Boone
e433bee0b8 CMake: Move libopencm3 dependency out of CMake include file.
Don't declare the libopencm3 target once from each project subdirectory. CMake will complain terribly.
2019-01-22 15:21:43 -08:00
Jared Boone
97806e8159 PortaPack: Build DFU binary without forcing serial number to "RunningFromRAM".
This was causing problems for HackRF mode, where some host PC software was depending on a valid serial number.
2019-01-15 11:31:39 -08:00
Jared Boone
cd24e01d75 CMake: Put libopencm3 dependencies in the right place. 2018-12-30 14:11:11 -08:00
Jared Boone
1d26b59b2d CMake: incorporate libopencm3 into build process. 2018-12-30 13:42:01 -08:00
Jared Boone
bb2fe4259c CMake: Base paths off location of hackrf-common.cmake. 2018-12-28 17:07:51 -08:00
Jared Boone
961ad732fa CMake: Create DFU path variable. 2018-12-28 17:07:30 -08:00
Jared Boone
d8f579af2b Merge from mossmann/master 2018-12-27 14:56:29 -08:00
Dominic Spill
454e32b8c8 Travis artefacts (#564)
* Try artefacts deployed to gh_pages

* Try to use gh_pages from the travis_artefacts branch

* Try deploying to a different repo

* Try to organise files deployed to github pages

* Test pushing a local dir to master

* Try pushing to original repo

* Be verbose so I can debug it

* Setting env variables

* Oops, environment variables aren't what I thought

* Try to push to nightly repo

* Remove unused cp command

* Copy firmware to archive directory

* Fix pathing to artefacts

* Use TRAVIS_BUID_DIR instead of assuming path

* Use mkdir -p to ensure directories exist

* Put / back in to CPLD path

* Move repo to GSG

* Switch to master branch

* Add nightly deployment

* Fix escaping in sed command

* Allow firmware version styring to be overridden

* Fix some sed commands....

* Switch to master branch for builds
2018-12-20 20:38:10 -07:00
Dominic Spill
9da826e9ef Add Windows build art(e|i)facts (#561)
This includes:
 * Cmake clean up - thanks @Qyriad
 * Windows binaries saved after each appveyor build
 * A bump to the Visual Studio version that we use to build it
 * An appveyor cygwin script for building firmware, it doesn't work but it seems like someone might pick it up and make it work, or blow it away if we switch to Travis firmware artefacts
2018-12-05 18:45:26 -07:00
Jared Boone
ccc86aad14 Add support for PortaPack user interface add-on board. 2018-08-01 21:05:10 -07:00
Dominic Spill
bde5ca9f58 DFU serial number - avoid reading serial from flash chip
Set a DFU mode specific serial number
2018-03-27 18:08:49 -06:00
Dominic Spill
92f122d43a Firmware: no longer require dfu-prefix
it was adding a header that we weren't using anyway
2018-03-22 12:29:27 -06:00
schneider
7526723f50 fix(cmake): Add max2871_regs.c to the build 2017-02-03 19:26:19 +01:00
schneider
07f800d57a fix(dfu): Use original HackRF DFU tools 2017-01-29 22:54:44 +01:00
schneider
70c41463b1 refact(mixer): Basic mixer abstraction 2017-01-26 00:31:43 +01:00
schneider
35ca538c18 Merge remote-tracking branch 'mossmann/master' into rad1o
Just a very rough merge to get off the ground. Major parts are not yet
implemented. The mixer intergration is in a messed up state. Part which
need work have been marked with XXX

Conflicts:
	firmware/common/hackrf_core.c
	firmware/common/hackrf_core.h
	firmware/common/max2837.c
	firmware/common/max2837.h
	firmware/common/rf_path.c
	firmware/common/rffc5071.c
	firmware/common/rffc5071.h
	firmware/common/sgpio.c
	firmware/common/si5351c.c
	firmware/common/tuning.c
	firmware/common/w25q80bv.c
	firmware/common/w25q80bv.h
	firmware/common/xapp058/ports.c
	firmware/hackrf-common.cmake
	firmware/hackrf_usb/hackrf_usb.c
	firmware/hackrf_usb/usb_api_register.c
	firmware/hackrf_usb/usb_api_transceiver.c
	host/hackrf-tools/src/hackrf_transfer.c
2017-01-26 00:21:58 +01:00
Dominic Spill
8ed9d91111 Build SPI flash and DFU versions of firmware every time 2016-10-01 13:50:05 +01:00
Dominic Spill
eec30d817b Merge pull request #229 from dominicgs/dfu_build_fix
Support both commonly available versions of dfu-util (0.7/0.8)
2016-01-14 18:22:21 +00:00
Dominic Spill
90bc36c9da Support both commonly available versions of dfu-util (0.7/0.8) 2015-12-17 19:09:29 +00:00
Stefan `Sec` Zehl
f8a2b60d6d Remove dependency on old dfu-suffix 2015-07-22 23:32:45 +02:00
Tobias Schneider
c79c53c52f chore(name): We are now rad1o 2015-06-07 23:33:24 +02:00
Tobias Schneider
c05929fe25 fix(common, hackf_usb): Make it compile for rad10 2015-06-06 18:49:09 +02:00