diff --git a/plugins/Kaleidoscope-Hardware-GD32-Eval/library.properties b/plugins/Kaleidoscope-Hardware-GD32-Eval/library.properties new file mode 100644 index 00000000..a2b47f83 --- /dev/null +++ b/plugins/Kaleidoscope-Hardware-GD32-Eval/library.properties @@ -0,0 +1,7 @@ +name=Kaleidoscope-Hardware-GD32-Eval +version=0.0.0 +sentence=GD32 Eval hardware support for Kaleidoscope +maintainer=Kaleidoscope's Developers +url=https://github.com/keyboardio/Kaleidoscope +author=Keyboardio +paragraph= diff --git a/plugins/Kaleidoscope-Hardware-GD32-Eval/src/Kaleidoscope-Hardware-GD32-Eval.h b/plugins/Kaleidoscope-Hardware-GD32-Eval/src/Kaleidoscope-Hardware-GD32-Eval.h new file mode 100644 index 00000000..4aaee81b --- /dev/null +++ b/plugins/Kaleidoscope-Hardware-GD32-Eval/src/Kaleidoscope-Hardware-GD32-Eval.h @@ -0,0 +1,20 @@ +/* -*- mode: c++ -*- + * Kaleidoscope - Firmware for computer input devices + * Copyright (C) 2021 Keyboard.io, Inc. + * + * 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, version 3. + * + * 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 + +#include "kaleidoscope/device/gd32/Eval.h" diff --git a/plugins/Kaleidoscope-Hardware-GD32-Eval/src/kaleidoscope/device/gd32/Eval.cpp b/plugins/Kaleidoscope-Hardware-GD32-Eval/src/kaleidoscope/device/gd32/Eval.cpp new file mode 100644 index 00000000..8cf696f5 --- /dev/null +++ b/plugins/Kaleidoscope-Hardware-GD32-Eval/src/kaleidoscope/device/gd32/Eval.cpp @@ -0,0 +1,31 @@ +/* -*- mode: c++ -*- + * Kaleidoscope - Firmware for computer input devices + * Copyright (C) 2021 Keyboard.io, Inc. + * + * 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, version 3. + * + * 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 . + */ + +#ifdef ARDUINO_GD32F303ZE_EVAL + +#include "kaleidoscope/Runtime.h" +#include "kaleidoscope/driver/keyscanner/Base_Impl.h" + +namespace kaleidoscope { +namespace device { +namespace gd32 { + +} // namespace gd32 +} // namespace device +} // namespace kaleidoscope + +#endif // ifdef ARDUINO_GD32F303ZE_EVAL diff --git a/plugins/Kaleidoscope-Hardware-GD32-Eval/src/kaleidoscope/device/gd32/Eval.h b/plugins/Kaleidoscope-Hardware-GD32-Eval/src/kaleidoscope/device/gd32/Eval.h new file mode 100644 index 00000000..eaa1bff2 --- /dev/null +++ b/plugins/Kaleidoscope-Hardware-GD32-Eval/src/kaleidoscope/device/gd32/Eval.h @@ -0,0 +1,48 @@ +/* -*- mode: c++ -*- + * Kaleidoscope - Firmware for computer input devices + * Copyright (C) 2021 Keyboard.io, Inc. + * + * 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, version 3. + * + * 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 + +#ifdef ARDUINO_GD32F303ZE_EVAL + +#include + +#include "kaleidoscope/device/Base.h" + +namespace kaleidoscope { +namespace device { +namespace gd32 { + +struct EvalProps : kaleidoscope::device::BaseProps { + static constexpr const char *short_name = "GD32Eval"; +}; + +class Eval: public kaleidoscope::device::Base {}; + +#define PER_KEY_DATA(dflt, \ + R0C0, R0C1 \ + ) \ + R0C0, R0C1 + +} // namespace gd32 +} // namespace device + +EXPORT_DEVICE(kaleidoscope::device::gd32::Eval) + +} // namespace kaleidoscope + +#endif