mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
prepare avr for stm32 (#104)
This commit is contained in:
parent
6772d3425d
commit
d409ae68c3
@ -21,10 +21,15 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "usb/hid.h"
|
#include "usb/hid.h"
|
||||||
|
#ifdef HID_WITH_PS2
|
||||||
#include "ps2/hid.h"
|
#include "ps2/hid.h"
|
||||||
|
#endif
|
||||||
#include "factory.h"
|
#include "factory.h"
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
|
|
||||||
|
#ifndef ARDUINO_ARCH_AVR
|
||||||
|
#error "Only AVR is supported"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace DRIVERS {
|
namespace DRIVERS {
|
||||||
Keyboard *Factory::makeKeyboard(type _type) {
|
Keyboard *Factory::makeKeyboard(type _type) {
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
|
#include "stdlib.h"
|
||||||
|
|
||||||
|
|
||||||
namespace DRIVERS {
|
namespace DRIVERS {
|
||||||
|
|||||||
@ -135,7 +135,9 @@ static void _initOutputs() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ARDUINO_ARCH_AVR
|
||||||
USBDevice.attach();
|
USBDevice.attach();
|
||||||
|
#endif
|
||||||
|
|
||||||
_kbd->begin();
|
_kbd->begin();
|
||||||
_mouse->begin();
|
_mouse->begin();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user