Skip to content

Commit

Permalink
Version 0.5-beta with new USB VID_0x1d50/PID_0x60a7 using OpenMoko Hy…
Browse files Browse the repository at this point in the history
…draFW
  • Loading branch information
bvernoux committed Feb 11, 2015
1 parent 6d524f6 commit c0bc1f0
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 17 deletions.
4 changes: 2 additions & 2 deletions 09-hydrabus.rules
Expand Up @@ -3,5 +3,5 @@
# To install, type this command in a terminal: # To install, type this command in a terminal:
# sudo cp 09-hydrabus.rules /etc/udev/rules.d/09-hydrabus.rules # sudo cp 09-hydrabus.rules /etc/udev/rules.d/09-hydrabus.rules
# #
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ENV{ID_MM_DEVICE_IGNORE}="1" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60a7", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE="0664", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60a7", MODE="0664", GROUP="plugdev"
32 changes: 32 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,38 @@
# CHANGELOG of 'hydrafw' # CHANGELOG of 'hydrafw'
---------------------- ----------------------


#### 11.02.2015 - [HydraFW v0.5 Beta](https://github.com/bvernoux/hydrafw/releases/tag/v0.5-beta)
* New USB VID_0x1d50/PID_0x60a7 using OpenMoko HydraFW, update with new drivers
* Windows see driver_usb_cdc/hydrabus_usb_cdc.inf
* Linux see 09-hydrabus.rules
* Added USB DFU boot by pressing UBTN at PowerOn/RESET for easier future update of the firmware (does not requires any wire).
* Added Log command (thanks to biot):
* Log all commands/answer in the Terminal to HydraBus SD card file: `logging` `on` `off` `sd`
* Added command `debug` `test-rx` (debug rx) in order to test USB CDC reception performance.
* Added PWM command:
* Configurable PWM frequency between 1Hz to 42MHz and duty cycle from 0 to 100%: `pwm`, `frequency`, `duty-cycle`
* Give feedback of real PWM frequency & duty cycle after configuration.
* Added DAC command:
* Configurable DAC1(PA4 used by ULED) or DAC2(PA5) with following modes:
* `raw` (0 to 4095), `volt` (0 to 3.3), also returns feedback of raw/volt DAC value after configuration.
* `triangle` (5Hz / 3.3V Amplitude), `noise` (0 to 3.3V Amplitude)
* `dac exit` disable DAC1/2 & Timer6/7 and reinit GPIO for PA4 & PA5
* UART:
* UART returns real baud rate+% error after configuration.
* Check and correct min/max value for UART baudrate.
* I2C added `scan` (thanks to biot).
* SPI:
* Fixed `cs` `on` / `off` bug with Infinite Loop.
* Fixed SPI mode `slave`.
* Fixed configuration for `phase` & `polarity` (was always set to 0).
* HydraNFC:
* Fixed HydraNFC detection/init/cleanup and autonomous sniffer mode started with K4.
* Fixed some potential problems/crash with scan/continuous.
* Add full help for commands.
* Lot of cleanup and fixes in code.

---

#### 19.12.2014 - [HydraFW v0.4 Beta](https://github.com/bvernoux/hydrafw/releases/tag/v0.4-beta) #### 19.12.2014 - [HydraFW v0.4 Beta](https://github.com/bvernoux/hydrafw/releases/tag/v0.4-beta)
* Major improvement/refactoring towards terminal/syntax using tokenline (instead of microrl) thanks to Bert Vermeulen (biot) for that amazing piece of software and all the work on this project. * Major improvement/refactoring towards terminal/syntax using tokenline (instead of microrl) thanks to Bert Vermeulen (biot) for that amazing piece of software and all the work on this project.
* New commands added: * New commands added:
Expand Down
14 changes: 8 additions & 6 deletions common/usb1cfg.c
Expand Up @@ -17,6 +17,9 @@ limitations under the License.
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"


#define VENDOR_ID 0x1d50
#define PRODUCT_ID 0x60a7

