]> sigrok.org Git - sigrok-firmware-fx2lafw.git/log
sigrok-firmware-fx2lafw.git
9 months agoAdd Hantek PSO2020 firmware support master github/master
Steve Markgraf [Sat, 13 Jan 2024 22:21:01 +0000 (23:21 +0100)]
Add Hantek PSO2020 firmware support

9 months agofx2lib: fix SDCC warning 283
Steve Markgraf [Wed, 17 Jan 2024 19:18:34 +0000 (20:18 +0100)]
fx2lib: fix SDCC warning 283

This fixes the following warnings that appear with
SDCC >= 4.3.0:

"warning 283: function declarator with no prototype"

15 months agofx2lafw: Update __at syntax for sdcc>=4.2.3
Matthew Cengia [Tue, 15 Aug 2023 00:35:45 +0000 (10:35 +1000)]
fx2lafw: Update __at syntax for sdcc>=4.2.3

The SDCC user manual https://sdcc.sourceforge.net/doc/sdccman.pdf
section 1.5 "Compatibility with previous versions" on page 12 states:

> In 4.2.3, support for non-parenthesized arguments to __at that are
> not constants was dropped.

Adjust the sigrok fx2lafw application source to unbreak compilation with
more recent SDCC versions.

15 months agofx2lafw: Update __interrupt syntax for sdcc>=4.2.3
Matthew Cengia [Tue, 15 Aug 2023 00:39:32 +0000 (10:39 +1000)]
fx2lafw: Update __interrupt syntax for sdcc>=4.2.3

The SDCC user manual https://sdcc.sourceforge.net/doc/sdccman.pdf
section 1.5 "Compatibility with previous versions" on page 11 states:

> In 4.2.3, support for non-parenthesized arguments to __using and
> __interrupt was dropped.

Adjust the sigrok fx2lafw application source to unbreak compilation with
more recent SDCC versions.

15 months agofx2lib: Update __interrupt syntax for sdcc>=4.2.3
Matthew Cengia [Tue, 15 Aug 2023 00:38:34 +0000 (10:38 +1000)]
fx2lib: Update __interrupt syntax for sdcc>=4.2.3

The SDCC user manual https://sdcc.sourceforge.net/doc/sdccman.pdf
section 1.5 "Compatibility with previous versions" on page 11 states:

> In 4.2.3, support for non-parenthesized arguments to __using and
> __interrupt was dropped.

Adjust the imported fx2lib source files to unbreak compilation with
more recent SDCC versions.

3 years agofx2lafw: silence integer overflow compile warnings
Gerhard Sittig [Mon, 22 Feb 2021 19:17:02 +0000 (20:17 +0100)]
fx2lafw: silence integer overflow compile warnings

Explicitly mark literals for control bitfield values as unsigned, to
avoid compiler warnings when the MSB gets set in assignments to a byte.
This kind of follows up to commit f6ef2ff72979 after commit b283ba837a11
re-introduced the warning.

3 years agoMakefile.am: Restore alpha sort order of device drivers in build rules
Gerhard Sittig [Mon, 22 Feb 2021 19:08:36 +0000 (20:08 +0100)]
Makefile.am: Restore alpha sort order of device drivers in build rules

3 years agodoc: update IRC reference to Libera.Chat
Gerhard Sittig [Wed, 16 Jun 2021 18:52:42 +0000 (20:52 +0200)]
doc: update IRC reference to Libera.Chat

3 years agoUpdate NEWS
Soeren Apel [Sun, 21 Feb 2021 23:45:44 +0000 (00:45 +0100)]
Update NEWS

3 years agoAdd Instrustar ISDS205B firmware
litospain [Fri, 10 Apr 2020 20:13:39 +0000 (22:13 +0200)]
Add Instrustar ISDS205B firmware

5 years agoconfigure.ac: Bump package version to 0.1.7. sigrok-firmware-fx2lafw-0.1.7
Uwe Hermann [Thu, 14 Nov 2019 20:45:52 +0000 (21:45 +0100)]
configure.ac: Bump package version to 0.1.7.

