From 1027aed83a264d03cf3bbfd4a85ca7d240217b0f Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 15 Aug 2022 11:53:19 +1000 Subject: Move keyboard USB IDs and strings to data driven, pass 2: F-I (#17958) --- keyboards/ferris/0_2/base/info.json | 6 ++++++ keyboards/ferris/0_2/base/rules.mk | 0 keyboards/ferris/0_2/bling/config.h | 7 ------- keyboards/ferris/0_2/bling/info.json | 6 ++++++ keyboards/ferris/0_2/compact/config.h | 23 ----------------------- keyboards/ferris/0_2/compact/info.json | 6 ++++++ keyboards/ferris/0_2/config.h | 7 ------- keyboards/ferris/0_2/high/config.h | 23 ----------------------- keyboards/ferris/0_2/high/info.json | 6 ++++++ keyboards/ferris/0_2/info.json | 7 +++++++ keyboards/ferris/0_2/mini/config.h | 23 ----------------------- keyboards/ferris/0_2/mini/info.json | 6 ++++++ keyboards/ferris/0_2/rules.mk | 2 ++ 13 files changed, 39 insertions(+), 83 deletions(-) create mode 100644 keyboards/ferris/0_2/base/info.json create mode 100644 keyboards/ferris/0_2/base/rules.mk create mode 100644 keyboards/ferris/0_2/bling/info.json delete mode 100644 keyboards/ferris/0_2/compact/config.h create mode 100644 keyboards/ferris/0_2/compact/info.json delete mode 100644 keyboards/ferris/0_2/high/config.h create mode 100644 keyboards/ferris/0_2/high/info.json create mode 100644 keyboards/ferris/0_2/info.json delete mode 100644 keyboards/ferris/0_2/mini/config.h create mode 100644 keyboards/ferris/0_2/mini/info.json (limited to 'keyboards/ferris/0_2') diff --git a/keyboards/ferris/0_2/base/info.json b/keyboards/ferris/0_2/base/info.json new file mode 100644 index 0000000000..d0d22b8047 --- /dev/null +++ b/keyboards/ferris/0_2/base/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Ferris 0.2", + "usb": { + "pid": "0x0001" + } +} diff --git a/keyboards/ferris/0_2/base/rules.mk b/keyboards/ferris/0_2/base/rules.mk new file mode 100644 index 0000000000..e69de29bb2 diff --git a/keyboards/ferris/0_2/bling/config.h b/keyboards/ferris/0_2/bling/config.h index 4b2efd378d..ceb02e737b 100644 --- a/keyboards/ferris/0_2/bling/config.h +++ b/keyboards/ferris/0_2/bling/config.h @@ -17,13 +17,6 @@ along with this program. If not, see . #pragma once -#undef PRODUCT_ID -#define PRODUCT_ID 0x0002 -#undef PRODUCT -#define PRODUCT Ferris 0.2 - Bling - - - /* LED Drivers */ #define DRIVER_ADDR_1 0b1110100 #define DRIVER_ADDR_2 0b1110101 diff --git a/keyboards/ferris/0_2/bling/info.json b/keyboards/ferris/0_2/bling/info.json new file mode 100644 index 0000000000..5473c33295 --- /dev/null +++ b/keyboards/ferris/0_2/bling/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Ferris 0.2 - Bling", + "usb": { + "pid": "0x0002" + } +} diff --git a/keyboards/ferris/0_2/compact/config.h b/keyboards/ferris/0_2/compact/config.h deleted file mode 100644 index ee465b9acd..0000000000 --- a/keyboards/ferris/0_2/compact/config.h +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2021 Pierre Chevalier - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#pragma once - -#undef PRODUCT_ID -#define PRODUCT_ID 0x0003 -#undef PRODUCT -#define PRODUCT Ferris 0.2 - Compact diff --git a/keyboards/ferris/0_2/compact/info.json b/keyboards/ferris/0_2/compact/info.json new file mode 100644 index 0000000000..4ca1555776 --- /dev/null +++ b/keyboards/ferris/0_2/compact/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Ferris 0.2 - Compact", + "usb": { + "pid": "0x0003" + } +} diff --git a/keyboards/ferris/0_2/config.h b/keyboards/ferris/0_2/config.h index f51e5dd8f1..c573517037 100644 --- a/keyboards/ferris/0_2/config.h +++ b/keyboards/ferris/0_2/config.h @@ -17,13 +17,6 @@ along with this program. If not, see . #pragma once -/* USB Device descriptor parameter */ -#define VENDOR_ID 0xC2AB -#define PRODUCT_ID 0x0001 -#define DEVICE_VER 0x0002 -#define MANUFACTURER Cuddly Keyboards Ltd. -#define PRODUCT Ferris 0.2 - /* key matrix size */ #define MATRIX_ROWS 8 #define MATRIX_COLS 10 diff --git a/keyboards/ferris/0_2/high/config.h b/keyboards/ferris/0_2/high/config.h deleted file mode 100644 index 67786241b4..0000000000 --- a/keyboards/ferris/0_2/high/config.h +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2021 Pierre Chevalier - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#pragma once - -#undef PRODUCT_ID -#define PRODUCT_ID 0x0005 -#undef PRODUCT -#define PRODUCT Ferris 0.2 - High diff --git a/keyboards/ferris/0_2/high/info.json b/keyboards/ferris/0_2/high/info.json new file mode 100644 index 0000000000..adb9d07af3 --- /dev/null +++ b/keyboards/ferris/0_2/high/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Ferris 0.2 - High", + "usb": { + "pid": "0x0005" + } +} diff --git a/keyboards/ferris/0_2/info.json b/keyboards/ferris/0_2/info.json new file mode 100644 index 0000000000..9ab2ffbdfb --- /dev/null +++ b/keyboards/ferris/0_2/info.json @@ -0,0 +1,7 @@ +{ + "manufacturer": "Cuddly Keyboards Ltd.", + "usb": { + "vid": "0xC2AB", + "device_version": "0.0.2" + } +} diff --git a/keyboards/ferris/0_2/mini/config.h b/keyboards/ferris/0_2/mini/config.h deleted file mode 100644 index e357cabe0b..0000000000 --- a/keyboards/ferris/0_2/mini/config.h +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2021 Pierre Chevalier - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#pragma once - -#undef PRODUCT_ID -#define PRODUCT_ID 0x0004 -#undef PRODUCT -#define PRODUCT Ferris 0.2 - Mini diff --git a/keyboards/ferris/0_2/mini/info.json b/keyboards/ferris/0_2/mini/info.json new file mode 100644 index 0000000000..0ab5db559a --- /dev/null +++ b/keyboards/ferris/0_2/mini/info.json @@ -0,0 +1,6 @@ +{ + "keyboard_name": "Ferris 0.2 - Mini", + "usb": { + "pid": "0x0004" + } +} diff --git a/keyboards/ferris/0_2/rules.mk b/keyboards/ferris/0_2/rules.mk index 2d406f5c1d..c5a44ca9ef 100644 --- a/keyboards/ferris/0_2/rules.mk +++ b/keyboards/ferris/0_2/rules.mk @@ -25,3 +25,5 @@ SRC += matrix.c QUANTUM_LIB_SRC += i2c_master.c LAYOUTS = split_3x5_2 + +DEFAULT_FOLDER = ferris/0_2/base -- cgit v1.2.3