/* /*
* Endpoints to be used for USBD1. * Endpoints to be used for USBD1.
*/ */
Expand All @@ -34,8 +37,8 @@ static const uint8_t vcom_device_descriptor_data[18] = {
0x00, /* bDeviceSubClass. */ 0x00, /* bDeviceSubClass. */
0x00, /* bDeviceProtocol. */ 0x00, /* bDeviceProtocol. */
0x40, /* bMaxPacketSize. */ 0x40, /* bMaxPacketSize. */
0x0483, /* idVendor (ST). */ VENDOR_ID, /* idVendor. */
0x5740, /* idProduct. */ PRODUCT_ID, /* idProduct. */
0x0200, /* bcdDevice. */ 0x0200, /* bcdDevice. */
1, /* iManufacturer. */ 1, /* iManufacturer. */
2, /* iProduct. */ 2, /* iProduct. */
Expand Down Expand Up @@ -155,11 +158,10 @@ static const uint8_t vcom_string0[] = {
* Vendor string. * Vendor string.
*/ */
static const uint8_t vcom_string1[] = { static const uint8_t vcom_string1[] = {
USB_DESC_BYTE(38), /* bLength. */ USB_DESC_BYTE(30), /* bLength. */
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */ USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
'S', 0, 'T', 0, 'M', 0, 'i', 0, 'c', 0, 'r', 0, 'o', 0, 'e', 0, 'O', 0, 'p', 0, 'e', 0, 'n', 0, 'm', 0, 'o', 0, 'k', 0, 'o', 0,
'l', 0, 'e', 0, 'c', 0, 't', 0, 'r', 0, 'o', 0, 'n', 0, 'i', 0, ',', 0, ' ', 0, 'I', 0, 'n', 0, 'c', 0, '.', 0
'c', 0, 's', 0
}; };


/* /*
Expand Down
16 changes: 9 additions & 7 deletions common/usb2cfg.c
Expand Up @@ -17,6 +17,9 @@ limitations under the License.
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"


#define VENDOR_ID 0x1d50
#define PRODUCT_ID 0x60a7

/* /*
* Endpoints to be used for USBD2. * Endpoints to be used for USBD2.
*/ */
Expand All @@ -34,8 +37,8 @@ static const uint8_t vcom_device_descriptor_data[18] = {
0x00, /* bDeviceSubClass. */ 0x00, /* bDeviceSubClass. */
0x00, /* bDeviceProtocol. */ 0x00, /* bDeviceProtocol. */
0x40, /* bMaxPacketSize. */ 0x40, /* bMaxPacketSize. */
0x0483, /* idVendor (ST). */ VENDOR_ID, /* idVendor. */
0x5740, /* idProduct. */ PRODUCT_ID, /* idProduct. */
0x0200, /* bcdDevice. */ 0x0200, /* bcdDevice. */
1, /* iManufacturer. */ 1, /* iManufacturer. */
2, /* iProduct. */ 2, /* iProduct. */
Expand Down Expand Up @@ -152,11 +155,10 @@ static const uint8_t vcom_string0[] = {
* Vendor string. * Vendor string.
*/ */
static const uint8_t vcom_string1[] = { static const uint8_t vcom_string1[] = {
USB_DESC_BYTE(38), /* bLength. */ USB_DESC_BYTE(30), /* bLength. */
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */ USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
'S', 0, 'T', 0, 'M', 0, 'i', 0, 'c', 0, 'r', 0, 'o', 0, 'e', 0, 'O', 0, 'p', 0, 'e', 0, 'n', 0, 'm', 0, 'o', 0, 'k', 0, 'o', 0,
'l', 0, 'e', 0, 'c', 0, 't', 0, 'r', 0, 'o', 0, 'n', 0, 'i', 0, ',', 0, ' ', 0, 'I', 0, 'n', 0, 'c', 0, '.', 0
'c', 0, 's', 0
}; };


/* /*
Expand Down
4 changes: 2 additions & 2 deletions driver_usb_cdc/hydrabus_usb_cdc.inf
Expand Up @@ -80,10 +80,10 @@ ServiceBinary=%12%\%DRIVERFILENAME%.sys
[SourceDisksFiles] [SourceDisksFiles]
[SourceDisksNames] [SourceDisksNames]
[DeviceList] [DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_0483&PID_5740 %DESCRIPTION%=DriverInstall, USB\VID_1D50&PID_60A7


[DeviceList.NTamd64] [DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_0483&PID_5740 %DESCRIPTION%=DriverInstall, USB\VID_1D50&PID_60A7




;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
Expand Down

0 comments on commit c0bc1f0

Please sign in to comment.