|
|
@ -1,6 +1,6 @@
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
* Kaleidoscope-Hardware-SOFTHRUF-Splitography -- Splitography hardware support for Kaleidoscope
|
|
|
|
* Kaleidoscope-Hardware-SOFTHRUF-Splitography -- Splitography hardware support for Kaleidoscope
|
|
|
|
* Copyright (C) 2018, 2019 Keyboard.io, Inc
|
|
|
|
* Copyright (C) 2018, 2019, 2020 Keyboard.io, Inc
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Based on QMK (commit e9a67f8fd) and sdothum's fork (commit 8616b44)
|
|
|
|
* Based on QMK (commit e9a67f8fd) and sdothum's fork (commit 8616b44)
|
|
|
|
* (C) Jack Humbert, Jun Wako, Steven Hum, and others
|
|
|
|
* (C) Jack Humbert, Jun Wako, Steven Hum, and others
|
|
|
@ -39,6 +39,10 @@ namespace device {
|
|
|
|
namespace softhruf {
|
|
|
|
namespace softhruf {
|
|
|
|
|
|
|
|
|
|
|
|
struct SplitographyProps : kaleidoscope::device::ATmega32U4KeyboardProps {
|
|
|
|
struct SplitographyProps : kaleidoscope::device::ATmega32U4KeyboardProps {
|
|
|
|
|
|
|
|
struct MCUProps: kaleidoscope::driver::mcu::ATmega32U4Props {
|
|
|
|
|
|
|
|
static constexpr bool disable_jtag = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef kaleidoscope::driver::mcu::ATmega32U4<MCUProps> MCU;
|
|
|
|
struct KeyScannerProps : public kaleidoscope::driver::keyscanner::ATmegaProps {
|
|
|
|
struct KeyScannerProps : public kaleidoscope::driver::keyscanner::ATmegaProps {
|
|
|
|
ATMEGA_KEYSCANNER_PROPS(
|
|
|
|
ATMEGA_KEYSCANNER_PROPS(
|
|
|
|
ROW_PIN_LIST({ PIN_D0, PIN_D1, PIN_D2, PIN_D3 }),
|
|
|
|
ROW_PIN_LIST({ PIN_D0, PIN_D1, PIN_D2, PIN_D3 }),
|
|
|
@ -51,12 +55,7 @@ struct SplitographyProps : kaleidoscope::device::ATmega32U4KeyboardProps {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
class Splitography: public kaleidoscope::device::ATmega32U4Keyboard<SplitographyProps> {
|
|
|
|
ATMEGA32U4_DEVICE(Splitography);
|
|
|
|
public:
|
|
|
|
|
|
|
|
Splitography() {
|
|
|
|
|
|
|
|
mcu_.disableJTAG();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
class Splitography;
|
|
|
|
class Splitography;
|
|
|
|
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|