basic support for non-avr, non-usb boards

This is the smallest change to make Kaleidoscope compile for
nRF52 BLE boards.

https://github.com/wez/KaleidoscopeKeyboards
has more code and build machinery for my proof of concept for using
Kaleidoscope as the driver for a keyboard using the new nRF52 based
board from Adafruit.
pull/129/head
Wez Furlong 7 years ago
parent 9884e54f9d
commit 173a422439

@ -9,7 +9,9 @@ Kaleidoscope_::Kaleidoscope_(void) {
void void
Kaleidoscope_::setup(void) { Kaleidoscope_::setup(void) {
#ifdef __AVR__
wdt_disable(); wdt_disable();
#endif
delay(100); delay(100);
Keyboard.begin(); Keyboard.begin();
KeyboardHardware.setup(); KeyboardHardware.setup();

@ -18,7 +18,9 @@ void setup();
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#ifdef __AVR__
#include <avr/wdt.h> #include <avr/wdt.h>
#endif
#include KALEIDOSCOPE_HARDWARE_H #include KALEIDOSCOPE_HARDWARE_H
#include "key_events.h" #include "key_events.h"

@ -1,6 +1,8 @@
#pragma once #pragma once
#include <Arduino.h> #include <Arduino.h>
#ifdef USBCON
#include "KeyboardioHID.h" #include "KeyboardioHID.h"
#endif
#include KALEIDOSCOPE_HARDWARE_H #include KALEIDOSCOPE_HARDWARE_H
#include "key_defs.h" #include "key_defs.h"

Loading…
Cancel
Save