Wykres commitów

98 Commity (f6b55762dfbd4f0a2f832a84ac008dcc073a55d0)

Autor SHA1 Wiadomość Data
Michael Black fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black 56d096fd1a
Fix cppcheck warnings in si570avrusb.c 2019-12-07 23:47:41 -06:00
Michael Black ba168e2c75
Fix cppcheck warnings in fifisdr.c 2019-12-07 23:41:30 -06:00
Michael Black 1b7b5bb941
Fix cppcheck warnings in elektor507.c 2019-12-07 23:40:28 -06:00
Michael Black 75a8f23045
Fix parenthesis in elektor304.c 2019-12-07 23:40:03 -06:00
Michael Black dc5b9a9993
Fix cppcheck warnings in elektor304.c 2019-12-07 23:37:29 -06:00
Michael Black 535da9ef2e
Fix cppcheck warnings in drt1.c 2019-12-07 23:35:30 -06:00
Michael Black 9284676a3e
Fix compile warnings for MinGW on Debian Stretch 2019-11-30 18:28:15 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 72087f1b10
Change all __FUNCTION__ to __func__ 2019-11-30 10:16:28 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black 73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end 2019-08-17 23:20:48 -05:00
Nate Bargmann 82e31653a1 Quell gcc 8.2.0 warning of uninitialized value
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warnings:

  CC       funcube.lo