5 years agoIncrease FX2LAFW_VERSION_MINOR to 4.
Uwe Hermann [Thu, 14 Nov 2019 20:45:25 +0000 (21:45 +0100)]
Increase FX2LAFW_VERSION_MINOR to 4.

There have been changes since the last release, but they have been
compatible ones that don't require any host-side (libsigrok) changes,
thus only increase FX2LAFW_VERSION_MINOR (but not FX2LAFW_VERSION_MAJOR).

5 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Thu, 14 Nov 2019 20:45:10 +0000 (21:45 +0100)]
NEWS: Add list of user-visible changes so far.

5 years agoallow captures of up to 48MHz, if bus conditions permit
Kate J. Temkin [Thu, 22 Aug 2019 00:59:55 +0000 (18:59 -0600)]
allow captures of up to 48MHz, if bus conditions permit

We allow the FX2 Waveform to operate using only a single state
(and thus at a rate equal to the max IFCLK of 48MHz) by allowing
the decision point state to re-execute its operation.

We accordingly remove the guards preventing operation with
zero-duration wait states; allowing waveforms with no wait states
to be generated.

5 years agobuild: use sdar instead of deprecated sdcclib
Daniel Trnka [Sun, 15 Sep 2019 07:51:26 +0000 (09:51 +0200)]
build: use sdar instead of deprecated sdcclib

This fixes bug #1404

5 years agobugfix in hantek 6022BL voltage range selection
Philip Gottschling [Sat, 29 Dec 2018 13:58:50 +0000 (14:58 +0100)]
bugfix in hantek 6022BL voltage range selection

This fixes bug #1360.

5 years agoMakefile.am: Split an overly long line.
Uwe Hermann [Fri, 28 Dec 2018 12:33:52 +0000 (13:33 +0100)]
Makefile.am: Split an overly long line.

5 years agoAdd YiXingDianZi MDSO firmware support.
majekw [Sat, 1 Dec 2018 23:16:28 +0000 (00:16 +0100)]
Add YiXingDianZi MDSO firmware support.

6 years agoBump required sdcc version to >= 3.4.0.
Uwe Hermann [Sat, 17 Nov 2018 19:39:59 +0000 (20:39 +0100)]
Bump required sdcc version to >= 3.4.0.

There is an issue with some sdcc versions that causes problems, e.g. only
the first scan for an FX2 device succeeds, the second one yields
LIBUSB_ERROR_PIPE (see bug #1326).

Recent tests have shown that sdcc 3.3.0 produces broken fx2lafw firmware
files, and sdcc 3.1.0 errors out during the build. Versions 3.4.0, 3.5.0,
3.6.9, and 3.8.0 (for example) all seem to work fine.

Thus, increase the minimum required sdcc version to 3.4.0.

This fixes bug #1326.

6 years agosainsmart-dds120: make the "1kHz" reference signal 1kHz
Sergey Alirzaev [Thu, 12 Apr 2018 07:20:30 +0000 (10:20 +0300)]
sainsmart-dds120: make the "1kHz" reference signal 1kHz

6 years agoconfigure.ac: Bump package version to 0.1.6. sigrok-firmware-fx2lafw-0.1.6
Uwe Hermann [Wed, 24 Jan 2018 18:47:03 +0000 (19:47 +0100)]
configure.ac: Bump package version to 0.1.6.

6 years agoIncrease FX2LAFW_VERSION_MINOR to 3.
Uwe Hermann [Wed, 24 Jan 2018 18:46:01 +0000 (19:46 +0100)]
Increase FX2LAFW_VERSION_MINOR to 3.

There have been changes since the last release, but they have been
compatible ones that don't require any host-side (libsigrok) changes,
thus only increase FX2LAFW_VERSION_MINOR (but not FX2LAFW_VERSION_MAJOR).

6 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Wed, 24 Jan 2018 18:44:20 +0000 (19:44 +0100)]
NEWS: Add list of user-visible changes so far.

