Move hardware plugins to kaleidoscope::device

Move all the hardware plugins from the `kaleidoscope::hardware` namespace to
`kaleidoscope::device`, in perparation for deeper changes to come later.

This is merely a restructuring, there are no functional changes. The one
breaking change is that `ATMegaKeyboard` moved too, and we do not provide any
backward compatibility there.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/710/head
Gergely Nagy 5 years ago
parent 97d35f432a
commit b233867d9f
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope * Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -17,4 +17,4 @@
*/ */
#pragma once #pragma once
#include "kaleidoscope/hardware/ez/ErgoDox.h" #include "kaleidoscope/device/ez/ErgoDox.h"

@ -20,4 +20,4 @@
#define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1 #define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1
#include "kaleidoscope/hardware/kbdfans/KBD4x.h" #include "kaleidoscope/device/kbdfans/KBD4x.h"

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-Model01 -- Keyboard.io Model01 hardware support for Kaleidoscope * Kaleidoscope-Hardware-Model01 -- Keyboard.io Model01 hardware support for Kaleidoscope
* Copyright (C) 2017-2018 Keyboard.io, Inc * Copyright (C) 2017-2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify it under * 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 * the terms of the GNU General Public License as published by the Free Software
@ -17,4 +17,4 @@
#pragma once #pragma once
#include "kaleidoscope/hardware/keyboardio/Model01.h" #include "kaleidoscope/device/keyboardio/Model01.h"

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-OLKB-Planck -- OLKB Planck hardware support for Kaleidoscope * Kaleidoscope-Hardware-OLKB-Planck -- OLKB Planck hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -19,4 +19,4 @@
#pragma once #pragma once
#define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1 #define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1
#include "kaleidoscope/hardware/olkb/Planck.h" #include "kaleidoscope/device/olkb/Planck.h"

@ -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 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -19,4 +19,4 @@
#pragma once #pragma once
#define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1 #define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1
#include "kaleidoscope/hardware/softhruf/Splitography.h" #include "kaleidoscope/device/softhruf/Splitography.h"

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-Technomancy-Atreus -- Atreus hardware support for Kaleidoscope * Kaleidoscope-Hardware-Technomancy-Atreus -- Atreus hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -26,4 +26,4 @@
#define KALEIDOSCOPE_HARDWARE_ATREUS_PINOUT_ASTAR 1 #define KALEIDOSCOPE_HARDWARE_ATREUS_PINOUT_ASTAR 1
#endif #endif
#include "kaleidoscope/hardware/technomancy/Atreus.h" #include "kaleidoscope/device/technomancy/Atreus.h"

@ -20,4 +20,4 @@
#define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1 #define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1
#include "kaleidoscope/hardware/technomancy/Atreus2.h" #include "kaleidoscope/device/technomancy/Atreus2.h"

@ -19,10 +19,10 @@
#if KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD #if KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD
#include "kaleidoscope/hardware/ATMegaKeyboard.h" #include "kaleidoscope/device/ATMegaKeyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
uint8_t ATMegaKeyboard::debounce = 3; uint8_t ATMegaKeyboard::debounce = 3;