../../hamlib/kit/funcube.c: In function ‘funcubepro_get_level’:
../../hamlib/kit/funcube.c:783:87: warning: ‘au8BufOut[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                                              ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:783:66: warning: ‘au8BufOut[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                         ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:783:45: warning: ‘au8BufOut[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                    ~~~~~~~~~^~~
../../hamlib/kit/funcube.c: In function ‘funcubepro_set_level’:
../../hamlib/kit/funcube.c:730:87: warning: ‘au8BufOut[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                                              ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:730:66: warning: ‘au8BufOut[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                         ~~~~~~~~~^~~

Initialize au8BufOut and au8BufIn to 0 to quell the warning.
2018-10-25 20:44:59 -05:00
Michael Black W9MDB 20d1818af4 Fix compile warnings for kit 2018-04-22 18:38:16 -05:00
dl1ksv 6bac8422f3 Adding correct get/set functions for LNA- Mixer- IF gain of the FuncubePro+ 2018-04-22 11:35:57 -05:00
dl1ksv 87a5342a2f Switching from sprintf to snprintf to avoid possible seqfaults
Workaround for fldigi
fldigi treats zero frequency as error and disables hamlib.
So if the device rports zero frequency return 1 Hz instead,
so the user can switch to the favored frequency
2018-01-22 12:44:16 +01:00
Michael Black W9MDB 0b1a58d308 Fixed indentation warnings detected by newer gcc
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01:00
dl1ksv bb11fa9107 Initial controls for the rs-hfiq sdr 2017-05-29 13:12:52 +02:00
Bill Somerville 6c342217bf Fix some endian issues in the si570/AVR SDR back ends
These issues appeared when used on a Power PC machine, big endian,
with Linux.
2017-02-12 18:17:24 +00:00
Michael Black 199111bcc4 Changed some modules to LGPL in lieu of GPL 2016-10-31 11:05:24 -05:00
Bill Somerville 222ad74de7 Add RIG_PASSBAND_NOCHANGE as possible set_{split_,split_freq_,}mode argument
This change  allows the set_mode  functions to leave the  rig passband
unchanged  if required.  For the  few rigs  that do  not have  explcit
passband width control either current state is read and rewritten or a
"normal" width  is chosen e.g. select  a normal width when  there is a
choice like CW and CW-NARROW.
2016-04-19 21:27:52 +01:00
Nate Bargmann 6a3214fd43 Apply Linux C style
Update files modified to support libusb-1.0.
2016-02-21 14:56:44 -06:00
Nate Bargmann 9ec98e0fe3 Check for libusb-1.0/libusb.h
Some distributions--Debian and Alpine tested--put libusb.h under the
libusb-1.0 directory.  Test for its presence and if found define
HAVE_LIBUSB_1_0_LIBUSB_H.  Also test for HAVE_LIBUSB or
HAVE_LIBUSB_1_0_LIBUSB_H and conditionally include the correct header
file in the sources.
2016-02-15 08:10:07 -06:00
Stephane Fillod 8d7697c3bd Migrating from libusb-0.1 to libusb-1.0 2016-02-14 18:02:26 +01:00
Ladislav Vaiz df114a64bc Initial support for FUNcube Dongle Pro
I wrote first support for new version of FUNcube Dongle. Differences
against original FCD are changed USB PID and wider frequency range.

73 Lada, OK1ZIA

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2014-04-27 10:36:59 -05:00
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Hans Van Ingelgom 840ef67a85 Added Peaberry V1 and V2 models
On the Peaberry forum, we have a thread with some hamlib patches for the
Peaberry SDR (a softrock-like transceiver). Both version 1 and version 2
have been implemented and tested.

There are two patches: the first one, made by me (ON8VQ) adds support
for the two radio's, and the second one, made by R2AEE, fixes the tuning
(using PICUSB commands instead of AVRUSB).

The patches are available here:
http://ae9rb.com/forum/viewtopic.php?f=4&t=166

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-20 14:34:21 -05:00
Ladislav Vaiz f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -05:00
Nate Bargmann 332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann ea97c7c3e9 Preserve CFLAGS & CXXFLAGS for the configure user
The Automake manual makes it clear that certain user variables such as
CC, CFLAGS, CXXFLAGS, CPPFLAGS, and so on are to be preserved for the
user running configure.  This patch cleans up such assignments and
assures that PTHREAD_CFLAGS and so forth are applied to those targets
that require it.
2013-05-25 06:00:36 -05:00
Ladislav Vaiz 6d4295af2c Add Android build support
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored.  The Android build
support is independent and does not rely on the GNU build system.

See android/README.android for more info.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-04-26 22:31:56 -05:00
Volker Schroer 871d8a44a2 Extension of si570avrusb for SDR Kit of Funkamateur
Adds rig model 2515, Funkamateur Sdr

Signed-off-by: Volker Schroer <dl1ksv@gmx.de>
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-25 13:47:46 -06:00
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Nate Bargmann be2fefcf18 Update version of modified backends
Per Stephane's request, updated the version string of backends modified
since 1.2.14 release.  Newly added backends were left alone.
2012-02-02 20:10:37 -06:00
Stephane Fillod cd79fca440 HiQSDR: misc caps changes 2012-01-30 23:25:35 +01:00
Stephane Fillod 8b26904aa5 Quell cppcheck warnings 2012-01-29 23:37:59 +01:00
Stephane Fillod 4324d9ea98 fix bug in fifisdr_get_level(RIG_LEVEL_AGC) 2012-01-08 22:34:13 +01:00
Rolf Meeser bb5361e1ed (fifisdr) Add AF/AGC/SQL controls, modify tuning steps and filters.
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-07 22:17:59 -06:00
Nate Bargmann db3afff112 Assure NULL terminated strings in kit file.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 22:17:09 -06:00
Stephane Fillod 7bf119716b add HiQSDR 2012-01-06 09:40:04 +01:00
Nate Bargmann 7bc57ada56 Remove set but unused variable errors in kit. 2011-08-25 12:35:21 -05:00
Nate Bargmann c3e9dfd93f Remove "$Id:" CVS tag as it is no longer used. 2011-08-22 21:38:38 -05:00
Nate Bargmann 1fbece183b Update LGPL header in kit source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:35 -05:00
Nate Bargmann 8e0a3f09b3 Distribute kit/README.funcubedongle
(cherry picked from commit 97366d966b)
2011-05-29 07:38:53 -05:00
Nate Bargmann bced1985b4 Fundongle README from Wouter Weggelaar, PA3WEG 2011-04-20 09:29:54 -05:00
Stephane Fillod 7b73db7c1f Make usb_set_configuration() optional upon backend choice, disable it for FUNcude dongle
The call to usb_set_configuration() looks troublesome for the setup
for the FUNcube dongle on Win32 target. In fact it appears not to be
necessary (TBC). Make that call optional per backend choice.
2011-04-11 23:24:44 +02:00
Nate Bargmann, N0NB 931ae29e3c Added attenuator, preamplifier and RSSI to FUNcube
The Attenuator/Preamp has been added: not all the LNA values have been
added because Hamlib can only have maximum 8 values and FUNcube has
more.

The RSSI readout is performed on the IF and it is not calibrated. To
calibrate it, it would be necessary to read all the gains in the
complete chain to compute the real RSSI.

The driver now also supports firmware versions 1.x.

Author: Stefano Speretta, Innovative Solutions In Space BV
<s.speretta@isispace.nl>

Signed-off-by: Stefano Speretta <s.speretta@isispace.nl>

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3053 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-17 12:22:20 +00:00
Nate Bargmann, N0NB e2efcd7104 FiFi-SDR backend: add more filter options
Patch from Rolf Meeser <rolfm_9dq@yahoo.de>

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3039 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-04 23:20:42 +00:00
Nate Bargmann, N0NB 8ecf823704 FiFi-SDR backend improvements
Patch from Rolf Meeser <rolfm_9dq@yahoo.de>

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3038 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-04 23:20:27 +00:00