6 years agofx2lafw: Factor out LED control.
Maciej Kurc [Wed, 24 Jan 2018 18:39:04 +0000 (19:39 +0100)]
fx2lafw: Factor out LED control.

Also, make the LED polarity compile-time configurable.

[Note: This is a slightly modified version of a patch from Maciej Kurc.]

6 years agofx2lafw: silence integer overflow compile warnings
Gerhard Sittig [Fri, 29 Dec 2017 15:06:23 +0000 (16:06 +0100)]
fx2lafw: silence integer overflow compile warnings

Explicitly mark literals for control bitfield values as unsigned. This
avoids a compiler warning when the MSB gets set in assignments to a BYTE.

The warning was not seen with SDCC v3.3, but with v3.6.9:

  SDCC     fx2lafw.rel
  ./source/fx2lafw.c:66: warning 158: overflow in implicit constant conversion
  SDCC     gpif-acquisition.rel
  ./source/gpif-acquisition.c:65: warning 158: overflow in implicit constant conversion

6 years agofx2lafw: fixup missing semicolon after macro "function call"
Gerhard Sittig [Fri, 29 Dec 2017 15:05:04 +0000 (16:05 +0100)]
fx2lafw: fixup missing semicolon after macro "function call"

Since RESETFIFO() macro currently is "phrased unfortunately", the call
site got away with the omission of a semicolon. Adding the missing
semicolon does not harm the current implementation, and unbreaks the
build when RESETFIFO() gets improved in the future.

6 years agofx2lafw: Insert SYNCDELAYs where necessary according to TRM
Stefan Brüns [Sun, 31 Dec 2017 06:51:53 +0000 (07:51 +0100)]
fx2lafw: Insert SYNCDELAYs where necessary according to TRM

6 years agofx2lafw: Delay start of GPIF until first BULK IN request is received
Stefan Brüns [Wed, 3 Jan 2018 22:59:41 +0000 (23:59 +0100)]
fx2lafw: Delay start of GPIF until first BULK IN request is received

Apparently the host controller may issue the CONTROL transfer with
the START command earlier than any of the BULK IN requests. The result
is a filled up EP2 packet FIFO, which aborts the acquisition.

Waiting for the first BULK IN request matches the sample code in the
TRM, see e.g. Figure 10-30.

This fixes bug #655.

6 years agofx2lafw: add definitions for IBN (IN BULK NAK) interrupt
Stefan Brüns [Wed, 3 Jan 2018 22:57:02 +0000 (23:57 +0100)]
fx2lafw: add definitions for IBN (IN BULK NAK) interrupt

6 years agofx2lafw: remove break after return
Stefan Brüns [Fri, 29 Dec 2017 01:38:23 +0000 (02:38 +0100)]
fx2lafw: remove break after return

6 years agofx2lafw: Disable SOF interrupt, it is not used
Stefan Brüns [Fri, 29 Dec 2017 01:45:39 +0000 (02:45 +0100)]
fx2lafw: Disable SOF interrupt, it is not used

6 years agoscopes: improve C preprocessor macro robustness
Gerhard Sittig [Mon, 18 Dec 2017 13:50:06 +0000 (14:50 +0100)]
scopes: improve C preprocessor macro robustness

For pin and LED control related #define directives use C language
compound statements. This lets call sites use the macros in intended
ways (like regular function calls) without needing to worry about their
implementation details, or suffering from unexpected behaviour.

Strictly speaking the single statement variants don't require the
wrapper, but I've added one for improved future maintenance.

6 years agoscopes: Move a code comment.
Uwe Hermann [Mon, 24 Apr 2017 13:42:05 +0000 (15:42 +0200)]
scopes: Move a code comment.

6 years agoMakefile.am: Fix a 'make distclean' error.
Uwe Hermann [Mon, 24 Apr 2017 13:07:56 +0000 (15:07 +0200)]
Makefile.am: Fix a 'make distclean' error.