@ -25,7 +25,7 @@
#include "kaleidoscope/MatrixAddr.h" #include "kaleidoscope/MatrixAddr.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
#include "kaleidoscope/hardware/avr/pins_and_ports.h" #include "kaleidoscope/device/avr/pins_and_ports.h"
#include <avr/wdt.h> #include <avr/wdt.h>
@ -134,7 +134,7 @@ struct cRGB {
} }
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
class ATMegaKeyboard : public kaleidoscope::Hardware { class ATMegaKeyboard : public kaleidoscope::Hardware {
public: public:
ATMegaKeyboard(void) {} ATMegaKeyboard(void) {}

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope * Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* Based on QMK (commit 8cdb4a915) * Based on QMK (commit 8cdb4a915)
* (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk * (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk
@ -29,10 +29,10 @@
#include <Kaleidoscope.h> #include <Kaleidoscope.h>
#include <KeyboardioHID.h> #include <KeyboardioHID.h>
#include <avr/wdt.h> #include <avr/wdt.h>
#include "kaleidoscope/hardware/ez/ErgoDox/ErgoDoxScanner.h" #include "kaleidoscope/device/ez/ErgoDox/ErgoDoxScanner.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace ez { namespace ez {
ErgoDoxScanner ErgoDox::scanner_; ErgoDoxScanner ErgoDox::scanner_;
@ -264,6 +264,6 @@ uint8_t ErgoDox::pressedKeyswitchCount() {
} }
HARDWARE_IMPLEMENTATION KeyboardHardware; HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::ez::ErgoDox &ErgoDox = KeyboardHardware; kaleidoscope::device::ez::ErgoDox &ErgoDox = KeyboardHardware;
#endif #endif

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope * Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* Based on QMK (commit 8cdb4a915) * Based on QMK (commit 8cdb4a915)
* (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk * (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk
@ -29,9 +29,9 @@
#include <Arduino.h> #include <Arduino.h>
#include "kaleidoscope/hardware/ez/ErgoDox/ErgoDoxScanner.h" #include "kaleidoscope/device/ez/ErgoDox/ErgoDoxScanner.h"
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::ez::ErgoDox #define HARDWARE_IMPLEMENTATION kaleidoscope::device::ez::ErgoDox
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
@ -46,7 +46,7 @@ struct cRGB {
#include "kaleidoscope/MatrixAddr.h" #include "kaleidoscope/MatrixAddr.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace ez { namespace ez {
class ErgoDox : public kaleidoscope::Hardware { class ErgoDox : public kaleidoscope::Hardware {
@ -156,8 +156,8 @@ class ErgoDox : public kaleidoscope::Hardware {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
extern kaleidoscope::hardware::ez::ErgoDox &ErgoDox; extern kaleidoscope::device::ez::ErgoDox &ErgoDox;
#endif #endif

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope * Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* Based on QMK (commit 8cdb4a915) * Based on QMK (commit 8cdb4a915)
* (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk * (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk
@ -25,10 +25,10 @@
#ifdef ARDUINO_AVR_ERGODOX #ifdef ARDUINO_AVR_ERGODOX
#include "kaleidoscope/hardware/ez/ErgoDox/ErgoDoxScanner.h" #include "kaleidoscope/device/ez/ErgoDox/ErgoDoxScanner.h"
#include <avr/wdt.h> #include <avr/wdt.h>
#include "kaleidoscope/hardware/avr/pins_and_ports.h" #include "kaleidoscope/device/avr/pins_and_ports.h"
#include "kaleidoscope/hardware/ez/ErgoDox/i2cmaster.h" #include "kaleidoscope/device/ez/ErgoDox/i2cmaster.h"
#define I2C_ADDR 0b0100000 #define I2C_ADDR 0b0100000
#define I2C_ADDR_WRITE ( (I2C_ADDR<<1) | I2C_WRITE ) #define I2C_ADDR_WRITE ( (I2C_ADDR<<1) | I2C_WRITE )
@ -43,7 +43,7 @@
#define OLATB 0x15 #define OLATB 0x15
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace ez { namespace ez {
uint8_t ErgoDoxScanner::initExpander() { uint8_t ErgoDoxScanner::initExpander() {

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope * Kaleidoscope-Hardware-EZ-ErgoDox -- ErgoDox hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* Based on QMK (commit 8cdb4a915) * Based on QMK (commit 8cdb4a915)
* (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk * (C) Jack Humbert, Erez Zukerman, Oleg Kostyuk
@ -30,7 +30,7 @@
#include <Arduino.h> #include <Arduino.h>
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace ez { namespace ez {
class ErgoDoxScanner { class ErgoDoxScanner {

@ -12,7 +12,7 @@
#include <inttypes.h> #include <inttypes.h>
#include <compat/twi.h> #include <compat/twi.h>
#include "kaleidoscope/hardware/ez/ErgoDox/i2cmaster.h" #include "kaleidoscope/device/ez/ErgoDox/i2cmaster.h"
/* define CPU frequency in Mhz here if not defined in Makefile */ /* define CPU frequency in Mhz here if not defined in Makefile */

@ -23,7 +23,7 @@
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace kbdfans { namespace kbdfans {
ATMEGA_KEYBOARD_DATA(KBD4x); ATMEGA_KEYBOARD_DATA(KBD4x);
@ -57,6 +57,6 @@ void KBD4x::resetDevice() {
} }
HARDWARE_IMPLEMENTATION KeyboardHardware; HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::kbdfans::KBD4x &KBD4x = KeyboardHardware; kaleidoscope::device::kbdfans::KBD4x &KBD4x = KeyboardHardware;
#endif #endif

@ -20,18 +20,18 @@
#ifdef ARDUINO_AVR_KBD4X #ifdef ARDUINO_AVR_KBD4X
#include <Arduino.h> #include <Arduino.h>
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::kbdfans::KBD4x #define HARDWARE_IMPLEMENTATION kaleidoscope::device::kbdfans::KBD4x
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
#include "kaleidoscope/hardware/avr/pins_and_ports.h" #include "kaleidoscope/device/avr/pins_and_ports.h"
#include "kaleidoscope/hardware/ATMegaKeyboard.h" #include "kaleidoscope/device/ATMegaKeyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace kbdfans { namespace kbdfans {
class KBD4x: public kaleidoscope::hardware::ATMegaKeyboard { class KBD4x: public kaleidoscope::device::ATMegaKeyboard {
public: public:
KBD4x(void) { KBD4x(void) {
mcu_.disableJTAG(); mcu_.disableJTAG();
@ -67,8 +67,8 @@ class KBD4x: public kaleidoscope::hardware::ATMegaKeyboard {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
extern kaleidoscope::hardware::kbdfans::KBD4x &KBD4x; extern kaleidoscope::device::kbdfans::KBD4x &KBD4x;
#endif #endif

@ -23,7 +23,7 @@
#include <avr/wdt.h> #include <avr/wdt.h>
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace keyboardio { namespace keyboardio {
KeyboardioScanner Model01::leftHand(0); KeyboardioScanner Model01::leftHand(0);

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-Model01 -- Keyboard.io Model01 hardware support for Kaleidoscope * Kaleidoscope-Hardware-Model01 -- Keyboard.io Model01 hardware support for Kaleidoscope
* Copyright (C) 2017-2018 Keyboard.io, Inc * Copyright (C) 2017-2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify it under * 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 * the terms of the GNU General Public License as published by the Free Software
@ -21,7 +21,7 @@
#include <Arduino.h> #include <Arduino.h>
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::keyboardio::Model01 #define HARDWARE_IMPLEMENTATION kaleidoscope::device::keyboardio::Model01
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "KeyboardioScanner.h" #include "KeyboardioScanner.h"
@ -33,7 +33,7 @@
#include "kaleidoscope/MatrixAddr.h" #include "kaleidoscope/MatrixAddr.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace keyboardio { namespace keyboardio {
class Model01 : public kaleidoscope::Hardware { class Model01 : public kaleidoscope::Hardware {
@ -125,7 +125,7 @@ class Model01 : public kaleidoscope::Hardware {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
#define PER_KEY_DATA_STACKED(dflt, \ #define PER_KEY_DATA_STACKED(dflt, \
r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, \ r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, \

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-OLKB-Planck -- Planck hardware support for Kaleidoscope * Kaleidoscope-Hardware-OLKB-Planck -- Planck hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of version 3 of the GNU General Public License as * it under the terms of version 3 of the GNU General Public License as
@ -21,7 +21,7 @@
#include <avr/wdt.h> #include <avr/wdt.h>
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace olkb { namespace olkb {
ATMEGA_KEYBOARD_DATA(Planck); ATMEGA_KEYBOARD_DATA(Planck);
@ -32,6 +32,6 @@ constexpr int8_t Planck::led_count;
} }
HARDWARE_IMPLEMENTATION KeyboardHardware; HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::olkb::Planck &Planck = KeyboardHardware; kaleidoscope::device::olkb::Planck &Planck = KeyboardHardware;
#endif #endif

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-OLKB-Planck -- Planck hardware support for Kaleidoscope * Kaleidoscope-Hardware-OLKB-Planck -- Planck hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of version 3 of the GNU General Public License as * it under the terms of version 3 of the GNU General Public License as
@ -20,18 +20,18 @@
#ifdef ARDUINO_AVR_PLANCK #ifdef ARDUINO_AVR_PLANCK
#include <Arduino.h> #include <Arduino.h>
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::olkb::Planck #define HARDWARE_IMPLEMENTATION kaleidoscope::device::olkb::Planck
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
#include "kaleidoscope/hardware/avr/pins_and_ports.h" #include "kaleidoscope/device/avr/pins_and_ports.h"
#include "kaleidoscope/hardware/ATMegaKeyboard.h" #include "kaleidoscope/device/ATMegaKeyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace olkb { namespace olkb {
class Planck: public kaleidoscope::hardware::ATMegaKeyboard { class Planck: public kaleidoscope::device::ATMegaKeyboard {
public: public:
Planck(void) {} Planck(void) {}
@ -63,8 +63,8 @@ class Planck: public kaleidoscope::hardware::ATMegaKeyboard {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
extern kaleidoscope::hardware::olkb::Planck &Planck; extern kaleidoscope::device::olkb::Planck &Planck;
#endif #endif

@ -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 Keyboard.io, Inc * Copyright (C) 2018, 2019 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
@ -28,7 +28,7 @@
#include <avr/wdt.h> #include <avr/wdt.h>
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace softhruf { namespace softhruf {
ATMEGA_KEYBOARD_DATA(Splitography); ATMEGA_KEYBOARD_DATA(Splitography);
@ -39,6 +39,6 @@ constexpr int8_t Splitography::led_count;
} }
HARDWARE_IMPLEMENTATION KeyboardHardware; HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::softhruf::Splitography &Splitography = KeyboardHardware; kaleidoscope::device::softhruf::Splitography &Splitography = KeyboardHardware;
#endif #endif

@ -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 Keyboard.io, Inc * Copyright (C) 2018, 2019 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
@ -27,18 +27,18 @@
#ifdef ARDUINO_AVR_SPLITOGRAPHY #ifdef ARDUINO_AVR_SPLITOGRAPHY
#include <Arduino.h> #include <Arduino.h>
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::softhruf::Splitography #define HARDWARE_IMPLEMENTATION kaleidoscope::device::softhruf::Splitography
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
#include "kaleidoscope/hardware/avr/pins_and_ports.h" #include "kaleidoscope/device/avr/pins_and_ports.h"
#include "kaleidoscope/hardware/ATMegaKeyboard.h" #include "kaleidoscope/device/ATMegaKeyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace softhruf { namespace softhruf {
class Splitography: public kaleidoscope::hardware::ATMegaKeyboard { class Splitography: public kaleidoscope::device::ATMegaKeyboard {
public: public:
Splitography(void) { Splitography(void) {
mcu_.disableJTAG(); mcu_.disableJTAG();
@ -88,8 +88,8 @@ class Splitography: public kaleidoscope::hardware::ATMegaKeyboard {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
extern kaleidoscope::hardware::softhruf::Splitography &Splitography; extern kaleidoscope::device::softhruf::Splitography &Splitography;
#endif #endif

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-Technomancy-Atreus -- Atreus hardware support for Kaleidoscope * Kaleidoscope-Hardware-Technomancy-Atreus -- Atreus hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* Based on QMK (commit e9a67f8fd) * Based on QMK (commit e9a67f8fd)
* (C) Jack Humbert, Phil Hagelberg, and others * (C) Jack Humbert, Phil Hagelberg, and others
@ -30,7 +30,7 @@
#include <avr/wdt.h> #include <avr/wdt.h>
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace technomancy { namespace technomancy {
ATMEGA_KEYBOARD_DATA(Atreus); ATMEGA_KEYBOARD_DATA(Atreus);
@ -77,6 +77,6 @@ void Atreus::resetDevice() {
} }
HARDWARE_IMPLEMENTATION KeyboardHardware; HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::technomancy::Atreus &Atreus = KeyboardHardware; kaleidoscope::device::technomancy::Atreus &Atreus = KeyboardHardware;
#endif #endif

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Kaleidoscope-Hardware-Technomancy-Atreus -- Atreus hardware support for Kaleidoscope * Kaleidoscope-Hardware-Technomancy-Atreus -- Atreus hardware support for Kaleidoscope
* Copyright (C) 2018 Keyboard.io, Inc * Copyright (C) 2018, 2019 Keyboard.io, Inc
* *
* Based on QMK (commit e9a67f8fd) * Based on QMK (commit e9a67f8fd)
* (C) Jack Humbert, Jun Wako, Phil Hagelberg, and others * (C) Jack Humbert, Jun Wako, Phil Hagelberg, and others
@ -27,17 +27,17 @@
#ifdef ARDUINO_AVR_ATREUS #ifdef ARDUINO_AVR_ATREUS
#include <Arduino.h> #include <Arduino.h>
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::technomancy::Atreus #define HARDWARE_IMPLEMENTATION kaleidoscope::device::technomancy::Atreus
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
#include "kaleidoscope/hardware/ATMegaKeyboard.h" #include "kaleidoscope/device/ATMegaKeyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace technomancy { namespace technomancy {
class Atreus: public kaleidoscope::hardware::ATMegaKeyboard { class Atreus: public kaleidoscope::device::ATMegaKeyboard {
friend class ATMegaKeyboard; friend class ATMegaKeyboard;
public: public:
Atreus(void) {} Atreus(void) {}
@ -105,8 +105,8 @@ class Atreus: public kaleidoscope::hardware::ATMegaKeyboard {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
extern kaleidoscope::hardware::technomancy::Atreus &Atreus; extern kaleidoscope::device::technomancy::Atreus &Atreus;
#endif #endif

@ -22,7 +22,7 @@
#include <avr/wdt.h> #include <avr/wdt.h>
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace technomancy { namespace technomancy {
ATMEGA_KEYBOARD_DATA(Atreus2); ATMEGA_KEYBOARD_DATA(Atreus2);
@ -33,6 +33,6 @@ constexpr int8_t Atreus2::led_count;
} }
HARDWARE_IMPLEMENTATION KeyboardHardware; HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::technomancy::Atreus2 &Atreus2 = KeyboardHardware; kaleidoscope::device::technomancy::Atreus2 &Atreus2 = KeyboardHardware;
#endif #endif

@ -21,17 +21,17 @@
#ifdef ARDUINO_AVR_ATREUS2 #ifdef ARDUINO_AVR_ATREUS2
#include <Arduino.h> #include <Arduino.h>
#define HARDWARE_IMPLEMENTATION kaleidoscope::hardware::technomancy::Atreus2 #define HARDWARE_IMPLEMENTATION kaleidoscope::device::technomancy::Atreus2
#include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h" #include "Kaleidoscope-HIDAdaptor-KeyboardioHID.h"
#include "kaleidoscope/macro_helpers.h" #include "kaleidoscope/macro_helpers.h"
#include "kaleidoscope/hardware/ATMegaKeyboard.h" #include "kaleidoscope/device/ATMegaKeyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace hardware { namespace device {
namespace technomancy { namespace technomancy {
class Atreus2: public kaleidoscope::hardware::ATMegaKeyboard { class Atreus2: public kaleidoscope::device::ATMegaKeyboard {
friend class ATMegaKeyboard; friend class ATMegaKeyboard;
public: public:
Atreus2(void) {} Atreus2(void) {}
@ -82,8 +82,8 @@ class Atreus2: public kaleidoscope::hardware::ATMegaKeyboard {
} }
} }
#include "kaleidoscope/hardware/key_indexes.h" #include "kaleidoscope/device/key_indexes.h"
extern kaleidoscope::hardware::technomancy::Atreus2 &Atreus2; extern kaleidoscope::device::technomancy::Atreus2 &Atreus2;
#endif #endif
Loading…
Cancel
Save