Compare commits

..
3 Commits
Author SHA1 Message Date
cecio 1fda9bb939 1.0.1 2026-08-19 22:14:19 +02:00
cecio ab904e5ecd minor mods 2026-08-19 00:17:35 +02:00
cecio 5836ac7208 small comment 2026-04-18 23:43:31 +02:00
12 changed files with 14 additions and 20 deletions
+6 -9
View File
@@ -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
```
+7 -10
View File
@@ -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
View File
@@ -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 {