From 3a7dbc89817950709717d6dcec18a6eccbcc2d28 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 14 Aug 2022 12:16:16 +1000 Subject: Move keyboard USB IDs and strings to data driven, pass 2: B-C (#17945) --- keyboards/chavdai40/info.json | 6 +++++- keyboards/chavdai40/rev1/config.h | 7 ------- keyboards/chavdai40/rev1/info.json | 6 ++++++ keyboards/chavdai40/rev2/config.h | 7 ------- keyboards/chavdai40/rev2/info.json | 6 ++++++ 5 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 keyboards/chavdai40/rev1/info.json create mode 100644 keyboards/chavdai40/rev2/info.json (limited to 'keyboards/chavdai40') diff --git a/keyboards/chavdai40/info.json b/keyboards/chavdai40/info.json index 9c95d21239..36b8511bf1 100644 --- a/keyboards/chavdai40/info.json +++ b/keyboards/chavdai40/info.json @@ -1,7 +1,11 @@ { - "keyboard_name": "chavdai40", + "manufacturer": "t-miyajima", "url": "https://github.com/dvorak55/chavdai40", "maintainer": "t-miyajima", + "usb": { + "vid": "0x16D0", + "pid": "0x0F95" + }, "layouts": { "LAYOUT_44key": { "layout": [ diff --git a/keyboards/chavdai40/rev1/config.h b/keyboards/chavdai40/rev1/config.h index 5ce1111bae..5fc3fce734 100644 --- a/keyboards/chavdai40/rev1/config.h +++ b/keyboards/chavdai40/rev1/config.h @@ -21,13 +21,6 @@ #define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x16D0 -#define PRODUCT_ID 0x0F95 -#define DEVICE_VER 0x0001 -#define MANUFACTURER t-miyajima -#define PRODUCT Chavdai40 - /* usb power settings */ #define USB_MAX_POWER_CONSUMPTION 100 diff --git a/keyboards/chavdai40/rev1/info.json b/keyboards/chavdai40/rev1/info.json new file mode 100644 index 0000000000..c69c0e3460 --- /dev/null +++ b/keyboards/chavdai40/rev1/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Chavdai40", + "usb": { + "device_version": "0.0.1" + } +} diff --git a/keyboards/chavdai40/rev2/config.h b/keyboards/chavdai40/rev2/config.h index e45d2b2db1..ffd56fcae1 100644 --- a/keyboards/chavdai40/rev2/config.h +++ b/keyboards/chavdai40/rev2/config.h @@ -21,13 +21,6 @@ #define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x16D0 -#define PRODUCT_ID 0x0F95 -#define DEVICE_VER 0x0002 -#define MANUFACTURER t-miyajima -#define PRODUCT Chavdai40 rev2 - /* usb power settings */ #define USB_MAX_POWER_CONSUMPTION 100 diff --git a/keyboards/chavdai40/rev2/info.json b/keyboards/chavdai40/rev2/info.json new file mode 100644 index 0000000000..458bcacf38 --- /dev/null +++ b/keyboards/chavdai40/rev2/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Chavdai40 rev2", + "usb": { + "device_version": "0.0.2" + } +} -- cgit v1.2.3