6 years agoscopes: Makefile.am: Add and use SDCC_LINK_FLAGS_SCOPE.
Uwe Hermann [Mon, 24 Apr 2017 13:06:08 +0000 (15:06 +0200)]
scopes: Makefile.am: Add and use SDCC_LINK_FLAGS_SCOPE.

6 years agoscopes: Rename dscr_hantek_6022be.inc to dscr_scope.inc.
Uwe Hermann [Mon, 24 Apr 2017 13:04:09 +0000 (15:04 +0200)]
scopes: Rename dscr_hantek_6022be.inc to dscr_scope.inc.

6 years agoscopes: Unify code-base, remove duplicate code/files.
Uwe Hermann [Mon, 24 Apr 2017 12:47:26 +0000 (14:47 +0200)]
scopes: Unify code-base, remove duplicate code/files.

All currently supported scopes (and those that will be added in the
future) now use the common include/scopes.inc firmware implementation.

Only the device-specific code and #defines are moved to the respective
subdirectory in hw/.

The now-obsolete hantek_6022be.c, hantek_6022bl.c, and sainsmart_dds120.c
files are removed.

6 years agoscopes: Add include/scope.inc.
Uwe Hermann [Mon, 24 Apr 2017 09:34:18 +0000 (11:34 +0200)]
scopes: Add include/scope.inc.

This is a copy of hantek_6022be.c, with device-specific code removed.

This includes some #defines at the top of the file, samplerates[],
and set_voltage().

6 years agoscopes: Factor out TIMER2_VAL.
Uwe Hermann [Mon, 24 Apr 2017 06:30:06 +0000 (08:30 +0200)]
scopes: Factor out TIMER2_VAL.

6 years agoscopes: Factor out SET_COUPLING() and SET_CALIBRATION_PULSE().
Uwe Hermann [Wed, 19 Apr 2017 22:47:03 +0000 (00:47 +0200)]
scopes: Factor out SET_COUPLING() and SET_CALIBRATION_PULSE().

6 years agoscopes: Factor out CTL_BIT, OUT0, and OE_CTL.
Uwe Hermann [Sat, 15 Apr 2017 18:17:24 +0000 (20:17 +0200)]
scopes: Factor out CTL_BIT, OUT0, and OE_CTL.

6 years agoscopes: Use RENUMERATE_UNCOND() for all devices.
Uwe Hermann [Sat, 8 Apr 2017 15:11:41 +0000 (17:11 +0200)]
scopes: Use RENUMERATE_UNCOND() for all devices.

6 years agoscopes: Initialize PORTA/C/E consistently for all devices.
Uwe Hermann [Sat, 8 Apr 2017 15:10:31 +0000 (17:10 +0200)]
scopes: Initialize PORTA/C/E consistently for all devices.

6 years agoscopes: Factor out LED_CLEAR(), LED_GREEN(), LED_RED().
Uwe Hermann [Sat, 8 Apr 2017 14:58:42 +0000 (16:58 +0200)]
scopes: Factor out LED_CLEAR(), LED_GREEN(), LED_RED().

6 years agoscopes: Factor out TOGGLE_CALIBRATION_PIN().
Uwe Hermann [Sat, 8 Apr 2017 14:39:07 +0000 (16:39 +0200)]
scopes: Factor out TOGGLE_CALIBRATION_PIN().

6 years agoscopes: Factor out SET_ANALOG_MODE().
Uwe Hermann [Mon, 3 Apr 2017 14:03:05 +0000 (16:03 +0200)]
scopes: Factor out SET_ANALOG_MODE().

6 years agoscopes: Adapt/fix some code comments, cosmetics.
Uwe Hermann [Mon, 3 Apr 2017 13:55:03 +0000 (15:55 +0200)]
scopes: Adapt/fix some code comments, cosmetics.

6 years agofx2lafw: Blink LED on pin PA1 during acquisition.
Uwe Hermann [Sun, 17 Dec 2017 14:19:26 +0000 (15:19 +0100)]
fx2lafw: Blink LED on pin PA1 during acquisition.

All FX2 based logic analyzer devices will now toggle PA1 during
acquisition, and keep it high while idle.

