Remove 'RADIO_CONFIG_LEGACY'
Some checks failed
Build / host (3.10.0, gcc, Unix Makefiles, --target install, --build, ubuntu, bash, sudo) (push) Failing after 3s
Build / host (latest, gcc, Unix Makefiles, --install, latest, ubuntu, bash, sudo) (push) Failing after 3s
Build / firmware (HACKRF_ONE, 3.12.0, ubuntu) (push) Failing after 2s
Build / firmware (HACKRF_ONE, latest, ubuntu) (push) Failing after 3s
Build / firmware (JAWBREAKER, 3.12.0, ubuntu) (push) Failing after 3s
Build / firmware (JAWBREAKER, latest, ubuntu) (push) Failing after 3s
Build / firmware (PRALINE, 3.12.0, ubuntu) (push) Failing after 3s
Build / firmware (PRALINE, latest, ubuntu) (push) Failing after 3s
Build / firmware (RAD1O, 3.12.0, ubuntu) (push) Failing after 2s
Build / firmware (RAD1O, latest, ubuntu) (push) Failing after 2s
Build / firmware (UNIVERSAL, 3.12.0, ubuntu) (push) Failing after 3s
Build / firmware (UNIVERSAL, latest, ubuntu) (push) Failing after 2s
Check code style / clang-format (push) Failing after 3s
Check code style / clang-format-1 (push) Failing after 2s
Check code style / clang-format-2 (push) Failing after 2s
Check code style / clang-format-3 (push) Failing after 4s
Check includes / includes-check (HACKRF_ONE, 3.12.0) (push) Failing after 4s
Check includes / includes-check (HACKRF_ONE, latest) (push) Failing after 4s
Check includes / includes-check (JAWBREAKER, 3.12.0) (push) Failing after 4s
Check includes / includes-check (JAWBREAKER, latest) (push) Failing after 3s
Check includes / includes-check (PRALINE, 3.12.0) (push) Failing after 4s
Check includes / includes-check (PRALINE, latest) (push) Failing after 3s
Check includes / includes-check (RAD1O, 3.12.0) (push) Failing after 4s
Check includes / includes-check (RAD1O, latest) (push) Failing after 5s
Check includes / includes-check (UNIVERSAL, 3.12.0) (push) Failing after 6s
Check includes / includes-check (UNIVERSAL, latest) (push) Failing after 8s
Build / host (3.10.0, gcc, Unix Makefiles, --target install, --build, macos, bash, sudo) (push) Has been cancelled
Build / host (3.21.7, -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake --install-prefix=$env:GITHUB_WORKSPACE/install, msvc, Visual Studio 17 2022, --install, 17.1… (push) Has been cancelled
Build / host (4.2.6, -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake --install-prefix=$env:GITHUB_WORKSPACE/install, msvc, Visual Studio 18 2026, --install, lates… (push) Has been cancelled
Build / host (latest, --install-prefix=/usr/local, gcc, MSYS Makefiles, --install, latest, windows, msys2) (push) Has been cancelled
Build / host (latest, -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake --install-prefix=$env:GITHUB_WORKSPACE/install, msvc, Visual Studio 18 2026, --install, late… (push) Has been cancelled
Build / firmware (PRALINE, latest, macos) (push) Has been cancelled
Build / firmware (PRALINE, latest, windows) (push) Has been cancelled
Build / firmware (RAD1O, latest, windows) (push) Has been cancelled
Build / firmware (UNIVERSAL, 3.12.0, macos) (push) Has been cancelled
Build / firmware (UNIVERSAL, latest, macos) (push) Has been cancelled
Build / firmware (UNIVERSAL, latest, windows) (push) Has been cancelled
Build / host (latest, gcc, Unix Makefiles, --install, latest, macos, bash, sudo) (push) Has been cancelled
Build / firmware (HACKRF_ONE, latest, windows) (push) Has been cancelled
Build / firmware (JAWBREAKER, latest, windows) (push) Has been cancelled
Build / firmware (PRALINE, 3.12.0, macos) (push) Has been cancelled
Some checks failed
Build / host (3.10.0, gcc, Unix Makefiles, --target install, --build, ubuntu, bash, sudo) (push) Failing after 3s
Build / host (latest, gcc, Unix Makefiles, --install, latest, ubuntu, bash, sudo) (push) Failing after 3s
Build / firmware (HACKRF_ONE, 3.12.0, ubuntu) (push) Failing after 2s
Build / firmware (HACKRF_ONE, latest, ubuntu) (push) Failing after 3s
Build / firmware (JAWBREAKER, 3.12.0, ubuntu) (push) Failing after 3s
Build / firmware (JAWBREAKER, latest, ubuntu) (push) Failing after 3s
Build / firmware (PRALINE, 3.12.0, ubuntu) (push) Failing after 3s
Build / firmware (PRALINE, latest, ubuntu) (push) Failing after 3s
Build / firmware (RAD1O, 3.12.0, ubuntu) (push) Failing after 2s
Build / firmware (RAD1O, latest, ubuntu) (push) Failing after 2s
Build / firmware (UNIVERSAL, 3.12.0, ubuntu) (push) Failing after 3s
Build / firmware (UNIVERSAL, latest, ubuntu) (push) Failing after 2s
Check code style / clang-format (push) Failing after 3s
Check code style / clang-format-1 (push) Failing after 2s
Check code style / clang-format-2 (push) Failing after 2s
Check code style / clang-format-3 (push) Failing after 4s
Check includes / includes-check (HACKRF_ONE, 3.12.0) (push) Failing after 4s
Check includes / includes-check (HACKRF_ONE, latest) (push) Failing after 4s
Check includes / includes-check (JAWBREAKER, 3.12.0) (push) Failing after 4s
Check includes / includes-check (JAWBREAKER, latest) (push) Failing after 3s
Check includes / includes-check (PRALINE, 3.12.0) (push) Failing after 4s
Check includes / includes-check (PRALINE, latest) (push) Failing after 3s
Check includes / includes-check (RAD1O, 3.12.0) (push) Failing after 4s
Check includes / includes-check (RAD1O, latest) (push) Failing after 5s
Check includes / includes-check (UNIVERSAL, 3.12.0) (push) Failing after 6s
Check includes / includes-check (UNIVERSAL, latest) (push) Failing after 8s
Build / host (3.10.0, gcc, Unix Makefiles, --target install, --build, macos, bash, sudo) (push) Has been cancelled
Build / host (3.21.7, -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake --install-prefix=$env:GITHUB_WORKSPACE/install, msvc, Visual Studio 17 2022, --install, 17.1… (push) Has been cancelled
Build / host (4.2.6, -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake --install-prefix=$env:GITHUB_WORKSPACE/install, msvc, Visual Studio 18 2026, --install, lates… (push) Has been cancelled
Build / host (latest, --install-prefix=/usr/local, gcc, MSYS Makefiles, --install, latest, windows, msys2) (push) Has been cancelled
Build / host (latest, -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake --install-prefix=$env:GITHUB_WORKSPACE/install, msvc, Visual Studio 18 2026, --install, late… (push) Has been cancelled
Build / firmware (PRALINE, latest, macos) (push) Has been cancelled
Build / firmware (PRALINE, latest, windows) (push) Has been cancelled
Build / firmware (RAD1O, latest, windows) (push) Has been cancelled
Build / firmware (UNIVERSAL, 3.12.0, macos) (push) Has been cancelled
Build / firmware (UNIVERSAL, latest, macos) (push) Has been cancelled
Build / firmware (UNIVERSAL, latest, windows) (push) Has been cancelled
Build / host (latest, gcc, Unix Makefiles, --install, latest, macos, bash, sudo) (push) Has been cancelled
Build / firmware (HACKRF_ONE, latest, windows) (push) Has been cancelled
Build / firmware (JAWBREAKER, latest, windows) (push) Has been cancelled
Build / firmware (PRALINE, 3.12.0, macos) (push) Has been cancelled
This commit is contained in:
parent
5aa73e7d7f
commit
1b1cfcfa0f
3 changed files with 9 additions and 14 deletions
|
|
@ -1040,7 +1040,6 @@ bool radio_set_config_mode(radio_t* const radio, const radio_config_mode_t mode)
|
|||
{
|
||||
// Check if the requested mode is supported.
|
||||
switch (mode) {
|
||||
case RADIO_CONFIG_LEGACY:
|
||||
case RADIO_CONFIG_STANDARD:
|
||||
// supported on all boards
|
||||
break;
|
||||
|
|
@ -1067,7 +1066,6 @@ bool radio_set_config_mode(radio_t* const radio, const radio_config_mode_t mode)
|
|||
if (IS_PRALINE) {
|
||||
fpga_bitstream_index_t bitstream_index;
|
||||
switch (mode) {
|
||||
case RADIO_CONFIG_LEGACY:
|
||||
case RADIO_CONFIG_STANDARD:
|
||||
bitstream_index = FPGA_BITSTREAM_STANDARD;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -41,14 +41,12 @@ typedef enum {
|
|||
} radio_error_t;
|
||||
|
||||
/* radio configuration modes */
|
||||
// TODO are we sure we need a legacy mode?
|
||||
typedef enum {
|
||||
RADIO_CONFIG_LEGACY = 0,
|
||||
RADIO_CONFIG_STANDARD = 1,
|
||||
RADIO_CONFIG_STANDARD = 0,
|
||||
#ifdef IS_PRALINE
|
||||
RADIO_CONFIG_EXT_PRECISION_RX = 2,
|
||||
RADIO_CONFIG_EXT_PRECISION_TX = 3,
|
||||
RADIO_CONFIG_HALF_PRECISION = 4,
|
||||
RADIO_CONFIG_EXT_PRECISION_RX = 1,
|
||||
RADIO_CONFIG_EXT_PRECISION_TX = 2,
|
||||
RADIO_CONFIG_HALF_PRECISION = 3,
|
||||
#endif
|
||||
} radio_config_mode_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -952,11 +952,10 @@ enum clkin_ctrl_signal {
|
|||
* Used by @ref hackrf_open, @ref hackrf_open_mode_by_serial and @ref hackrf_device_list_open_mode to set the active configuration mode.
|
||||
*/
|
||||
enum radio_config_mode {
|
||||
RADIO_CONFIG_LEGACY = 0,
|
||||
RADIO_CONFIG_STANDARD = 1,
|
||||
RADIO_CONFIG_EXT_PRECISION_RX = 2,
|
||||
RADIO_CONFIG_EXT_PRECISION_TX = 3,
|
||||
RADIO_CONFIG_HALF_PRECISION = 4,
|
||||
RADIO_CONFIG_STANDARD = 0,
|
||||
RADIO_CONFIG_EXT_PRECISION_RX = 1,
|
||||
RADIO_CONFIG_EXT_PRECISION_TX = 2,
|
||||
RADIO_CONFIG_HALF_PRECISION = 3,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2467,7 +2466,7 @@ extern ADDAPI int ADDCALL hackrf_radio_lock_register(
|
|||
* Switches the radio configuration mode.
|
||||
*
|
||||
* @param[in] device device to configure
|
||||
* @param[in] mode configuration mode. Defaults to RADIO_CONFIG_LEGACY. Available modes are defined in @ref radio_config_mode.
|
||||
* @param[in] mode configuration mode. Defaults to RADIO_CONFIG_STANDARD. Available modes are defined in @ref radio_config_mode.
|
||||
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
|
||||
* @ingroup configuration
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue