mirror of
https://github.com/cecio/USBvalve.git
synced 2026-10-21 06:06:45 +00:00
Compare commits
3
Commits
ae08d29897
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fda9bb939 | ||
|
|
ab904e5ecd | ||
|
|
5836ac7208 |
@@ -199,16 +199,13 @@ I grouped most of the variables you may want to modify in this section of `usb_c
|
||||
//
|
||||
// You can see here for inspiration: https://the-sz.com/products/usbid/
|
||||
//
|
||||
// Example:
|
||||
// 0x0951 0x16D5 VENDORID_STR: Kingston PRODUCTID_STR: DataTraveler
|
||||
//
|
||||
#define USB_VENDORID 0x0951
|
||||
#define USB_PRODUCTID 0x16D5
|
||||
#define USB_DESCRIPTOR "DataTraveler"
|
||||
#define USB_MANUF "Kingston"
|
||||
#define USB_VENDORID 0xCAFE
|
||||
#define USB_PRODUCTID 0x1337
|
||||
#define USB_DESCRIPTOR "DataStore"
|
||||
#define USB_MANUF "USB Acme"
|
||||
#define USB_SERIAL "123456789A"
|
||||
#define USB_VENDORID_STR "Kingston" // Up to 8 chars
|
||||
#define USB_PRODUCTID_STR "DataTraveler" // Up to 16 chars
|
||||
#define USB_VENDORID_STR "Acme" // Up to 8 chars
|
||||
#define USB_PRODUCTID_STR "DataStore" // Up to 16 chars
|
||||
#define USB_VERSION_STR "1.0" // Up to 4 chars
|
||||
```
|
||||
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+7
-10
@@ -2,7 +2,7 @@
|
||||
#define USB_CONFIG_H
|
||||
|
||||
// Project version
|
||||
#define VERSION "USBvalve - 1.0.0"
|
||||
#define VERSION "USBvalve - 1.0.1"
|
||||
|
||||
// USB anti-detection settings
|
||||
//
|
||||
@@ -12,16 +12,13 @@
|
||||
//
|
||||
// You can see here for inspiration: https://the-sz.com/products/usbid/
|
||||
//
|
||||
// Example:
|
||||
// 0x0951 0x16D5 VENDORID_STR: Kingston PRODUCTID_STR: DataTraveler
|
||||
//
|
||||
#define USB_VENDORID 0x0951
|
||||
#define USB_PRODUCTID 0x16D5
|
||||
#define USB_DESCRIPTOR "DataTraveler"
|
||||
#define USB_MANUF "Kingston"
|
||||
#define USB_VENDORID 0xCAFE
|
||||
#define USB_PRODUCTID 0x1337
|
||||
#define USB_DESCRIPTOR "DataStore"
|
||||
#define USB_MANUF "USB Acme"
|
||||
#define USB_SERIAL "123456789A"
|
||||
#define USB_VENDORID_STR "Kingston" // Up to 8 chars
|
||||
#define USB_PRODUCTID_STR "DataTraveler" // Up to 16 chars
|
||||
#define USB_VENDORID_STR "Acme" // Up to 8 chars
|
||||
#define USB_PRODUCTID_STR "DataStore" // Up to 16 chars
|
||||
#define USB_VERSION_STR "1.0" // Up to 4 chars
|
||||
|
||||
// Disk configuration
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset,
|
||||
|
||||
// Return data from ramdisk, or zeros for blocks beyond it.
|
||||
// The disk reports FAKE_DISK_BLOCK_NUM sectors but only
|
||||
// DISK_BLOCK_NUM exist in RAM — the rest must read as empty.
|
||||
// DISK_BLOCK_NUM exist in RAM, the rest must read as empty.
|
||||
if (lba < DISK_BLOCK_NUM) {
|
||||
memcpy(buffer, msc_disk[lba], bufsize);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user