On fx2grok-tiny and fx2grok-flat there's a LED connected to PA1.
Thus, those devices will visually indicate whether a firmware has been
uploaded (LED will light up and stay like that while the device is
idle). During any acquisition the LED will blink.

The PA1 pin is not used on most other FX2 based LA devices, so that
shouldn't cause any issues (tested on hardware).

On certain devices with LA and analog support the PA1 pin is used for
other purposes (e.g. Hantek 6022BL, Instrustar ISDS205X) but even there
this won't cause any issues in practice (tested on hardware).

7 years agoconfigure.ac: Bump package version to 0.1.5. sigrok-firmware-fx2lafw-0.1.5
Uwe Hermann [Fri, 9 Jun 2017 06:47:40 +0000 (08:47 +0200)]
configure.ac: Bump package version to 0.1.5.

7 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Thu, 8 Jun 2017 22:46:16 +0000 (00:46 +0200)]
NEWS: Add list of user-visible changes so far.

7 years agoHACKING: Update URL to Linux kernel coding style.
Uwe Hermann [Tue, 6 Jun 2017 14:15:21 +0000 (16:15 +0200)]
HACKING: Update URL to Linux kernel coding style.

7 years agohantek_6022be.c: Fix a code comment.
Uwe Hermann [Fri, 27 Jan 2017 00:05:14 +0000 (01:05 +0100)]
hantek_6022be.c: Fix a code comment.

What's actually used there is OE2/CTL2.

7 years agoEnable full port A as output on 6022BL
Jan Losinski [Thu, 12 Jan 2017 21:51:05 +0000 (22:51 +0100)]
Enable full port A as output on 6022BL

Signed-off-by: Jan Losinski <redacted>
7 years agoSelect enable OE0 instead of OE2 in 6022BL
Jan Losinski [Thu, 12 Jan 2017 21:50:25 +0000 (22:50 +0100)]
Select enable OE0 instead of OE2 in 6022BL

Signed-off-by: Jan Losinski <redacted>
7 years agoSwitch from OE2/CTL2 to OE0/CTL0 on 6022BL
Jan Losinski [Thu, 12 Jan 2017 21:10:15 +0000 (22:10 +0100)]
Switch from OE2/CTL2 to OE0/CTL0 on 6022BL

On this device CTL0 is soldered to IFCLK.

Signed-off-by: Jan Losinski <redacted>
7 years agoSet PA7 in 6022BL again before sampling.
Jan Losinski [Thu, 12 Jan 2017 21:09:39 +0000 (22:09 +0100)]
Set PA7 in 6022BL again before sampling.

Signed-off-by: Jan Losinski <redacted>
7 years agoChange I/O ports for voltage selection on 6022BL
Jan Losinski [Thu, 12 Jan 2017 15:41:39 +0000 (16:41 +0100)]
Change I/O ports for voltage selection on 6022BL

The 6022BL has the multiplexers connected to port A bits instead of
port C.

Signed-off-by: Jan Losinski <redacted>
7 years agoSet PA7 to high, to select analog mode.
Jan Losinski [Thu, 12 Jan 2017 15:40:47 +0000 (16:40 +0100)]
Set PA7 to high, to select analog mode.

Signed-off-by: Jan Losinski <redacted>
7 years agoChange probe cal pin for 6022BL to PC2
Jan Losinski [Thu, 12 Jan 2017 15:39:32 +0000 (16:39 +0100)]
Change probe cal pin for 6022BL to PC2

In contrast to the 6022BE it is not connected to PA7 but to PC2 on the
6022BL.

Signed-off-by: Jan Losinski <redacted>
7 years agoInitial support for Hantek 6022BL
Sebastian Tabares Amaya [Wed, 28 Dec 2016 01:17:32 +0000 (20:17 -0500)]
Initial support for Hantek 6022BL

Based on 6022BE, changed Makefile.am, added 6022BL directory.

7 years agolicense: remove FSF postal address from boiler plate license text
Gerhard Sittig [Thu, 20 Oct 2016 07:23:33 +0000 (09:23 +0200)]
license: remove FSF postal address from boiler plate license text

Remove the FSF postal address as it might change (it did in the past).
Reference the gnu.org website instead which is more stable.

8 years agoconfigure.ac: Bump package version to 0.1.4. sigrok-firmware-fx2lafw-0.1.4
Uwe Hermann [Tue, 4 Oct 2016 11:21:24 +0000 (13:21 +0200)]
configure.ac: Bump package version to 0.1.4.

8 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Tue, 4 Oct 2016 11:20:52 +0000 (13:20 +0200)]
NEWS: Add list of user-visible changes so far.

8 years agoIncrease FX2LAFW_VERSION_MINOR to 2.
Uwe Hermann [Tue, 4 Oct 2016 11:22:29 +0000 (13:22 +0200)]
Increase FX2LAFW_VERSION_MINOR to 2.

There have been changes since the last release, but they have been
compatible ones that don't require any host-side (libsigrok) changes,
thus only increase FX2LAFW_VERSION_MINOR (but not FX2LAFW_VERSION_MAJOR).

8 years agoUse per-device USB serial number strings.
Uwe Hermann [Sun, 30 Oct 2016 11:12:31 +0000 (12:12 +0100)]
Use per-device USB serial number strings.

These are not actual "serial numbers" in the strict sense, i.e. two
devices of the same type (e.g. two USBee ZX devices) would have the
same string.

Using two different actual serial numbers in such a case is not possible
since both devices would get the exact same firmware file (uploaded to
RAM via USB) and thus the exact same hardcoded "serial number". All devices
where fx2lafw is currently used don't have an EEPROM where the firmware
(and thus a different serial number) could be stored persistently; it's
always re-uploaded to the device's RAM upon connecting the device to USB.

However, the USB serial number field is still useful in that we can
store a nice device(-type) indicator string there. The benefit is that
an lsusb of an fx2lafw (after firmware upload) would yield something
specific like "USBee ZX" or "Hantek 6022BE" in addition to the very
generic "fx2lafw".

8 years agoAdd "fx2lafw-" prefix to the 6022BE/DDS120 firmware files.
Uwe Hermann [Mon, 31 Oct 2016 13:44:35 +0000 (14:44 +0100)]
Add "fx2lafw-" prefix to the 6022BE/DDS120 firmware files.

8 years agoUse the same VID/PID for Hantek 6022BE and SainSmart DDS120.
Uwe Hermann [Wed, 12 Oct 2016 20:24:02 +0000 (22:24 +0200)]
Use the same VID/PID for Hantek 6022BE and SainSmart DDS120.

(one of the official sigrok VID/PIDs, 1D50:608E)

Encode the fact that they're different versions/revisions/variants
of the same device (more or less rebadges with only little changes)
in the USB product version field.

8 years agoMakefile.am: Remove unneeded duplication.
Uwe Hermann [Wed, 12 Oct 2016 20:16:13 +0000 (22:16 +0200)]
Makefile.am: Remove unneeded duplication.

8 years agoAdd and use macros to simplify USB descriptor files.
Uwe Hermann [Sat, 8 Oct 2016 14:41:10 +0000 (16:41 +0200)]
Add and use macros to simplify USB descriptor files.

The macros in include/common.inc were provided by
Stefan Brüns <redacted>, thanks!

8 years agoMakefile.am: Add dscr_hantek_6022be.inc to the tarball.
Uwe Hermann [Sat, 3 Sep 2016 13:33:51 +0000 (15:33 +0200)]
Makefile.am: Add dscr_hantek_6022be.inc to the tarball.

8 years agoHACKING: Prefer git pull requests over mailing list patches.
Uwe Hermann [Wed, 10 Aug 2016 07:52:55 +0000 (09:52 +0200)]
HACKING: Prefer git pull requests over mailing list patches.

Also, drop the reference to gitorious.org (no longer available).

8 years agoREADME: Drop obsolete and unneeded section.
Uwe Hermann [Wed, 10 Aug 2016 07:44:45 +0000 (09:44 +0200)]
README: Drop obsolete and unneeded section.

The firmware requirements should be documented in libsigrok itself, the
firmware in this repo doesn't know anything about its users per se.

8 years agogpif-acquisition.c: Minor cosmetics, drop obsolete comment.
Uwe Hermann [Wed, 10 Aug 2016 07:42:19 +0000 (09:42 +0200)]
gpif-acquisition.c: Minor cosmetics, drop obsolete comment.

8 years agoRefactor and bugfix the delay adding code for analog capture
Paul Fertser [Fri, 15 Jul 2016 20:19:10 +0000 (23:19 +0300)]
Refactor and bugfix the delay adding code for analog capture

There're two essential modifications in this change:

1. Fix timing for capture frequencies less than 200 kHz;
2. Sample ADC output after CLK is set low, as per the TLC5510
datasheet.

The second point is also important as the capture state sets CLK low,
so with the previous code there might have been a very short glitch on
this line during capture. Not confirmed by measurements, but it's
cleaner this way.

Signed-off-by: Paul Fertser <redacted>
8 years agoRemove bogus part of OUTPUT used for analog sampling
Paul Fertser [Fri, 15 Jul 2016 20:19:09 +0000 (23:19 +0300)]
Remove bogus part of OUTPUT used for analog sampling

Since TRICTL = 0, FX2 always either pushes or pulls the CTLx pins.

Signed-off-by: Paul Fertser <redacted>
8 years agoFix typo in gpif_make_data_dp_state function name
Paul Fertser [Fri, 15 Jul 2016 20:19:08 +0000 (23:19 +0300)]
Fix typo in gpif_make_data_dp_state function name

Signed-off-by: Paul Fertser <redacted>
8 years agoChange arguments of gpif_make_delay_state() to remove layering violation
Paul Fertser [Fri, 15 Jul 2016 20:19:07 +0000 (23:19 +0300)]
Change arguments of gpif_make_delay_state() to remove layering violation

This function is called only for adding delay states to the waveform
so OPCODE is always the same.

While at it, fix confusing comments.

Signed-off-by: Paul Fertser <redacted>
8 years agodscr*.inc: Document polling intervals better.
Uwe Hermann [Wed, 10 Aug 2016 07:38:14 +0000 (09:38 +0200)]
dscr*.inc: Document polling intervals better.

8 years agodscr_hantek_6022be.inc: Fix incorrect comments, add additional ones.
Uwe Hermann [Wed, 10 Aug 2016 06:23:09 +0000 (08:23 +0200)]
dscr_hantek_6022be.inc: Fix incorrect comments, add additional ones.

8 years agodscr_hantek_6022be.inc: Change vendor string to "sigrok".
Uwe Hermann [Wed, 10 Aug 2016 06:19:20 +0000 (08:19 +0200)]
dscr_hantek_6022be.inc: Change vendor string to "sigrok".

8 years agodscr_hantek_6022be.inc: Cosmetic and consistency changes.
Uwe Hermann [Wed, 10 Aug 2016 06:07:32 +0000 (08:07 +0200)]
dscr_hantek_6022be.inc: Cosmetic and consistency changes.

This makes the file a lot more readable and also easier to compare
to the other dscr.inc files.

Also, fix some typos (or copy-paste errors) in some comments.

8 years agodscr.inc: Shorten representation of two strings.
Uwe Hermann [Wed, 10 Aug 2016 05:40:43 +0000 (07:40 +0200)]
dscr.inc: Shorten representation of two strings.

8 years agohantek-6022be/sainsmart-dds120: Hook up correct per-device VID/PID.
Uwe Hermann [Thu, 4 Aug 2016 15:24:00 +0000 (17:24 +0200)]
hantek-6022be/sainsmart-dds120: Hook up correct per-device VID/PID.

8 years agoDeduplicate hantek-6022be/sainsmart-dds120's dscr.inc.
Uwe Hermann [Thu, 4 Aug 2016 15:18:14 +0000 (17:18 +0200)]
Deduplicate hantek-6022be/sainsmart-dds120's dscr.inc.

8 years agohantek-6022be/sainsmart-dds120: Use the same USB product string.
Uwe Hermann [Thu, 4 Aug 2016 15:16:48 +0000 (17:16 +0200)]
hantek-6022be/sainsmart-dds120: Use the same USB product string.

8 years agoREADME: Mention the Sainsmart DDS120 firmware.
Uwe Hermann [Tue, 12 Jul 2016 22:10:21 +0000 (00:10 +0200)]
README: Mention the Sainsmart DDS120 firmware.

8 years agoAdd CWAV USBee ZX firmware support.
Uwe Hermann [Tue, 12 Jul 2016 21:48:13 +0000 (23:48 +0200)]
Add CWAV USBee ZX firmware support.

This fixes bug #764.

8 years agoSilence warnings
Benjamin Larsson [Wed, 18 May 2016 22:36:25 +0000 (00:36 +0200)]
Silence warnings

The following warnings are fixed by this:

 hantek_6022be.c:424: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:359: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:363: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:366: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:370: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:494: warning 158: overflow in implicit constant conversion

8 years agoAdd a few more code comments.
Uwe Hermann [Wed, 18 May 2016 22:17:16 +0000 (00:17 +0200)]
Add a few more code comments.

8 years agofx2lafw: clock CTL1 the same as CTL2
Benjamin Larsson [Wed, 18 May 2016 20:50:06 +0000 (22:50 +0200)]
fx2lafw: clock CTL1 the same as CTL2

The LHT00SU1 has it's clock pins swapped compared to other hardware.
By duplicating the CTL2 pin both the socket and the adc will
have the same clock frequency.

8 years agoUse 1D50:608E for open source Sainsmart DDS120 firmware
Markus Siegert [Sun, 10 Apr 2016 20:03:13 +0000 (22:03 +0200)]
Use 1D50:608E for open source Sainsmart DDS120 firmware

8 years agoSupport changing calibration pulse frequency
Benjamin Larsson [Sat, 23 Apr 2016 16:22:19 +0000 (18:22 +0200)]
Support changing calibration pulse frequency

8 years agoAdd more sample rates
Benjamin Larsson [Sat, 23 Apr 2016 16:19:12 +0000 (18:19 +0200)]
Add more sample rates

8 years agoAdd support for setting Sainsmart AC/DC coupling
Benjamin Larsson [Sun, 3 Apr 2016 15:39:07 +0000 (17:39 +0200)]
Add support for setting Sainsmart AC/DC coupling

8 years agoInitial Sainsmart DDS120 firmware
Benjamin Larsson [Fri, 18 Mar 2016 21:12:56 +0000 (22:12 +0100)]
Initial Sainsmart DDS120 firmware

8 years agoAdd CMD_START_FLAGS_CLK_CTL2 command flag
Benjamin Larsson [Wed, 27 Apr 2016 22:58:26 +0000 (00:58 +0200)]
Add CMD_START_FLAGS_CLK_CTL2 command flag

This command will generate a suitable clock on pin CTL2 for
devices with an analog input.

8 years agoEnable more control over the GPIF state machine
Benjamin Larsson [Wed, 27 Apr 2016 22:49:10 +0000 (00:49 +0200)]
Enable more control over the GPIF state machine

8 years agohw/hantek-6022be/dscr.a51: License header cosmetics.
Uwe Hermann [Thu, 10 Mar 2016 22:31:18 +0000 (23:31 +0100)]
hw/hantek-6022be/dscr.a51: License header cosmetics.

8 years agohantek_6022be.c: Simplify handle_vendorcommand().
Uwe Hermann [Thu, 10 Mar 2016 22:24:16 +0000 (23:24 +0100)]
hantek_6022be.c: Simplify handle_vendorcommand().

8 years agohantek_6022be.c: Minor cosmetics.
Uwe Hermann [Thu, 10 Mar 2016 22:19:48 +0000 (23:19 +0100)]
hantek_6022be.c: Minor cosmetics.